|
1 Text box, 1 Context menu.
Well, i didn't want the context menu, so i got rid of it, like this:
this.textBox.ContextMenu = new ContextMenu();
And now it is gone, and it works. But, and you can try this yourself, if you right click it, and then drag away from the text box, when you release the mouse button, the menu appears, and you can copy / paste / undo etc.
Crazy huh?
|
|
|
|
|
Good Morning,
i have a problem again!
i have a form with a DataGrid.
imagine a datagrid with three rows, ok!
the focus is on first row and i click on enter it goes to second when i click again until the third row. when it is last row the focus stay there. i'd like it return to first row when i click on enter again.
Thanks a lot!
|
|
|
|
|
how do i insert an icon in the taskbar at runtime?
|
|
|
|
|
I guess you're looking for the NotifyIcon .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
i want to update a record that binds to the table,how do i this work?
|
|
|
|
|
I am trying to make a picturebox transparent (except the border). I selected the background to be (web-transparent), but that didn't work.
Is there a better object to use? I want to be able to move around the borders of a rectangle and show the picture under it.
|
|
|
|
|
Is there a way just to draw an empty rectangle?
|
|
|
|
|
Years ago (1998) I wrote an MTS application that had a C++/ATL middleware and a VB 6.0 front-end. I remember an object (Collection) that you could stuff unique values into. It would throw an error if your values were not unique. You could trap the error and continue adding values. What made it nice is you didn't have to manually iterate the data structure checking for uniqueness before inserting your values. Does C# have such a data structure? I can write one but if there's an intrinsic structure that takes a key, value pair that would be great.
Anybody know of such a beast?
My name is Maximus Decimus Meridius, Commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered process, husband to a murdered thread. And I will have my vengeance, in this life or the next. - Gladiator
I work to live. I do not live to work. My clients do not seem capable of grasping this fact.
|
|
|
|
|
You can always check Contains(newObject) before inserting the object into a List. Then you insert the value if it does not already exist.
|
|
|
|
|
Seems like the last time I tried that I got bogus results... I'll try it again...
My name is Maximus Decimus Meridius, Commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered process, husband to a murdered thread. And I will have my vengeance, in this life or the next. - Gladiator
I work to live. I do not live to work. My clients do not seem capable of grasping this fact.
|
|
|
|
|
Hi!
Doesn't any collection implementing IDictionary give you what you want?
If you try to add an element whose key already exists in the dictionary, an ArgumentException is thrown...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Not positively sure. By convention I try to avoid causing any type of error as a means of correct programming so I've never tried this. I'll let you know what I find out.
My name is Maximus Decimus Meridius, Commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered process, husband to a murdered thread. And I will have my vengeance, in this life or the next. - Gladiator
I work to live. I do not live to work. My clients do not seem capable of grasping this fact.
|
|
|
|
|
Well that is 1.1 the dictionaries prolly do it in 2.0 as well.
File Not Found
|
|
|
|
|
Going to find out. Never tried it before so I thought I should ask before I started playing with matches.
My name is Maximus Decimus Meridius, Commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered process, husband to a murdered thread. And I will have my vengeance, in this life or the next. - Gladiator
I work to live. I do not live to work. My clients do not seem capable of grasping this fact.
|
|
|
|
|
I am new to C# and facing a problem. Please help me
•I have to programmatically verify digital signature of cab file downloaded from internet. Please guide me for right technical article, etc.
•I Have the public key of file publisher through which I have to verify the signature origin too
Ashwini
|
|
|
|
|
Does anyone know an available FTP class that I can use to upload files using MVS DSName (Mainframe) naming conventions? such at blah.blah.filename
By the way...I am crippled into using .net 1.1 so FTPWebRequest is out of the question. Thanks!
|
|
|
|
|
Simple Google or Code Project search would have yielded this[^].
|
|
|
|
|
Hey, thanks for the suggestion. Too bad I've already done countless "Simple Google or Code Project" searches and found that this class is completely useless. Not to worry...I have gotten the wininet.dll command function working.
|
|
|
|
|
Is it possible to have one backgroundworker complete one job, then move on to another completely different job all in the same class? If so, how?
Thanks!
|
|
|
|
|
No, not without any coding. You could easily modify the BackgroundWorker to support such a thing. Fortunately for you, someone's already done this: QueuedBackgroundWorker component[^].
|
|
|
|
|
How can i generate random number in C#?
|
|
|
|
|
Random on = new Random();
int num = on.Next(1, 100);
1 and 100 is min and max limit
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
|
I always use the hard-coded value of three. You can't really prove its not random.
Some people insist on System.Random but I don't trust it.
File Not Found
|
|
|
|
|