|
My form has a TabControl consisting of several TabPages, one of which is called processingTabPage. When the forms Load event fires I remove the processingTabPage for the TabControl's TabPages with :-
TabControl.TabPages.Remove(processingTabPage)
When a particular event occurs I add the tabPage back onto TabControl
TabControl.TabPages.Add(processingTabPage)
Then I would like the processingTabPage to show to the user automatically.
TabControl.TabPages(TabControl.TabPages.IndexOf(processingTabPage)).Show()
All works ok accept the showing of the TabPage to the user. Why?
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
I believe you want to set the TabControl.SelectedIndex or the TabControl.SelectedTab. If you are using .net 2.0 there is also a new method in the TabControl called SelectTab().
Hope that helps.
Ben
|
|
|
|
|
Thanks Ben, that sorted it.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
hi!
please help me how can i use VScrollBar to Scroll a long page.... using vb.net of vb6
|
|
|
|
|
hi
i am developing an ide for java,iam facing problem with
getting column number(or char no at line being edited).can anyone help.
also can anyone guide me how to handle syntax highlighting.
Thanks
Sourabhj
sourabh
|
|
|
|
|
Hi Guys
Does anybody know how i can obtain the number of pages from a crystal report (version 8.5) using VB 6 before i call the print function. My current code is:
Dim rep As Report<br />
Set rep = CreateReport("Report.rpt")<br />
rep.PrintOut False
The PrintOut property supports optional properties to specify pages from and to. Basically i want to specify these before calling printout as only the first 200 pages are printing even though there is 500 pages in the report.
If i could get the number of pages i can call the printout method a few times passing it different page numbers each time.
Thanks in Advance
Keith
|
|
|
|
|
Hello,
I am using a tab control with each tab created at run-time.
I am using the SelectedIndexChanged event so I can process some data that has been input on the selected tab. However, I need to know which tab the user has just left, so I can process some data that is needed before that tab loses focus.
The selectedIndexChanged event is good for finding the tab that has been selected, but not the one that has just lost focus.
I could proberly loop through all the tabs and find the one that has lost focus, but I am wondering if there is a better method.
Many thanks,
Steve
|
|
|
|
|
one possible way would be to store the selectedindex from the tab in a variable
then in the selectedindexchanged event you process your data and after that you set you're variable to the new selectedindex
|
|
|
|
|
If you are using .net 2.0 there is a deselected event where the sender being passed in is the tabcontrol and the selectedindex of that tabcontrol is the tabpage that is losing focus.
Hope that helps.
Ben
|
|
|
|
|
Yes, I am using VS 2005
Thanks
|
|
|
|
|
So I think the deselected event should work pretty good for you then. The SelectedIndex and SelectedTab should still be the previous TabPage.
Ben
|
|
|
|
|
hi all
i need a ruler to set the indentation of richtextbox in vb.net
can some one help me to get one
ash
|
|
|
|
|
|
Q1/
If this is the path to save an open Excel file running in the background
xlSheet.SaveAs("c:\My Path\tk" & Format (Me.MonthCalender1.SelectionStart, "yyyyMMdd") & ".xls")
How would I open a file using the MonthCalender1 (Change-Date) as the trigger to determine the name? e.g. "tk20070727.xls" ?
Q2/ Having opened the file (running invisable in the background), how can I pull the data from a cell to a variable?
Q3/ How do I close the invisable running .xls file in runtime?
|
|
|
|
|
how to identify status of mscomm event when a reciever attend the phone
thank you
-RisKhan-
|
|
|
|
|
There is no event if the phone is picked up... Whatever you have the phone connected to, I'm assuming it's a modem, has to be able to send a message to the PC. AFAIK, there is no modem out there that will tell you if the phone goes "off-hook".
|
|
|
|
|
i m trying to use the filesave-dialogbox, it works ok bt 1 problem i m facing is when the filename is even nothing the "Save" botton is enable and clicking it does nothing except the dialog reappears.... Plzz tell me how can i disable the "Save" botton when the filename is "", r nothing.
(Jameel)
|
|
|
|
|
To do that would involve some complex code, as you'd need to hook into the existing save as dialog, or just create your own copy of it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hello frnd,
i am creating virtual directory programaticallu using VB 6.0, it is running successfully
i create the site using
<br />
ObjVirtual = object.create("IISWebVirtualDir","Name Of Virtual directory)
but how can i set the application name in virtual directory, when i create the virtual directory programatically and click to the properties then application name textbox is empty...
and second problem is i want to check the "Intergated windows authentication" check box programatically,
please help....
any helpful code OR link ??????
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Hi all,
i Have solve the problem, we can set the Application Name in virtual directory by using
ObjVirtual.AppFriendlyName= "Name of Application"
and we can give the intergated windows authentication by using
ObjVirtual.AuthNTLM = True
But i have a new problem how can i set the default page enable in virtual directory...
please help....
regards
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Have a look at this link[^] for the list of ADSI properties. You want EnableDefaultDoc.
|
|
|
|
|
i have some code in currentcellchanged about catching up anychange of cells but it works when click enter or mause click i wanna see changing when click keyboard one by one of keys pls help me
|
|
|
|
|
I can't understand what your saying, what does "...when click keyboard one by one of keys" mean??
|
|
|
|
|
wanna see result of pulled database info in anothercell of datagrid when i push a key to currentcellchanged
my code work but need to left click or enter , wanna that it works when push a key
|
|
|
|
|
i cant understand the meaning of this part of a code , can someboday explain me the meaning
thank you
-- modified at 6:35 Friday 27th July, 2007
|
|
|
|