|
Hello,
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.
I tried with options:
=> tabenabled = false - but it doesnot worked!!
Looking for a early positive reply.
|
|
|
|
|
The only way to disable tabs is to remove them from the tab control's collection. There is no other way.
|
|
|
|
|
Thanks for the reply. But i think some way we can flush the event while one tab control is being loaded.
|
|
|
|
|
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.
|
|
|
|
|
hi friends,
How to Block keyboard key in value to TextBox but barcode scanner still can use..?
Thanks in Advance.
Cheers
|
|
|
|
|
textBox.ReadOnly = true; This way the user won't be able to type text in the textbox,
but you can still change the text in the code behind:
textBox.Text = "Hello World!"; I don't know if this can be used with a barcode scanner,
but give it a try.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
i already tested that. by tat , v cannot scan in textbox using a scanner.
|
|
|
|
|
SamRST wrote: hi friends,
How to Block keyboard key in value to TextBox but barcode scanner still can use..?
Thanks in Advance.
If your barcode scanner is a keyboard wedge, I don't think you can do this.
|
|
|
|
|
My scanner is not a keboard wedge. its a USB scanner.
|
|
|
|
|
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.
|
|
|
|
|
Thanks for your reply..
Cheers.
|
|
|
|
|
Is there a way to programmatically simulate a menu item being clicked?
Thanks,
Steve.
|
|
|
|
|
thompsons wrote: Is there a way to programmatically simulate a menu item being clicked?
You mean this?[^]
led mike
|
|
|
|
|
Thanks for the suggestion. Not sure it will do the the trick, but will try it.
If anyone else can put their two cents(tuppence) worth in, would be glad to hear from them.
Thanks for the reply.
Regards,
Steve.
|
|
|
|
|
Yep! Worked like a champ!
Thanks for your help.
Regards,
Steve.
|
|
|
|
|
Hi,
I want to make an application which will take the images and then make a screensaver of those images. After creating the screensaver i need to upload it to the user's server.
I'm facing problem in making the screensaver .
Does any one has the function to create screensaver????
I've already made a screensaver but the screensaver is created using the ".exe generated by the windows application after building the project and then i'm converting it to the ".scr".
But, that is not the solution so all i want is to have separate code or say function so that i can make ".scr" or ".exe" beofore the whole application will be builded.
In Short i want to make a function which will genrate an .EXE so that i can use this code into my windows service.
Right now, I'm able to make the .EXE but it is generated when application is builded, So that i'm thinking of making function which will have the code to make ScreenSaver as well as generate .EXE.
Then only i can embbed my code in windows service.
Reply ASAP......
Please help........i need it urgently........
Thanks In Advance.....
modified on Friday, October 10, 2008 2:24 AM
|
|
|
|
|
Hi all,
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
Get
If Not (ViewState("m_currentFolderPath") Is Nothing) Then
Return ViewState("m_currentFolderPath").ToString().Trim()
Else
Return String.Empty
End If
End Get
Set(ByVal value As String)
ViewState("m_currentFolderPath") = value
End Set
End Property
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
Kev
|
|
|
|
|
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.
|
|
|
|
|
thanks for the fast reply.. im sorry but im still quite new to vb.net could you give me an example (i dont want you to wright my code for me just an example of what you mean)
thanks again
Kev
|
|
|
|
|
Protected Property currentFolderPath() As String
Get
Return m_currentFolderPath.Trim()
End Get
Set(ByVal value As String)
m_currentFolderPath = value
End Set
End Property
led mike
|
|
|
|
|
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.
|
|
|
|
|
listen,
i dont really know what you are trying to achieve but, try mdi forms parent/child or use usercontrols like pages rather than using many forms.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
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!
|
|
|
|
|
Hi,
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?
private void Login_Load(object sender, EventArgs e)
{
string strKey = @"SOFTWARE\Microsoft\Microsoft SQL Server";
//if (IntPtr.Size == 8)
//{
// strKey = @"SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server";
//}
RegistryKey rkSqlServer = Registry.LocalMachine.OpenSubKey(strKey);
string[] instances = rkSqlServer.GetValue("InstalledInstances")
as string[];
if (instances.GetUpperBound(0) >= 0)
{
foreach (string element in instances)
if (element == "MSSQLSERVER")
{
lstServers.Items.Add(Environment.MachineName);
}
else
{
lstServers.Items.Add(Environment.MachineName + @"\" + element);
}
}
}
Thanks,
RB
|
|
|
|
|
RighteousBrother wrote: string[] instances = rkSqlServer.GetValue("InstalledInstances")
where do you get the error
Try stepping through with debug and chack the value of rkSqlServer after opensubkey, I'm betting there is no key returned.
Never underestimate the power of human stupidity
RAH
|
|
|
|