|
IIRC, Fill doesn't clear out the existing rows in the underlying DataTable.
James
- out of order -
|
|
|
|
|
I'd do a m_dsTables.Clear() before the fill operation.
Cheers
Martin
"Situation normal - all fu***d up"
Illuminatus!
|
|
|
|
|
Hi,
I would like to create a context menu when a right click on a simple button or any other control. I need this menu with few options to execute other code.
Does any one have any little sample code to do this or maybe some reference?
Thank you in advance,
Edgar
__________________________________________
Edgar Berengena Moreno
Software Engineer
Appeyron Research
|
|
|
|
|
Hi I search too for this information please Help us.
THX Badgott
|
|
|
|
|
The "Text" property is not showing up for one of my custom controls, although other properties show up. If I make my own "Text" property, the compiler tells me to put the override or new since my parent has the same property. HOw come it does not show up (although many inherited properties show up)? Does it have anything to do with some attribute?
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
try this attribute on your custom property.
[Browsable(true)]
|
|
|
|
|
I found about 10 syntax coloring/highlighting articles here on codeproject, but none are for C#. I've been trying to get RichTextBox to do it, but it always ends up being too slow, disrupting the user while the user is typing, if the file is medium sized like 40k. It's not really possible to do with richtextbox in c#, because the interop to do selection is so slow.
Anyone working on such a control or does anyone know of one?
"Outside of a dog, a book is Man’s best friend. And inside of a dog, it’s too dark to read."
-Groucho Marx
|
|
|
|
|
You can take a peek at how SharpDevelop[^] does it.
James
- out of order -
|
|
|
|
|
i want to creat a dir in system32 dir is it the right path
is there any changes in %systemroot% require for path?
%systemroot%\\system32\\
r00d0034@yahoo.com
|
|
|
|
|
No, that should work. You could also use %windir%\\system32
A good way to check this type of stuff is to type the environment variable in to the Start|Run... box. That will put you right in the specified directory. Or, if you wanted a .NET way to find the System Directory, you could always do System.Environment.GetFolderPath(SpecialFolder.System);
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
i am having string's like following examples in a loop
-------------------
@123456
@65465498
@-65465498
123456k
65465498 k
-65465498 l
how are u
nice dear
--------------------
these are the strings that i want to convert them into integer value but they also contain characters and speces and sentances. how to convert valied strings into int?
can any body tell the good check so that ?
is there any way to neglect character in a string?
r00d0034@yahoo.com
|
|
|
|
|
Well, first off, you would have to remove all the non-numeric characters. Then you could do System.Convert.ToInt32(string); where string is the string that you want to pass in.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
I'm sure that ToInt32 would throw an InvalidCast exception, you could use a try catch to catch them, or use a regular expression to strip all non-numeric content. PLan A is a hack, plan B would take a tiny bit longer to impliment.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
I think I said to remove non-numeric characters...
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
You sure did, but while imran has been here for six months, in that time he does not seem to progress beyond asking the simplest of questions, and not explaining HOW to remove the characters is just begging for another post from him, so may as well answer it all at once.
In fact, he's now asked the same question in the C++ forum. I'm not sure if he was lost when he posted here, or if he's decided to change languages for this project after looking at the RegEx help in MSDN....
It's funny how often you answer a question though, and a day later, someone else posts the exact same answer to the same question.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
dear first of all let me tell you that i am doing my work in dot net that's why i can use any language it might be c# or vc++ (does not matter for myself atleast)?
but some time there are wrong answers for a question thats why it asked again.
as well well as the progress is consern let the day come when i put my project here.
r00d0034@yahoo.com
|
|
|
|
|
imran_rafique wrote:
dear
Why is it that I need to keep telling people who don't speak English that calling me 'dear' is inappropriate ? *sheesh*
I guess you were using .NET, seeing as you asked on the C# forum. Duh. The point is, is how easily you can do some simply string mashing a good reason to choose one language over another ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Hey Christian, what's your MSN IM address?
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Sorry, don't have one. I've managed to avoid the IM thing. I ran up Sonork last night when CP when down, but I usually don't run that ( and certainly not here at work ).
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
I've managed to avoid the IM thing
Why? It's really convenient. I wouldn't have known about this little fiasco here had not James alerted me via IM.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Check my post count now, and tomorrow. Then ask yourself, if this man had IM, would he get any work done at all ? Plus work frowns on it.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
Check my post count now, and tomorrow.
No need. You're number two on the Most Active list.
Christian Graus wrote:
if this man had IM, would he get any work done at all ? Plus work frowns on it.
There's always home...
What time is it there? It's about 8 PM here...(Southern Cali, US, North America, Western Hemisphere, Earth, Inner Space, Solar System, Milky Way, Universe, God's hand)
What about your neck of the woods?
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
David Stone wrote:
No need. You're number two on the Most Active list.
I was number one for a long time, but Nish overtook me. I don't think he posts much anymore though, so maybe I might find my fortunes taking a turn for the better.....
David Stone wrote:
What time is it there?
2:30 pm. By the time I am on my PC at home working into the night, most CPians are asleep. I'm thinking of keeping Sonork running though. I am MeanManOz on Sonork ( a long story ).
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Christian Graus wrote:
2:30 pm. By the time I am on my PC at home working into the night, most CPians are asleep.
How sad...don't you hate the fact that we actually have to sleep.
You will now find yourself in a wonderous, magical place, filled with talking gnomes, mythical squirrels, and, almost as an afterthought, your bookmarks
-Shog9 teaching Mel Feik how to bookmark
I don't know whether it's just the light but I swear the database server gives me dirty looks everytime I wander past.
-Chris Maunder
|
|
|
|
|
Yes, I often think about how much more productive I could be if I could just stay up and work. I only get 2-3 hours most nights for my own projects.....
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|