|
Error number of what?
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
IN VB WE CAN CHECK ERROR NO. BY USING
ON ERROR GOTO ERR
ERR:
MSGBOX (ERR.NUMBER)
NOW HOW CAN IT POSSIBLE IN C#
If you can think then I Can.
|
|
|
|
|
STOP SHOUTING - It is rude!
|
|
|
|
|
ok colin
If you can think then I Can.
|
|
|
|
|
In C# we do this by putting the code below where the On Error Goto would be inside a try block. The Err label is replaced by catch block(s). In addition we have an optional finally block that is run after either have completed:
try
{
}
catch(Exception ex)
{
}
finally
{
} More details here[^].
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Which error do you want the number for? I've had most of them in my time, so I might be able to let you have it.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Just give him a copy (they aren't DRM after all). You might need it again - I know I will need mine!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
MY REPLY IS POSTED PLEASE CHECK
If you can think then I Can.
|
|
|
|
|
THERE'S NO NEED TO SHOUT - WE CAN HEAR YOU FINE. It is also rude to use all caps.
|
|
|
|
|
Have you tried looking at the GetLastError API method? I think that there's a managed wrapper around that which may help (Marshal.GetLastWin32Error I think)
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
I THINK IT IS APPLY FOR ALL PROGRAMS IN MY COMPUTER.
AM I RIGHT?
If you can think then I Can.
|
|
|
|
|
eg_Anubhava wrote: AM I RIGHT?
I DON'T KNOW. I CAN'T THINK OVER THE SOUND OF HOW LOUD YOU ARE SHOUTING.
|
|
|
|
|
Even a quick google would have shown that to be untrue. If you google it, the first thing you see is:
GetLastError Function (Windows)
Retrieves the calling thread's last-error code value.
|
|
|
|
|
Sorry But Please Explain It to finding Err.Number.
If you can think then I Can.
|
|
|
|
|
Hey Anubhava...
did you got the solution to find error number in c#.net???
i have the same requirement i tried so much but i did not found solution
please pass solution if you got
tnx in advance
|
|
|
|
|
Hello,
I am developing a application, in which, i have a domain server like ITES.COM, approx 100 systems connected to this server. i have entered login details & path of Domain by using DIRECTORYENTRY. then i have got all local computer name. when user click on any computer name then display hardware configuration according to computer name.
i used WMI for fetch Hardware Configuration, but its through exception "Access Denied". when i paas login details of individual machine.. then its work perfectly.
So, how i authenticate Domain Login Details on local machine for get hardware Configuration.
|
|
|
|
|
Hi Experts
i using Visual Studio 2005.
I Fill a grid using Dataview in C#.NET winForms.
I Filter it with Dataview RowFilter then the result Come After Row Filter
Show in Different Grid now i want to Filter The Data from Second Grid not from first grid.
I mean to say that suppose e.g I Have Grid Result first Time
ID Name
1 Hello How R
2 i am fine
3 this is my book
4 this is C# Book
5 this is C# Example
6 Book is black
now i apply Row Filter on the 'this is'
dvs.RowFilter =Name like '%this is %'
now Result Come
ID Name
3 this is my book
4 this is C# Book
5 this is C# Example
Now i am again apply Row Filter not on the first case but apply on the second case.
now i apply Row Filter on the 'this is'
dvs.RowFilter =Name like '%Book%'
now Result Come this
I want this result set
ID Name
3 this is my book
4 this is C# Book
but result come
ID Name
3 this is my book
4 this is C# Book
6 Book is black
then how to fix this problem
this search within search in n time untill zero result is come....
Thank u
Dinesh
|
|
|
|
|
Do not Re post the same question,you already get a reply for your previous post.
|
|
|
|
|
i got a method i need to run that method automatically when run my application without pressing any button or without any user interupt.
A S E L A
|
|
|
|
|
umm ok so on your load event, throw a call to that method. If it is a console application, throw it in the main method...
|
|
|
|
|
when my application run allthe time i need to run this code....
pl help me to post some example codeing related to this...
thankss..
IntPtr hWnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Progman", null);
ShowWindow(hWnd, 0);
int intReturn = FindWindow("Shell_traywnd", "");
SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);
A S E L A
|
|
|
|
|
I just puked a little bit.
|
|
|
|
|
|
S K Y wrote: IntPtr hWnd = FindWindowEx(IntPtr.Zero, IntPtr.Zero, "Progman", null);
ShowWindow(hWnd, 0);
int intReturn = FindWindow("Shell_traywnd", "");
SetWindowPos(intReturn, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);
It is really surprising that you can understand this code and then ask such questions.
|
|
|
|
|
He's obviously copying and pasting code from all over the web, and yet has no idea what he's doing. Remember the barcode login fiasco ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|