|
The combobox I added doesn't let me set a datasource at all, best I could do was this:
if (e.Button == MouseButtons.Right)
{
string[] datasource = { "test1", "test2", "test3" };
toolStripComboBox1.Items.AddRange(datasource);
contextMenuStrip1.Show( e.X + this.Left, e.Y + this.Top);
}
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
ah... but how can i get SelectedValue ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
The only way to close the menu via the combo is to double click on an item, so handle the double click event, and then from there grab the selected item.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i like tricks, now i have to make my own
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
*grin* I hope that means it's working now.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
*grin* I thought that you have got something new
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I'm developing a healthclub software in that if the member of the healthclub has enddate today,i have to dispay the alert message about that member.please help me.Thanking you
|
|
|
|
|
Is this homework, or a rentacoder assignment ?
If you have a datagrid, and you want to show a single label with a value, then you look up the value in the correct row and column of the table that contains it, and put it in the label, using the label's text property.
What if the enddate was yesterday ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i have some records in datable,some fields like startdate and enddate,i want to display all the records whose enddate is equal to current date in datagrid control.
|
|
|
|
|
OK - so you don't have a label, you have a datagrid and want to show records in a specific date range ? Then you query your data source for the records that match your criteria, and bind them to your grid.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
can you please give me sample query that match my criteria.thanking you.
|
|
|
|
|
Of course not. I'm sorry, but you're obviously very, very lost. How on earth can I tell you the SQL to make a call on a database when I don't know what your data source is, let alone your database schema ? If you're being paid for this work, the only honest thing to do, is to decline to work any further, you're obviously not skilled enough to do it. If it's a course, tell your teacher that you're struggling and ask for help. Seriously.
If you're using SQL Server, getdate() will return the current date/time. That's really all the help I can hope to offer based on the information you have given.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
Hello Friends,
I am developing an barcode generation application and i am facing a problem in adding font file to my code and i also want that the attributes of that font file does not changes.
Please help me its urgent
Thanks
|
|
|
|
|
Dixy wrote: Please help me its urgent
Gee - I haven't seen THAT before...
Perhaps if it was really urgent, you'd post somethign that we could follow. What problem are you facing ? Were are you adding this font ? What attributes are you expecting not to change ?
If a font is installed, you can store the name and other properties in whatever medium you like ( such as a database, XML, or just hard coded ), and the program will re-create the font for you. I assume this font has the barcode elements in it ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello Sir,
Sorry for writting urgent because i was unable to get any solution for that but now i got it.
Thanks
Dixy
|
|
|
|
|
I'm glad you solved your problem ( not sure that I helped, b/c I really didn't understand exactly what the problem was ), but really, a good proportion of people post that their question is urgent, and the help you get here is free. You'll get help when someone decides to help you. People who are being paid will drop things they'd rather do, in order to get something done.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How Can I Add a Project from JAVA to J#.Net????
Hello
I have some projects in JAVA with some Dependencies, I want add all of the files without any loss of dependencies!
What can i do??
plz help me
|
|
|
|
|
What happens if you try?
The reason there's no J# forum is, no-one actually uses it
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Well this is a very dumb question..
I have a windows form and a label..
Now during the execution of the program, the text that goes into the label is of more length than the form allows, so it hangs..
How to make a label multiline, so that it shows up in the next line in the form??
|
|
|
|
|
set AutoSize to true or use '\r\n' for new line
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hello,
You need to make sure that you’ve got new line characters in the string as shown below:
this.label1.Text = "Multi-line" + Environment.NewLine + "label";
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Just make the property of textbox as follows.
TextMode="MultiLine"
Naina
|
|
|
|
|
My problem is as follows. The program works by creating new dataTable from a schema that the user has specified. once the person creates the table they fill it out, and hit the save command. The dataset is then saved to the sample object and serialized for later use. The problem occurs after the file is reloaded to edit. The previous data saved correctly and is displated on the datagrid. However if i change the data and then hit the save command again, it does not appear to save. Upon closing and reopening of the file, the dataSet looks as the origonal. Please help me. thanks,
public Sample sample;
public void sampleToEdit( Sample s, string path )
{
dataGrid1.DataSource = s.sampleData;
dataGrid1.DataMember = "sample";
sample = s;
}
private void saveCmd_Click(object sender, System.EventArgs e)
{
if ( isNewSample )
{
// this code runs when sample is created
Container sampleContainer = getContainer( templateDir + "sampleContainer.dat" );
string filename = sampleDir + uniqueCode + ".smp";
sampleContainer.container.Add(filename);
setContainer(sampleContainer, templateDir + "sampleContainer.dat" );
sample.sampleData = dataGrid1.DataSource as DataSet;
storeSample( sample, filename );
}
else
{
// this code runs when someone opens table to edit
string filename = sampleDir + uniqueCode + ".smp";
sample.sampleData = dataGrid1.DataSource as DataSet;
sample.sampleData.AcceptChanges();
storeSample( sample, filename );
}
}
|
|
|
|
|
And, what happens when you step through it in the debugger ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|