here is what i have and what is happening. I have a main form then another form opens when user clicks the add button. on this form when you add the new information an error check is suppose to run. my problem is i need the error check to stop running and leave the focus on the 2nd form to show where the error is. instead it wants to go back to the main form and finish executing the code that was started when the 2nd form opened! any suggestions thanks
that is not quite what i am looking to do. i believe a try catch is for debugging your own code sort of.....i need am trying to throw messages to the user if there input is wrong. thanks for the help though
well its about validation just because you use a try catch doesnt mean you do or dont have to throw a message. Obciously if there is an error you need to catch it and determine what is wrong and how to resolve the issue
I'm not an expert yet, but I play one at work. Yeah and here too.
I do not know of a way in .NET but in Win32 you can probably do it with a DLL and HookProc. It will map your DLL into the system memory space were you can trap the messages. I used this method in the old days to communicate with the AOL software and capture its messages.
It's best not to deal with system-wide hooks, but it can be done. The main thing is that if your DLL hangs, the system hangs. (I've had experience with that! ) You might also look into a journal hook, although it may not work for paint messages.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
jdunlap wrote: The main thing is that if your DLL hangs, the system hangs.
Makes debugging interesting
Actually, I never had any problems with System Wide Hooks. The code required to implement them is not complex and as long as you keep to only what is required and do not pile a lot into the DLL, things should be fine.
You need to watch when you attach and detach from different applications, a goof in there can cause strange things to happen
Thre are not anything to be afriad of though, I used them for years with the application I mentioned and never recieved on issue about it crashing their system.
"To install a global hook, a hook must have a native dynamic-link library (DLL) export to inject itself in another process that requires a valid, consistent function to call into. This requires a DLL export, which .NET Framework does not support. "
But this supported by MC++. I have a single dll with exports and a manifest ad can be used by bith managed and unmanaged apps, just as long as you have .NET installed, the process is transparent to unmanaged code.
So IMO its should be a trivial task to make an interface for a global hook.
leppie wrote: But this supported by MC++. I have a single dll with exports and a manifest ad can be used by bith managed and unmanaged apps, just as long as you have .NET installed, the process is transparent to unmanaged code.
I guess what they mean is that the .NET Framework doesn't natively support this type of functionality (strictly within the Framework itself), I believe what you have is a "work-around". Then again, I could be completely wrong.
I want to traverse a 3 column table to get the 3rd column's textbox data. The first 2 cell's have text assigned to the cell (cell.text="xyz"). When I run this, column 2 cell's text is read with no problem:
However I get error message when I try to use FindControl or do something like:
for(int i=1; i<=TasksTable.Rows.Count-1; i++)
// Or like.. txtColumn3 = TasksTable.Rows[i].Cells.Text;
TextBox txtColumn3 = (TextBox)TasksTable.Rows[i].Cells.FindControl ("Hours");
Your syntax help would be appreciated. Thanks in advance if you don't hear from me, Jim.
Hi, I'm looking into application updater libraries/packages/systems. It would either be something where the user clicks on "Check for updates," or something
that happens automatically when the application loads. Ideally the server would be OS-independent (i.e. not require .NET or Windows).
Does anyone have any preferences? Microsoft's Application Updater Block might do the trick, but I might run into an OS dependency , and besides, it seems like 3rd parties tend to outdo Microsoft...
I need to record my rows' position orders and assign an order number to each row. How can I implement this by dragging and dropping rows on DataGrids? I appreciate it very much if you have any info. on this.
Last Visit: 31-Dec-99 19:00 Last Update: 26-Feb-24 15:19