I have a tabcontrol which contains tabpages. Each tab page take a while to load data for which i show a progress bar. [b] My issue here is while the progressbar is loaded user can click other tab and after completion of progress the control goes back to new tab selected. So i want to disable tabs till the progress bar is completed. I am using C# .net as code of my language.
There is no "flush the event". What you're describing is switching to a modal tab (you can't switch away from it) until the progress bar is complete. Don't. A modal operation like this would dictate that you put up a small modal form with a progress bar that doesn't allow interaction with the parent form until the job is complete.
By keyboard wedge, I meant that your bar code scanner functions like a keyboard... Looking at your answer to the other poster, it looks like your scanner _is_ a keyboard wedge, in which case you cannot do what you wanted to in your OP.
just wondering if there is a way to use ViewState in a windows form without using asp.net... i have downloaded source code from this site in asp.net to view file details ie: date created last modified ect the reason for this is making an anti cheat tool for a game we use online.... the few lines of code im having problem with is...
Protected Property currentFolderPath() As String
If Not (ViewState("m_currentFolderPath") Is Nothing) Then
Set(ByVal value As String)
ViewState("m_currentFolderPath") = value
everything is working its displaying the list of files in my listbox1 it just dont show details of that file because of the ViewState problem
now i dont want the app to run as a website but a hidden windows form when game loads and if all files are as they should be the form closes if there is a problem and they have cheated then the game will close! and the only problem im havin is this ViewState i cant find any info on google nor any forums i use if someone can help it would be great thanks in advance
No, considering it's completely meaningless in Windows Forms. ViewState holds onto the current state of the controls and variables on a Web Form between page refreshes. There's no such concept in Windows Forms.
I see nothing in this code that couldn't be done more simply with a class-scoped variable.
Very confused here in VB.net 2003. If the user is working in one form and clicks onto a 2nd form, the first form's deactivate does not fire if they click on the grid in the 2nd form, but it does fire if they click on the 2nd form's header. Also the 2nd form's activate does not fire either. This seems strange, how can I determine when the user has clicked off of the first form onto any control on the 2nd form? I've tried Lost Focus but that didn't work either. I'm trying to disable a timer on the first form whenever the user clicks onto any other form, but it doesn't seem to work unless they click on the form header and not the grid.
Thanks, I'm already using mdi parent/child forms. I have several child forms where there are automatic data refreshes being triggered by timers. I'm trying to stop these from firing when the user clicks on another form already open. Since the original post, I have everything working fine except for two forms that are instantiated from the same base form. The form activate and deactivate don't work consistently on these two. I'm guessing my problem has something to do with these two being based on the same form. More investigation to do!
I need to populate a combobox, with a list of servers from the registry, I've written the following code, which I thought would work, however, when I run the project, I get the following error "NullReferenceException was unhandled, Object reference not set to an instance of an object."
This is the code I'm using, can anyone see where I may be going wrong?