|
And?
What does it do that you didn't expect, or not do that you did?
What data did you test it with? What results did you get?
We can't see your screen, access your HDD, or read your mind...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Based on his previous "question"[^], I suspect he's just using the forums as a place to dump his code.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
OriginalGriff wrote: We can't legally see your screen, access your HDD, or read your mind...
FTFY
PooperPig - Coming Soon
|
|
|
|
|
What about 1 800 FLOWERS ?
|
|
|
|
|
Why would you want a regex for spam?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I'm married; I need it on speed dial.
|
|
|
|
|
Shame - without the country code, my phone number is 11 digits. Your validation kind of sucks.
|
|
|
|
|
Pete O'Hanlon wrote: 11 digits How about +44 instead of 0?
Your time will come, if you let it be right.
|
|
|
|
|
That's why I stated "without the country code"...
|
|
|
|
|
Ah I missed it completely.. , a "01202" case perhaps?
Never mind.
Your time will come, if you let it be right.
|
|
|
|
|
I have a DataGridView with the 3rd column defined to show a ComboBox.
However, I'm not able to get the drop-down combo box in the 3rd column to display anything.
Here's a snippet of my code:
string[] row = new string[2];
row[0] = "Value 1";
row[1] = "Value 2";
mDataGridView.Rows.Add(row);
DataGridViewComboBoxCell cell = new DataGridViewComboBoxCell();
cell.Items.Add("Item 1");
cell.Items.Add("Item 2");
mDataGridView.Rows[0].Cells[2] = cell;
The data in the first 2 columns shows up just fine (i.e. Value 1 and Value 2).
But there is nothing that shows up in the drop-down combobox in the 3rd column. (I'd expect to see "Item 1" and "Item 2") in the drop-down combobox. I see the down-arrow on the combobox but when I click it, nothing happens.
What am I doing wrong?
Thanks
-Mike
|
|
|
|
|
works for me. Just tried it.
Make sure the third column is defined in the designer and set as a DatGridViewComboboxColumn.
It does react a little unnatural in the sense you need to click more than once to drop down the items.
I made a winforms app, dropped a DataGridView on it and only changed the Columns property (2x textboxcolumn, 1x comboboxcolumn). Then I used copy/paste on your code.
Hope this helps.
|
|
|
|
|
How to send the selected pdf files to the default printer, instead of merge.
http://www.codeproject.com/Articles/470190/PDF-Merger-and-Protector
|
|
|
|
|
You should ask in the Comments and Discussions for the article.
The author will be notified.
Asking here doesn't notify the author of the article and depends on the author "just happening to notice" this question.
A positive attitude may not solve every problem, but it will annoy enough people to be worth the effort.
|
|
|
|
|
Thank you, I notified the author.
|
|
|
|
|
To make my program portable I want to add the the needed .dll file as ressource and built it into the whole .exe file. Now I don't know how to get the path for the .dll file. I've got a function which needs as a parameter the path to the .dll file. Hope you understand my problem. I tried: http://www.codeproject.com/Articles/528178/Load-DLL-From-Embedded-Resource
But all I tried from this doesn't work.
modified 16-Dec-14 16:30pm.
|
|
|
|
|
|
Oh I see atm. Link above was the same link you posted. I tried this above. Doesn't work.
|
|
|
|
|
Janis Heller wrote: Doesn't work. Doesn't tell us anything.
|
|
|
|
|
By using the path from example nothing happens. No error occurs but the DLL doesnt get loaded because my function dont do anything (output).
|
|
|
|
|
I did this ages ago - the biggest issue I found was making sure I had the correct path to the embedded dll in the assembly - I think I resolved it by using 'something like' (this may not be the exact code, but you'll get the idea)
string[] resourceNames = this.GetType().Assembly.GetManifestResourceNames();
foreach(string resourceName in resourceNames)
{
System.Diagnostics.Trace.WriteLine(resourceName);
}
once you've gone through that to make sure you have the correct name you shouldn't have any issues
|
|
|
|
|
Hi,
I would like to ask, in C#, how can I convert any string to a 24 hexadecimal digits like this:
XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
if the string was 1 character length or more or even more than 24 character length or even if it was 240 characters?
Thanks
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
It is all the same however many characters in the original. Just a question of taking successive groups of four bits and using the Int32.ToString[^] conversion on each set. Repeat as necessary.
|
|
|
|
|
|