|
|
|
It is simple! Tabcontrol has a selectedIndex change event that is where you can control the index as stated below:
Dim GetIndex as Int32 = Nothing
Dim SetIndex as Int32 = Index numger goes here
GetIndex = Tabcontrol1.SelectedIndex
or you can set it to
Tabcontrol1.SelectedIndex = SetIndex
|
|
|
|
|
Hello
I'm trying to relate a program that use foxpro database to my program that I make it with VB. How can help me? In other word I want to use Foxpro Database in VB6.0 . Please Email my answer becouse I'm not Online very much.
Thank a lot.
If I have mistake, Please excuse me, becouse my English is not very well.
Thank again.
My Email is SaeidJorablo@Gmail.com
|
|
|
|
|
Hi all,
There seems to be a problem with Crystal Reports that comes packaged
with VS2005. Crystal has acknowledged the problem and assigned a
tracking number to it (early '05).
The problem is this, or in my case anyway, when I use a report that
I create I can pull the report up and everything is fine when
running the app on my development machine.
But, when I give the app to another machine it displays a logon screen and it does not matter what you type in for a username or password it will not accept it.
I am sure that I have all the files that are needed to be packaged with the app otherwise the CR logon screen would not be there and it would error out or something.
Just wandering if anyone else is having this problem and what you
might have done to get around it?
Thanks in advance,
-----------------------------
Noble D. Bell
www.noblesoftware.com
|
|
|
|
|
HI
Is there a way to stop the Combo's SelectedIndexChange event from firing when you bind a datatable to a combobox?
This does NOT work:
Me.cboProductCode.BeginUpdate()
Me.cboProductCode.DataSource = dtBmasshm
Me.cboProductCode.DisplayMember = "WPD"
Me.cboProductCode.ValueMember = "WP"
Me.cboProductCode.EndUpdate()
Thanks
Richard
|
|
|
|
|
Nope. The SelectedIndex is reset every time you bind the data to the box. You can't stop it from firing.
You can, however, set a flag in your code that says that a bind is taking place. In the SelectedIndexChanged event, you check to see if that flag is set. If it is, skip the rest of your event handler and and reset that flag. The next time your event handler is called, it'll know that a bind is NOT taking place and it should proceed normally.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You can also remove the handler for the selectedindexchanged avent before you change the binding
removehandler me.cboproductcode_selectedindexchanged, addressof cboproductcode_selectedindexchanged
Me.cboProductCode.DataSource = dtBmasshm
Me.cboProductCode.DisplayMember = "WPD"
Me.cboProductCode.ValueMember = "WP"
addhandler me.cboproductcode.selectedindexchanged, addressof cboproductcode_selectedindexchanged
Alexei AR
|
|
|
|
|
I have a web page that uses javascript to open two new web pages. The two new pages should be opend in full screen on dual monitors. But if I move one of them to the right monior and set Fullscreen = true, it opens over the other one.
How can I get the two web pages to open in different monitors.
I want to view one web page in each monitor
Please help....
Spaz
|
|
|
|
|
You can use the System.Windows.Forms.Screen , AllScreens property to get an array of monitors, each with it's own WorkingArea (hint, hint!), to set the Location and Size of each of your forms to different monitors.
This will enumerate the screens and show you their working areas:
Private Sub Form_Load(blah, blah) Handles Me.Load
For Each Scr As Screen In System.Windows.Forms.Screen.AllScreens
Debug.WriteLine(String.Format("Screen {0} has a working area of {1}", Scr.DeviceName, Scr.WorkingArea))
Next
End Sub
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for the reply
Using youre code I get information about the primary screen.
Could you please help me with what I should do next to show my two webpages in different monitors.
I would like to display them fullscreen.
PS The web page in the main screen is fullscreen, but if I set the other webpage to full screen it displays over the firs webpage, how do I get it to display in the secondary monitor?
Spaz
|
|
|
|
|
Spaz80 wrote: Could you please help me with what I should do next to show my two webpages in different monitors.
I would like to display them fullscreen.
I don't have a dual screen machine to test any code on. Sorry...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
No prob
Could you describe a way to solve my problem?
Hint or tips...
I am completely lost about what to do.
I can place my second webapp where I want on the secondary monitor. But not get it to go fullscreen. Beacuse it overlaps the first webpage..
Thanx
Spaz
|
|
|
|
|
Well, I had to wait until the boss the left town so I could put together a dual monitor system.
In the Native (Windows controlled) dual monitro setup, I don't have any problems with maximizing a form, or an IE browser window, and having it take up the correct monitor. If I drag a window to the other monitor and maximize it, it stays on the monitor.
Perhaps you'll have to play with your dual monitor configuration? I have no idea 'cause, truth be told, I can't get this setup to fail in the way you're describing!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can we write code for finding the system in idle position using vb.net with timers.
Muhusin Khan
|
|
|
|
|
Determine if the SYSTEM is idle?? Use the PerformanceCounter class to monitor the Idle process and watch for when its % Processor Time hits 99% or greater. You can find a small example here[^].
Set a Timer on your form for an Interval of 1000 milliseconds. In it's Tick event, just retrieve the next value from the PerformanceCounter and check to see if it's above 99%. If so, then the system is idle.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi
Is there an easy way to create a range of alpha-numeric serial numbers in the format: AAAnnn Where AAA are alphabetic and nnn is numeric. EG AAA000 to ZZZ999
Currently I'm using an array with the Alphabet, then checking if 'Z' has been reached, then increment the preceeding alpha digit etc, and then a separate loop to generate the numeric part.
To make it a bit more of a hassle... They want the letters "O" and "I" ommited from the alpha parts.
Is there a way to 'add' letters, and if 'Z' is reached start at 'A' again (E.g. A + 1 = B)?
R
|
|
|
|
|
Keep the current serial number in numeric format, and convert it to the coded format. Increasing a number by one is much easier than increasing a string...
Put the characters that you want in a string, then get the length of the string and you have the numeric base to use for converting the alphabetic part of the code.
Pseudo code:
chars = "ABC...XYZ"<br />
charCount = Len(chars)<br />
serial = serial + 1<br />
numericPart = serial mod 1000<br />
alphaPart = serial div 1000<br />
alpha3 = alphaPart mod charCount<br />
alphaPart = alphaPart div charCount<br />
alpha2 = alpahPart mod charCount<br />
alphaPart = alphaPart div charCount<br />
alpha1 = alphaPart<br />
code = chars(alpha1)+chars(alpha2)+chars(alpha3)+numericPart.Format("000")
---
b { font-weight: normal; }
|
|
|
|
|
I am trying to create classes with Shared methods for use with .net and VB6. Does anyone know how to expose the shared members to COM???Thanks
|
|
|
|
|
|
I am not too well up on exposing to COM, from the link + books i have read that shared members cannot be exposed? I can expose any other public member OK. Is there a way around this using structures or anything as i need to access members from vb6 without creating an object.
|
|
|
|
|
Nope. It's either instance methods or nothing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
.NET COMPACT FRAMEWORK
I am trying to open database which content is more than 10 000 rows.
I' using DataSet but loading is too long . Can anybode help?
rpiusx@hotmail.com
rpiusx@hotmail.com
|
|
|
|
|
Using a data set means that the results of the query are loaded in their entirity into the dataset first before you can do anything with it. This can take a long time (as you've seen) and take a lot of memory.
There isn't an easy solution for this.
Could you consider using a DataReader instead and processing the data one row at a time? Do you need all 10,000 row in the dataset? Could it just be that the query is very complex and the database needs the time in order to find the relevant rows?
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
hi,
how can i add progress bar to the vb application.
thanx
raj
|
|
|
|