Controlling Button On Form?
Jun 21, 2010
i have an external board controlling various things on the board is a button which i would like when pressed activates code within a button on my vb form i have tried button1.select but that only well selects the button on my form rather than activate the code this code is in a timer which scans all 5 pushbuttons on my hardware
[ If ReadDigitalChannel(2) = True Then
Button1.Select()
End If ]
this is the code that the button on my form runs
[ If table1 = False Then
Button1.Text = "Off"
table1 = True
d1 = TimeOfDay
[code]....
View 5 Replies
ADVERTISEMENT
May 27, 2009
The end result we're looking for is a slideshow effect where a section of our main form shows a sequence of secondary forms which fade in/out on a timer.We can fade the forms in/out when they're shown individually, but the opacity setting doesn't seem to work when they're shown inside another form. What I've got, for testing, is code that should simply reduce the opacity to 10% after showing the inner form for a half-second, long enough to notice the reduction-except I don't see any change.
Dim f As New Form2()
f.TopLevel = False
Me.Controls.Add(f)[code]........
The opacity change takes effect without refreshing the form when shown 'stand-alone' but I've tried refreshing both the inner & outer form anyway, with no change.
View 3 Replies
Nov 17, 2009
I have a situation where I need to display a Modal Window from a vb.net module and feed the contents to that modal form from the module.I am showing the form , feeding data to it from a class module and trapping the events in it using a timer control from the module.It works fine with Show() method but it doesn't with ShowDialog().If I used ShowDialog() then I was not able to continue with the code followed by it and not able to update any contents in the modal form.
I am using VS2003 version.Is there any workaround to this?
View 1 Replies
Jul 31, 2010
how do you control USERCONTROL button1_click event from form's button2_click event?
button 1 = hidden button on usercontrol1
button2 = visible button on form1
form1.button2 should click usercontrol.button1
View 4 Replies
Nov 21, 2009
Is there a way to control the size of a minimized MDI form. When I minimize a child form, it apprears at the bottom with the form buttons (minimize, restore and maximize) and just about 2 or 3 characters of the Title Text. I would like to have more of the title text showing so the user can figure out what window he wants to restore if he has a couple of them minimized. If not that, is there a way to have a "tooltip" popup when I move the mouse over the minimized form.
View 2 Replies
Jul 29, 2011
My form contains a datagrid and a checked listbox. The listbox is populated on the form_load event. There's a function called when the datagrid's SelectionChanged event is triggered that modifies the checkmarks in the listbox. It all works fine when I manually click on any item in the datagrid.
However, the very first time the form runs, the checkmarks are not affected, even though the first item in the datagrid appears selected. I discovered that this is because the actual listbox is not yet populated on the form at the time the very first SelectionChanged event is triggered. So when the function tries setting the checkboxes, it doesn't get anywhere, since it doesn't see any items in the listbox.
Somehow the datagrid is getting populated, even before the form_load event is triggered. I need the listbox to be populated before the datagrid is populated, but I have no idea how to control this.
View 2 Replies
Sep 4, 2010
I recently finish my Microsoft VB.net training and learning something about delegates. I have two delegates in a excel source to control a progressbar and a text box on the mainform
Public Delegate Sub ReportProgres(ByVal percent As Integer)
Public Delegate Sub ReportText(ByVal Mytxt As String)
I want to use these delegates in a second excel source also. It gives declared in the first excel file and two conflict errors in namespace windows application.
View 7 Replies
Jul 3, 2011
Im new in the forum. Yeah thats what the title said. I made a wpf form with Expression Blend 4 with a lots of animation. So i want to trigger my storyoards with xbox 360 controller buttons. I made a button checks with timer but the problem is when a pressed the button the animation is flickering because the timer is refresh every 20 millisecond. I want to play it once/press like when i click with the mouse something happen. Code:
[Code]...
View 6 Replies
Apr 29, 2011
I am making a small game of pong and i want to incorporate a pause feature. is there a way i could freeze the form in place and then unfreeze it later at the push of a button. the tutorial i used is below so check it out to get an idea of what i've made so far.
View 2 Replies
Jun 22, 2010
how to move button over a panel from the form in which the button is created dynamically at run-time ?
View 1 Replies
Feb 7, 2010
I just want a program compiled in Visual Basic 2008. which can just submit a form of only one field. the form is already uploaded to the server but i don't want to go to that url every time to do so.What I want here, just to open application and fill that field and submit. Is this possible in visual basic 2008?Also let me know how to create a button that can rapidly submit the form repeatly untill the second button named cancel is pressed.
field name of that form is "msisdn" and the action on submit button is post method and url in target is url...
View 1 Replies
Jun 12, 2009
get a button on form A to open form B and then close (not hide) form A when clicked?Background: I am coding a VSTO application for Excel in VB2008.
Private Sub FormAButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles FormAButton.Click
Dim FormB As New FormB
[code]....
View 1 Replies
Sep 5, 2009
I have already done the creation of button and the dragging of button at runtime already.But now i need to know how do i save the last dragged button on the form and also detect the name of the last clicked button.so lets say i now drag a button to coordinates 25,254. so when i exit the form and the next time i launch it, the button will still be at 25,254. and this one will go on for the number of button i created like 100. so when i launch the form the 100 button will be at the exact position where i last saved them.the second part is lets say i created button1 and button2 on the form in runtime. so when i clicked the first button, it should display button1. and if i clicked on button 2, it should say button2. same goes for like 100buttons.
[code]...
View 1 Replies
Sep 3, 2011
I have created a button in a UserControl. I have added that button to a WindowsForm in another app and added a buttonclick event to the code. When running (debugging) the app and clicking on the button; nothing happens. It doesn't act like a button at all.
The code for the button click event in my test app is as follows:
Private Sub Element1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Element1.Click
MsgBox("The button has been clicked")
End Sub
View 1 Replies
Nov 5, 2009
I was wondering if it is possible to change the size and button layout of a form by using a button. the only way i could make it appear to change size, was by having it so when you hit the button labeled "Change Layout", it would do
[Code]...
View 2 Replies
Jan 26, 2011
1. Something similarly I want with another button - when I click button2, I want to remove specific object - let say panel2, not hide it.
2. The second thing is that I want to put text from my textbox into excel, but in specific row. I would like to do that with word file as well. I would like to put text form my textbox in specific table, or row, or line. I only know to put text into a file.
View 8 Replies
Sep 3, 2011
I have created a button in a UserControl. I have added that button to a WindowsForm in another app and added a buttonclick event to the code. When running (debugging) the app and clicking on the button; nothing happens. It doesn't act like a button at all.
The code for the button click event in my test app is as follows:
Code:
Private Sub Element1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Element1.Click
MsgBox("The button has been clicked")
End Sub
View 2 Replies
Apr 16, 2012
i want to know how click webpage button through form button i used this code
Me.WebBrowser1.Document.GetElementById("'here i dont know name").InvokeMember("click")
here is script anybody tell me in below script which one is works to click
<div class="form_botton_container">
<div class="form_orange_button">
<span class="left"></span>
[code]....
View 2 Replies
Nov 5, 2010
Question: I want to control cmd.exe from winforms. I DO NOT mean every command in a single process, with startupinfo, and then stop. I mean for example start the (My) SQL or GDB command prompt, send command, receive answer, send next command, receive next answer, stop SQL command prompt exit process. Basically I want to write a GUI on top of any console application.
[Code]...
View 4 Replies
Jan 3, 2010
Ok, so I've been doing some looking around lately, trying to figure out how I can get maximum control over a download. So I can control things like:Download speedWhere to start the transaction(Byte Offset, like in a Stream?)Where to end the transaction (Byte Offset, like in a Stream?)
View 6 Replies
Mar 9, 2010
if i have two media players in form1 and form2 respectively....how can i control the media player in form2 with media player in form1....so that if i pause media player in form1...the media player in form2 should get passed and if i scrub the seek bar in player1 the seek bar in player in form2 should move along with it...how can i do that.......means how to play single video in both players at once...
View 1 Replies
Jan 23, 2009
I want to have a min and a max functionality to my app. When the user clicks the minimize button I want the form to go to taskbar which is easily done.
However the user clicks on the maximize button i want the form to go to a specific size (470,999) to be exact.
Private Sub app_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
If Me.WindowState = FormWindowState.Maximized Then
[Code]....
but it maximizes to the screen size. how to control the maximize screen button? I don't want to change the formborder style setting from sizeable because I like the way it looks like this. I just want to get the min max buttons to go to sizes that I want them to go to.
another thing is there a way to save the size of the app that the user has it set to before they send it to taskbar then when the user brings it off the taskbar is there a way to bring it back to that size?
View 4 Replies
Nov 4, 2009
I was working with TabControl on a form.I wish to restrict the selection of the tabs on the form...For example, The user will start with the 0 index Tab selected by default.As he selects an option from that tab pane n confirms his selection, The next tab gets selected. I could develop a code for this like this tabcontrol1.selectedindex = 1 'Or 2 or 3 according to the need But Now I find that at runtime I can switch back to some other previous tabs or some forward tabs.... Which I do not want. I simply want the tabs to be activate in a flow...
View 5 Replies
Jun 12, 2010
my program launches a 3rd party program with a few switches to update itself.Once these updates are complete I need to manually click save from the applications menu. This can be done via the keyboard (Alt Gr + M then Alt Gr + S)
The application will take several seconds to load at which point the application will open maximised and the save option will be enabled.
View 1 Replies
Dec 16, 2010
if i already have the vb app. open and i double click it again, is there a way i can control the one that is already open? for instance... could i resize the app. already open?
View 3 Replies
Aug 28, 2009
I am using Visual Basic Express Edition 2008 and Office 2007
View 3 Replies
May 14, 2010
I thought this would be easy, and I'm sure it is... but I'm not getting the response I want.
Here's the code..
[Code]...
What I'm trying to do is load a URL and grab the text from it.The text on the file I'm using is simply a 1, that's all. However, when the messagebox shows, it's empty. I've tried using google.com as the URL and got the same response, so that means it's somewhere in my code here.
View 1 Replies
Aug 15, 2009
I am currently working on making a macro in visual basic that will control an external application. I need to know how I can click the menu options in this program. Here is the code I have so far, which makes the application window active.[code]
View 3 Replies
Apr 30, 2011
i have created 2 app one as server and one as clinet i need to be able controling the clinet from server ex: 2 media player clinet/server i must be able to stop,play,mute song from server i will put the code server :
[Code]...
View 3 Replies
Apr 1, 2011
I feel like this is simply but I can get a straight answer anywhere. I basically have a database hooked up to my program and what I'm wanting to do is have the database query "thedate" and only display the rows that much that selection.
View 12 Replies