|
I'm trying to create a wizard with a tabstrip control. but I want to use command buttons to move next previous etc...
<br />
Private Sub isBtnPrevious_Click()<br />
TabsWizard.Value = TabsWizard.Value - 1<br />
End Sub <br />
doesn't move the tabs rather it errors out "Method or data member not found" with the ".value" highlighted
any help would be greatly appreciated
|
|
|
|
|
You can use this
Private Sub isBtnPrevious_Click()<br />
On Error Resume Next<br />
TabsWizard.Tabs(TabsWizard.SelectedItem.Index - 1).Selected = True<br />
End Sub
chatura
|
|
|
|
|
Okay! Create two buttons on the form for (next and previouss) and place your tab control on to form also (I assume that it is Tabcontrol1 with n tab pages). You should have a global variable which will track the index number with increments or decreaments... Here is the part of an example...
Public TABINDEX as Int32 = 0
'Next button
Private sub Button1_Click(Sender, e) handles button1_click
TabIndex +=1
if Tabindex > Tabcontrol1.tabpages.count Then
TabIndex = TabControl1.tabPages.count
end if
TabControl1.SelectedIndex = TabIndex
End Sub
Do the opposite thing for the deacrement and use
Private Sub Button2_Click(Sender, e) handles Button2_Click
'Previous button
TabIndex -=1
if TabIndex < 0 Then
tabindex = 0
end if
TabControl1.SelectedIndes = TabIndex
end sub
|
|
|
|
|
Hi guys,
I want to built a program to recieve e-mails.
From Outlook Express I "connect" to mail.uth.gr (pop3) with password and username, so I download my e-mails.
So, suggest me some links in Web that I can take knowledge to make this project.
There is a .com Referecne Outlook Library 10.0, It's necessary for this prog?
Thanx in advance..
-- modified at 20:13 Wednesday 8th February, 2006
|
|
|
|
|
Working on a project and i want to use flash to spice up the user interface. However I dont' know how to set a Flash button to work with the VB form. If anyone can help me out or point me to a good ref on how to bind flash to VB events please let me know,
|
|
|
|
|
This is an example.
Flash MX
Create a button.
Select “Window” menu. Select “Development Panel --> Actions”
In the code editor, type this
on (release) {
fscommand ("Button1");
}
Save the movie. (“Untitled-1.fla”)
Select “Control” menu and Select “Test Movie”
Flash will create (“Untitled-1.swf”)
Exit from Flash.
VB.Net
Right click on the tool box. Select “Add/Remove Items…”. Select “COM Components”
Select “Shockwave Flash Object”. Click OK
Draw it on the form
Name it “SF1”
Right click on “SF1” and select “Properties”
Type the path to “Untitled-1.swf” in the “Movie URL” textbox.
Click OK
Double Click on SF1 ( go to Code Editor )
Select “FS Command” from Procedure List Box
Type this
Private Sub SF1_FSCommand(ByVal sender As Object, ByVal e As AxShockwaveFlashObjects.DShockwaveFlashEvents_FSCommandEvent) Handles SF1.FSCommand
If e.command = "Button1" Then
MsgBox("it works")
End If
End Sub
Run the program
Click on Button1
chatura
|
|
|
|
|
what can i SAY
thist has got to be one of the coolest code I've learned for the last 10 months
Marvin N. Guerrero
- Taje Kage_bunshinNunJutsU
|
|
|
|
|
Thank you!
chatura
|
|
|
|
|
Hi all,
I've made an application in VB6 that uses a datagrid and adodc to show data from an MSAccess database. In the computer where I've developed the application there's no problem but when I install the application in another computer where VB6 is not installed the datagrid fails when tries to show the data.
I've included in the installation program (made with Inno Setup) MSADODC.OCX and MSDATGRD.OCX that I thought were enough to use the datagrid and the adodc components properly. I've always ensured that these components have been registered.
Is there any other component to install that I'm missing?
I've used the dependency walker to check all the libraries needed but all seems ok ...
thansk in advance,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-- modified at 18:26 Wednesday 8th February, 2006
|
|
|
|
|
Hello,
Well, I have a PictureBox and this control contained an image.
For example the PictureBox has 200 x 300.
Well the image size is 800 x 600.
Is possible that move the image in the picturebox,
for example the coord(0,0) of the picture box show the coord(100,100) of the image.
I want to drag and drop and move the image on the picturebox, so the picturebox is like a window only I can see an area 200 x 300 of the image.
Thank you, sorry meaby a I can't explained for my bad english.
See you
gangeles
|
|
|
|
|
If I understand..
Try to save a new image file from the first picture 800x600, with size 200x300 with the field of first picture that you want. It's very easy with bitmap..select all..move..remake picture size..and save it! Now try again to import the new image in PictureBox 200x300!
-- modified at 19:01 Wednesday 8th February, 2006
|
|
|
|
|
This is actually pretty easy. Load the image into the PictueBox at full size (800x600), then put the PictureBox in a Panel control. Make sure the Panels AutoScroll property is set to true.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
aBsolutely! that is exactly what i have in mind
simple yet effective move from the machine
Marvin N. Guerrero
- Taje Kage_bunshinNunJutsU
|
|
|
|
|
Well Folks,
Finally I founded that I need.
The ImagXpress Pegasus control 7.0 have all the things I need.
http://pegasusimaging.com/imagxpress.htm
This demo have an example:
C:\Program Files\Pegasus Imaging\ImagXpress\V7.0\Samples\ActiveX-COM\VB6\ViewingTools
CU and Thanx
gangeles
|
|
|
|
|
Hi,
I have several dropdownlist controls in a data repeater. How do I setup each dropdownlist's selectedindex when I bind the repeater?
Thanks!
|
|
|
|
|
Okay, I solved the problem.
Could be like this:
dim op as dropdownlist = ctype(repeater.item(i).findcontrol( _
"dropdownlistid"), dropdownlist)
op.selectedindex = 1
|
|
|
|
|
Hello
Could some of you, great people, please help me?
I have a array of controls and I would like to get the events.
Here is the code:
Dim pic(10) as system.windows.forms.picturebox
For a=0 to 10
pic(a)=new system.windows.forms.picturebox
' the rest of the properties
me.panel1.controls.add(pic(a))
next
How can I catch the events of the 'pic' controls?
Thanks
|
|
|
|
|
You have to write up the events of the PictureBox controls yourself using AddHandler[^].
Dim myPicBox As New PictureBox
AddHandler myPicBox.Click, AddressOf PicBoxClick
.
.
.
Private Sub PicBoxClick(ByVal sender As Object, ByVal e As System.EventArgs)
...
End Sub
Don't forget to use RemoveHandler to disconnect the handler before you destroy the picturebox.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You have used an array for the picture boxes which I don't suggest you to do that because you must have Addhandler or Eventhandler statements to control the event's of picture boxes.
According to your code, you should have one mutual eventhandler procedure which will run all the picture boxes. Focus on Addhandler and Eventhandler statements to get more information.
Here is an example from MSDN :
Sub TestEvents()
Dim Obj As New Class1
' Associate an event handler with an event.
AddHandler Obj.Ev_Event, AddressOf EventHandler
' Call the method to raise the event.
Obj.CauseSomeEvent()
' Stop handling events.
RemoveHandler Obj.Ev_Event, AddressOf EventHandler
' This event will not be handled.
Obj.CauseSomeEvent()
End Sub
Sub EventHandler()
' Handle the event.
MsgBox("EventHandler caught event.")
End Sub
Public Class Class1
' Declare an event.
Public Event Ev_Event()
Sub CauseSomeEvent()
' Raise an event.
RaiseEvent Ev_Event()
End Sub
End Class
)
|
|
|
|
|
Thanks
It worked fine!!!!
|
|
|
|
|
what is interface.
When we use interface in our program.
Continue...
|
|
|
|
|
Read this[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
when i click F1 in certain code of VB , my library help example( help1.chm) and VB help are opening. actually my library should open. closing VB help , my library help is also closing , therefore something related to parent relationship. how to hide or remove the VB help when i click F1 on related to certain help(.chm).
note: u can see visual basic for applications under references of tools menu
tools->references->VBA
its mandatory check , we cant uncheck it.
www.tamilselvan.zoomshare.com
|
|
|
|
|
tamila_tamila wrote: note: u can see visual basic for applications under references of tools menu
tools->references->VBA
its mandatory check , we cant uncheck it.
This would have nothing to do with a Help file being launched.
You're saying that VBA Help is launching along with YOUR help file? Is this code in an Office application?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
that is not the code , i do no why VB help help is alsp opening with my help. anything to be set in context sensitive help, actually i do no wat kind of help it is after clicking F1 in vb code
www.tamilselvan.zoomshare.com
|
|
|
|