Matb396
asked on
Opening a VB.net with a variable
Hi All
I'm trying to make my vb.net project bigger, the next step is to be able to click on a link an open a form within the program. Eg. customer detail with ID 23547.
How would i go about this? I already have the sub process to open the section within the program but i need the bit to be able to pass a variable in to the program.
Cheers
Matt
I'm trying to make my vb.net project bigger, the next step is to be able to click on a link an open a form within the program. Eg. customer detail with ID 23547.
How would i go about this? I already have the sub process to open the section within the program but i need the bit to be able to pass a variable in to the program.
Cheers
Matt
ASKER
Im on about a link from an email or something... so one of the empolyees can email the manager say "look at x y z " & Link... so when the link is clicked on the program auto loads up the a part within the program.
I need to know how to pass that variable in to a program?
I need to know how to pass that variable in to a program?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok that works how do you do something like spotify does, and have a much nice looking link like so
spotify:track:6MMCgZUbWHzj CoU5OgLMni
rather then :
O:\Delelopment\Freatures\C ommandLine Feature\Co mmandLineF eature\bin \Release\C ommandLine Feature.ex e /CusID233454
So for example
CommandLineFeature:CusID23 3454
spotify:track:6MMCgZUbWHzj
rather then :
O:\Delelopment\Freatures\C
So for example
CommandLineFeature:CusID23
public partial class Form2 : Form
{
private string strPassedText = "No parm";
public Form2()
{
InitializeComponent();
}
public Form2(string strParm)
{
InitializeComponent();
strPassedText = strParm;
}
private void Form2_Load(object sender, EventArgs e)
{
this.label1.Text = strPassedText;
}
}
Then call it as follows
private void button1_Click(object sender, EventArgs e)
{
Form2 myform2 = new Form2("Hello World");
myform2.Show();
}