Is it possible to use GetKey while you are currently navigating through a WebBrowser? Say I have just clicked something in the wb, and I press the right arrow key on the keyboard. How could I use the KeyPress/KeyDown event of the right arrow key to perform a click on a button on the form? I have tried setting the KeyPress/KeyDown on the wb, but to no success.
I have created my own virtural keyboard for a touch screen interface. I used two forms,one for the main program and one for my keyboard so the keyboard will have opacity of 90%. in my main program form's login screen, i have two textboxs, one for username one for password. the password is a textbox with UseSystemPasswordChar property set to True.
I have created my own virtural keyboard for a touch screen interface. I used two forms,one for the main program and one for my keyboard so the keyboard will have opacity of 90%.in my main program form's login screen, i have two textboxs, one for username one for password. the password is a textbox with UseSystemPasswordChar property set to True.I used the technique descripted here: How to: Simulate Mouse and Keyboard Events in Code to send a keycode to different form window.
1. get window handler using FindWindow() 2. set main program form as focused window by SetForgoundWindow() 3. then sendkeys.send(keycodes)
it worked perfectly when i try to input letters to the username by the virtual keyboard, but it not really working for the password textbox.Strange when i set the password textbox 's UseSystemPasswordChar to False again it worked. if i put my virtual keyboard as one of the controls of my main program form it also works but i then don't have the opacity property for my keyboard. of course, in this case the Findwindow() and setforgroundwindow() is not needed.
Now as you can see it is sending the textbox1 text and then pressing enter then sending textbox2 text! Theres quite a few problems in that but before i discuss note: This code is in a Timer. Problem #1: It does not send the keys fully correct all the time because its trying to send them all at once! So i want it to send them 1 letter after the other with 200 ms sleep in them! Problem #2: The sleep is not working: The reason i know is because even after it did the first textbox1 text it didnt wait that 2000 ms!
I have a filter that is used to populate a grid view and the url will conain: /example/grid?value1=1&value2=2
It will then have a link to page 2, which allows them to edit something.I then want them to click a link that will send them back to the gridview under the same parameters of: /example/grid?value1=1&value2=2
Is this possible? How do I hold on and fill in the URL values so it knows how to refill the grid view accordingly?
I really like the coding speed that vb.net provides, but I don't like the possibility to forget to declare variable types, return types of functions, etc. and that is why in each class I use[code]..
Is there a way to define those two options on the project/solution level?
the combo box style 1 has both the drop down option but also a manual entry option. I need to know how to code it so that when you manually enter data, it takes that data and places it in a text message "The shipping charges for "data" is $15" displaying in a text box. Shouldn't be hard but have developed a mind block.
I have a problem.. every program i make in VB.net 2008 express wont start on my friends PC or any other except for mine laptop and mine PC... Instead, they get the "Send/Dont send" error...
what does these two code means in vb.net: Option Explicit on Option strict on i think option explicit means the compiler is not going to do any kind of conversion and i need to do all of them by the code;also it becomes case sensitive i.e;
I want my console application to be able to do one function I have when you click one option on the windows context menu, and another function when you click another option.
now if i press button 1 three times, button 2 one time, button 5 four times, but the last press was wrong so i need to undo. i create a new button named undo, what would the code be for taking away like i said, not just for button5, for every button i set out but the undo button?
1. I have read that keeping Option strict on and Option infer off is good practice and will insure your code is tight and properly written. I would like input regarding this, pro's and con's from those who are in the know.
2. Having said that, I have set Option strict on and Option infer off in an existing program I wrote (that was working perfectly mind you) with them off and on respectively. I went through and cleaned up all the errors on the 'need AS' and casting of variables, but one is leaving me a bit put out.[code]
I have also read where using My.Computer.System.Directory.GetFiles() instead of System.IO.Directory.GetFiles() is probably not a good thing, but when I change to this I get no error, but also no dataI am thinking I should stay with the strict on and infer off but am really slogging through getting this code correct.Running Win7 on Dual Quad Core XEON Intel Extreme with 8Gb RAM.
I am writing a text editor program and I have written the new, open, save as, exit menu items but I am struggling with writing the save option.Now I have created the menu itself (well vb did, I just used insert standard items) but how do I code up the save menu option so that it updates the current document or if the documnt has not yet been saved bring up the save file dialog.Here is the code I have so far
Public Class Main Private Sub NewToolStripButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewToolStripButton.Click, NewToolStripMenuItem.Click[code]....
I know I have some finishing touches such as messages and error handling and stuff but at the moment I want to get all the basics working,I think the save menu option is all I am struggling with at the moment.
Is it possible to create a standard installer with VS 2008 VB? What i'm looking for is an install similar to Windows Installer - one where the user can choose installation location, options, etc. instead of the ClickOnce deployment method of burying the app in the User folder in an unknown location?
i have 6 checkboxes in an application what i need is that: if i checked checkbox1 then the other checkboxes are unchecked by that the user can check just 1 checkbox so how can i do that
detect if the system has Hibernation enabled, or in the case of Win2k if hibernation is even possible. I already know how to hibernate the computer via the Framework:
but in my program I would like to provide the hibernate option only if the OS A) is new enough to be able to and B) has it enabled in the user's Power Options in the control panel.
I want to be able to use like a dropper to select a color that would display a html code output of the specified color picked. It would show the preview of the colors your scrolling through in the oval and a preview of what the color would look on text on a black background in the html section as html code. Unfortunantly I have no idea what the hell I'm doing, lol. I have been able to program simple programs that insert text in a text box pretty well including multiple colors of the text. But this is what I'm working with
Basically this is the whole form, theres obviously going to be a lot more which I'll try and figure out on my own. But this is basically whats going on with it. the color chooser button with have the dropper icon on it when I get the chance to add it.
I am pretty familiar with how to use the webbrowser control. I know how to autofill forms using the getelementbyid code but I'm having a problem selecting from drop down menus.
I am trying to set up an app that has a menu and have each option run on a different thread. When I set up 2 thread to run I get the following error: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThread Attribute marked on it. This exception is only raised if a debugger is attached to the process.From what I have researched, it says to make sure the openfile dialog function should be used with the main thread only. Since I have <STAThread()> added above the main I'm not sure how else to handle this. The main thread needs to be listening for the menu options and if I change it around it runs that option and the other threads hang. [code]
code]I tried to use the IS operator, it does not work if the check box is checked.I also tried changing .Value to .State without any success. It is last error I have left since I switched Strict Option On.
in vb 2008 express this option is available under application properties. does anyone know what it does? there is also a windows authentication option. what is the difference between these two?
I'm working in ASP.NET ( beginner ) and I tried to make update query using the code below. I try the same code to get date from database and it work fine, but only don't work with update query.
Note: I use LINQ
Dim updateCust = (From cust In db.Customers Where cust.CustomerID = "JILLF").ToList()(0) updateCust.ContactName = "Jill Shrader"
What do you feel are best practices for the use of Option Infer in your projects? In Visual Studio 2008, Option Infer is a directive that allows the compiler to infer the datatype of a declared variable by looking at what is assigned to it. This is a key feature in VS2008 and is used extensively with LINQ statements and queries. However, turning on Option Infer may create pitfalls for future maintenance programmers.
I've built a contact book in vb08. I've created the database in ms access 2007. I connect in and show the data and drag it to my form it works 100%. I can add and delete entries everything but how do i add a search by surname option to the form?
Why is it so important to turn option strict on? I admit I am not a professional programmer, but I have written a great number of useful applications...I am fairly well (although self) educated in object oriented programming... I even write programs for my business...I always have felt that I am missing some background theory that is probably really important (I have a grad degree in math, no comp sci)...I have never turned on Option Strict for any project I have ever written, and I guess I just want to know, theoretically why is it important?