Small App That Has Three Buttons On Screen That When Clicked ?
Sep 15, 2011
I want to make a small app that has three buttons on screen that when clicked, they act as keyboard input. For example, I have an application that uses a drop down list to choose a letter, number or shape. You can select using the mouse or just type in what you want. However, I cannot type in the shapes that I need, I must use the mouse to scroll through a long list in order to select the shape I need.
My initial solution was to just use alt codes..but they are long and I can't figure out a way to customize them the way I want. So I just figured why not just make a small VB app and click the button of the shape I need which would send the alt code information like I typed in using the keyboard.
So if my app has a star button, when I click it, it will be interpreted as I just entered the alt code for that star but I really just clicked a button.
Unless there is another way to allow me to create custom alt codes or modify the ones windows has for these shapes. I'm certainly open to any ideas or advice and would be grateful for help. Thank you!
What I would like to do is to have four different buttons (e.g., buttonA, buttonB, buttonC and button D). I wanna give the following instruction to the people: press these buttons in the following order: first buttonA, then buttonB, then buttonC and last buttonD. If they obey this instruction then a picture will be displayed, for instance a happy face. All the other combinations will not activate this picture to be displayed, or in other words, there won't be any consequence. I would also like to save this data using windows note pad e.g., writeline (1, xxxxxx). Is there any chance I will make it?
i need to get some buttons to interact with other buttons on screen when i click then, as each indivual button gives a slightly different result.imagine this:[code]....
then i need then to hide different buttons depending on which button was pressed. so say i pressed button 1 then all the buttons showed but alternativly if i had of pressed 2 then say button 5 and 6 disapear.managed to get one way to work but then i would only ever end up with the first results every time.
I'm upgrading to VB2008 from VB6 and have noticed that when drawing a small diagram on the screen it is much slower. In VB6 is is drawn 'instantly' in VB2008, 34 lines, 5 arcs and 15 text items are taking 112000,000 ticks to draw- I can see it being drawn line by line. The codes contains the code to draw the diagram and some minor calculations to determine what to draw. If I just draw 4 lines directly it takes 80,000 ticks which looks 'instant'. It looks as if the calculations are slowing it down. Is there some reason for this, is there a box I have not ticked that makes it slow?
That works fine except i need the location of the chm help file to point to "my.resources" where it exists because i need to install my program but in that code example it only works with strings?
I made a form with only 1 Button. I want that when i click that button, 2 more buttons should be appeared. Example: Button1 is clicked. Button2 and Button3 are displayed. I have named Button1 as Scan. When i click on Scan, the Button2(Pause) and Button3(Stop) should be displayed. When it is scanning, i have placed the progress bar with the timer. When the progress bar finishes loading, Button2(Pause) and Button3(Stop) should be hidden again.
i am having a problem with a calculator that i am making. i am using radio buttons as selectors for the operations (+-*/). i have two input-boxes. i want to do some error checking. for example if the user want to find the mod of a number, i want them to only use inputbox1 to enter the value. [Code] the problem is that when other radio buttons are clicked the effect doesn't change. how can i fix it so that other radio buttons don't have the same action. i am using visual studios 2008 professional.
I am trying to get my Visual Basic Web Browser to open links and buttons when clicked in a new window of my web browser by using the New Window event. I found this code to make links work in a new window of my browser, but buttons will not. When I click on a button, a new window of my form pop ups but the url says, "about:blank". Is it because the attribute is set to "href"?
Private Sub WebBrowser1_NewWindow2(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow Dim myElement As HtmlElement = WebBrowser1.Document.ActiveElement Dim target As String = myElement.GetAttribute("href") Dim newInstance As New Form1 newInstance.Show() newInstance.WebBrowser1.Navigate(target) e.Cancel = True
Is there a way to determine is any control at all on a form has gotten focus? I know you can individually determine if a single control has focus or has been clicked, etc. but is there an event that can tell you that some/any control has been clicked?
i.e. Private Sub myFrm_Magic(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.SomethingClicked Msgbox(Me.ActiveControl.Name) End Sub
I have a form that I am adding a set of buttons to. I am adding an event to those buttons. I need this event to function slightly to determine what button was pressed.
I need the button to simply set a string variable equal to the clicked buttons text so I can determine what button was pressed.
How can this be accomplished?
''Adding the buttons'' For Each dr In dtMenus Dim strMenuName As String strMenuName = dr.Item("strMenuName").ToString
I am trying to add buttons on the form using code; i need this for a program I want to makeHow can i do this? I am new with .net guys. Sorry for my stupid questions. Will be lots of them.
I've encountered problems with programming a Guitar Hero game (Frets on Fire) because I just started visual basic, but I know a lot still. I am almost done with button pressing and picking and I can easily get the buttons to scroll, but is there a way to program the buttons that scroll along the screen by using a midi file, like in Frets on Fire. I just don't know how I can get the frets (buttons) to correspond with the song without spending hours programming one song by hand.
remove the tabs from the TabControl and just buttons to control which screen is shown.Ive coded a form that uses buttons to hide and show panels but because you cant click buttons in design view, its extremely hard to edit the content in the panels.
i am creating a system where when a command button is pressed, it adds the data corresponding to that command button to a Table of the screen. And basically im at my wits end at how to do this, i have tried using SQL and databases but all i seem to be able to do is type data into the table and this is not what i want.Basically the table has 3 columns at the moment, which are filled in column at a time, and this need to be done by pressing command buttons. To explain this basically there are 8 buttons, which can be pressed to enter into the first column, once one of these buttons is pressed and second set of buttons appear which correspond to the second column and after one of these buttons is pressed the 3rd set of buttons appears to enter into the third column.Once the last button is pressed that is the first row filled in and the user can again press a button from the first set. Its basically a system for rapidly entering data into this table through the corresponding buttons.I have the buttons appearing and all that working fine, but thats basically just the layout. I need to know how to enter the data into the table.i have to use a SQL database, i only added that as at the end of the session, the entire table of data needs to be added to a master database but i can attempt this at a later date.
I have a project with several forms. I need some of them to be in a modal window. How do you set this to be true? Also, when some of the forms are shown I need one of the buttons on the previous screen to be active.
I have tried:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form.ShowDialog() Button.Select() End Sub
Using Visual Basic 2008 Express Edition.Note: Program is to be used with Touch Screen. (No keyboard or mouse)TODO: Get Log in form to allow the input of values from clicking on Buttons 1 thru 0.*,# '1. So far Buttons on Log in form allow one entry only. Form needs to allow 9 entries. 2. When Clear button is clicked. Password box entry clears, but then, there is no Cursor.Will worry about the rest (authentication) Later its taken two weeks to get this far.NOTE: Not using a User Name Just a Password
I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?
On form 1 , i have a number of buttons that open up different websites.What i want to do is when i click a button on form 1 , i want forum 2 to show ( Form2.show() ) , Form 2 will have a list (Buttons) of internet browsers.
I have a piece of software with two tabs, inside each tab there are buttons (the user can add the buttons when they want). when tab1 is full tab2 should start to fill. I currently know how many buttons fit on the screen so I just say something like if buttons > 150 then start to populate tab 2 The problem i have now though is if the resolution is changed then a different amount of buttons can be displayed. so if I put my screen to 1280x720 some buttons are left of. I was thinking of detecting the resolution and then using different cases for different resolutions but this seems very inefficient im wondering if there is a different way?
I have a picturebox that I am importing an image to. I need it to expand but not expand past my buttons at the bottom of the screen. When I import the image it takes up the whole screen and covers up my buttons.
BTW this issue occurs in any MS office program when the VB.Net (or even VBA) is processing information.Example: In Excel, a worksheet is displayed on the screen. I start either, a VB.Net or VBA procedure and within 30 seconds the Excel worksheet (previously displayed) blanks out. In both VB.Net and VBA,ScreenUpdating = False. My expectation is that the previously displayed screen would stay static as if I left my desk to get a cup of coffee; came back and the same ole Excel worksheet was still there?Of course, setting VBA Screen Updating = False accomplishes two goals: 1) speeds up processing and 2) saves the user from seeing unnecessary "garbage-processing" steps.Why does VBA or VB.Net ScreenUpdating = False not freeze the screen at the time of its invoking?
I'm using a dialog form with two buttons and two Radio buttons.I'm oppening this Dialog when a button is clicked on the parent form.My situattion is when the Dialog opens the code in the button event continues to execute, but I only want it to continue to execute only after a button from the dialog form have been clicked
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click If multipleEXT = 2 Then Extension.Show()
Now I'm creating at app in VB (Microsoft's, Visual Basic 2010) which will be in full screen but I want to know if I can put all my content in the centre of the screen. At the moment it's at the far top, left of the screen. When the screen size varies I want it will stay in the middle for all shapes and sizes. Like :
My VB application is behaving strangley. I have form with fairly large number of controls. I am using case against radio buttons. after curtain number of buttons, it stops responding to more radio buttons.
Then I tried to split controls in to 2 form but now my form.showdialog() too now working properly. It takes new from names but show the old form when running.
I'm trying to get coordinates on my screen by holding down my mouse and placing it over different parts of the screen. I'm using the mouse_up and down events in a button to kinda simulate the mouse being held down. The problem I'm running into is that anytime I go past the button's bounds, the coordinates I want stop. This is what I have so far: