Multi Key Hotkeys In VB 2010?

Feb 24, 2012

I've written a simple WAV player in VB 2010 - a Windows Form App with no menus. I'm trying to create a hotkey, like CTRL-D that would make a text box visible. Typing the correct password in the box will expand the form and show some Administrative functions. I'm having issues creating the hotkey with more than one key.I've got the following code, but it does not work. I do have KeyPreview set to True.

Private Sub _KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Control And e.KeyCode = Keys.D Then
txtPWD.Visible = True

I've also tried

If e.Keycode = Keys.ControlKey & e.KeyCode = Keys.D

and many other variations including changing to ALT and SHIFT but nothing seems to work. If I remove one of the Keys, it works just fine.

View 1 Replies


ADVERTISEMENT

VS 2010 - Using KeyDown And E.KeyCode For Hotkeys

Jul 27, 2011

I'm working on a project that contains hotkeys, but I don't wish to have global hotkeys. At the moment, I'm using KeyDown and e.KeyCode for hotkeys. I've created test projects where these worked perfectly fine, but on my main project, they don't register.

CODE:

View 2 Replies

VS 2010 Paste To Shoutbox Or Whatever Textbox Want Using Hotkeys?

Sep 6, 2011

For example this textbox here: url...without clicking and selecting it. Just use a key ex: F5 to paste the text i copied to this any textbox or shoutbox?

View 2 Replies

VS 2010 Having The Multi-Threading IP's?

Dec 11, 2010

I've been raking my brain for quite some time on this. Is there any way with VB.NET that I can use multiple IP's in one instance of a program? For example, I want to be able to navigate to a web page 10 times at once, with each one using a different IP. I want them to be parallel (multi-threaded) rather than going sequentially. Going sequentially, I could just do the action, change the IP, do the action, change the IP.

View 5 Replies

VS 2010 How To Multi-thread

Feb 8, 2011

How do i go about multi-threading that, it's just an example project, so i can try and learn from it. As i'm having a hard time understanding JMC's tutorial as it doesn't directly relate to what i'm trying to do [code]When you hit 'Start', the start button is disabled and the Label1 then changes to "Downloading".The data is then downloaded and put into the Textbox1.Label then reads "Complete" Start button is enabled.

View 5 Replies

VS 2010 Multi Threading The Right Way?

Jan 10, 2012

I have a button and when it's clicked a HTTP request is sent out to a website to do a few things, but because its got to load the external resources it makes the interface frozen. I've moved the HTTP onto another thread using the follow

VB.NET Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Thread1 As New System.Threading.Thread(AddressOf check_accounts)

[Code]...

When i want to update a label that is on my main form (from the check_accounts sub). I know that isn't the right way, but i have no idea what the right way is. All the documentation i can find is very (excuse me for this) nerdy and really doesn't offer much insight on how to incorporate it into a project.

I want to be able to have a numericupdown box that can let the user change the amount of threads they want to use. I assume more threads allow the http requests to be done faster and at the same time?Also if i wanted to pause the HTTP requests, would the best method to use be pausing the thread?

View 12 Replies

VS 2010 Multi - Dimensional Array Get / Set

Apr 19, 2012

In my football sim I am trying to save all the info from a game. There are two defined dimensions to this array. The first is the number of weeks(17 always) and then the number of games per week (Number of teams /2). The plays themselves are unknown in quantity so I decided to use List of to store them. With this type of multi-dimensional array that is also a List of I am having trouble with the Get and Set properties. I have a member variable declared as:

[Code]...

View 3 Replies

VS 2010 Multi Language Networking App

Dec 4, 2011

I am a Network Administrator in the Army so programming is not my strong area. I have been messing with Batch files and WMI, just recently i started VB Scripts (VERY BASIC) like adding an input box to set computer name, scan network for computer name on domain, return wmi info for that remote computer etc... I know there are programs out there that can do all of this, however the Army will only allow certain approved programs to be installed on government workstations, i have been using .Bat files to gather info which is fine, however it is very time consuming when you have entire subnets with computers, networked printers, etc to place into a spreadhseet for higher headquarters tracking not to mention the over 20 columns of required data to track for each computer. I have VB 2010 Express, working on a Windows Form Application Project. Goal is to interface my VB Script (written with notepad) with a GUI that will generate an internal spreadsheet on the form window in a datagridview. So far i have the basic window and i have my gridview with my column headers set. How do i get the data into the columns and rows accordingly.

Application Basic: Execute Program, in main window select button (Scan IP Range) <--- I want this to open an input box for the beginning subnet, input base address to start scan from, next input box for end range, then msgbox for start scan. i want the results of the scan to autofill the datagridview and add new row for each IP address that had a ping reply, returning valid data from WMI results as it receives the data. What would be the best method to achieve my goal. i am not asking you to write the program, i have been looking and studying MULTIPLE sites, think i just need another set of eyes on this to unlock the knowledge i have locked away, if ya know what i mean. Also, if you don't mind let me know what you think of this app im trying to turn out... Super Thanks for your help.This is the Base Batch File running. It calls an external VB Script written in notepad. (I want this implemented into the app form so there is no console window.)This is the inputbox from external VB Script that is called.This the result of the external VB Script (the info i want to put in the datagridview of the app.)I also, for some reason can't get scroll bars to show in the app when i hit F5, theres about 15 columns passed the MAC column...?

View 1 Replies

VS 2010 Multi-dimensional Arrays

May 24, 2011

I have a string, which can easily be splitted by seperators into an array.The output has to be splitted again an move into a multi-dimensional array (2nd index)[code]

View 2 Replies

VS 2010 Multi-Threading Application?

Apr 5, 2011

I am working on an application that is taking pretty long to execute. I started playing with mutli-threading and it seems to have greatly sped up my app. Problem is that threads are still executing and the rest of the code executes before the threads finish. Here is my

[Code]...

View 4 Replies

VS 2010 True Multi-threading?

Dec 20, 2010

I'm having some issues with parsing a lot of information into controls using winforms. I've tried adding threads/backgroundworkers, but they don't seem to work properly. To avoid the cross-thread exception, I had to add an invocation checker:If Me.InvokeRequired Then Me.Invoke(New MethodInvoker(AddressOf ParseSub()))This just freezes the form as it would without threading, but without the invoke checker I get cross thread exceptions because information from one thread is trying to be sent to another.

View 6 Replies

VS 2008 Multi-threding - Adding Multi-threading Facilities - Cross-thread Operation Not Valid

Feb 10, 2010

I'm adding multi-threading facilities for the first time. I have a function that is wrapped to be run in a separated thread. This function retrieves data (text) from a combobox and it works for sure without multi-threading.

When I call it as multi-threaded, I get the following error when I try to retrieve the data from the cmobobox: Cross-thread operation not valid: Control 'cmb1stBL' accessed from a thread other than the thread it was created on.

It looks like a restriction of thread-safety... I assume that the child thread cannot read from his parent, to make sure that he doesn't change his parent data. So how can I read the data from the combobox? Should I read the comoboxbox data before calling the child thread?

View 4 Replies

Accessing Multiple Sites Multi-threading Or Multi Browsers?

May 14, 2011

I have a need to build an app that will access about 10 websites and pass data to them, etc.I've read about something called multi-threading when searching Google. I've also seen people say that they use multiple browsers.Which route is better to use? I figure if you have to do some sort of multi-threading that you would access a single browser?

View 2 Replies

VB 2010 List Box Multi Select Loop

Jan 24, 2012

i have having a annoying problem to do with loops.

[Code]...

When the user selects a few rows from my list box i want to run code on them selected items which i can do fine, but when the user only selects one of items and hits the button. it goes throught the loop first and gets the picture and all is fine its when it comes back to this function after there are no more items to perform tasks on. it increments index again and then falls over because its out of bounds of the array. i want it to stop after one loop but i also want it to be able to have the multiselect option still so the user has a choice.

View 2 Replies

VS 2010 - Multi-Threading Managing Threads

Aug 31, 2011

I started a threading project and want to manage my code so that it waits for all the threads to be finished before displaying to the user on the main UI thread that it has completed the task and waiting for the user... I've created a List to manage the threads and a global Boolean, "blnStop"...

[Code]...

View 9 Replies

VS 2010 : Multi-dimensional Byte Array?

Mar 30, 2011

I think I need a two dimensional byte array I currently have something like this:

Dim MbyteData(196608) As Byte
' Open the file that is to be loaded into a byte array
Dim oFile As System.IO.FileInfo
oFile = New System.IO.FileInfo(sFilePath)

[code]....

I now need to load several files at once (say four) so I need four arrays of 196608 bytes and I want to reference them by a number - 0 to 3, assuming the array is zero based. If I use Dim MbyteData(196608, 3) as byte or Dim MbyteData(3, 196608) as byte the syntax seems to be correct but I hit an error ("Number of indices is less than the number of dimensions of the indexed array") when I try to add the extra dimension to the stream read with something like oFileStream.Read(MbyteData(index), 0, MiByteCount).

View 4 Replies

VS 2010 Can DataGridView Show Multi-levels

May 22, 2012

I want to use a DataGridView to show parent-records that are expandable to show children records. Basically, the top-level data shows class names, and expanding each class name shows the students enrolled in that class... that kind of thing.

View 2 Replies

VS 2010 Multi Treads - Open New Tab On Tab Panel?

Apr 26, 2011

I am new to doing more then 1 thread, and wanted to have a up/down control where you can select a number say 1-5 Then based on that number, start a new thread to do something like open up a webpage as a new tab, on a tab panel, once thread is done, close the tab..

Here is what i had, but dont know the rest.

Dim myThread As Thread = New Thread(New threadstart(mythreadmethod))
myThread.Start()
Private Sub mythreadmethod()
' Code you put here will be run in a new thread.
End Sub

View 3 Replies

VS 2010 Multi-thread Client & Server

Feb 21, 2012

I want to make my client & server fully working. If a client connects to the server it should tell that there is a new client connected. if a client disconnects it should tell me a client disconnected.[code]it says in my patcher window(where it should add the text) that it's succesfully connected.but at the server side its not saying there is a new client connected/disconnected, how can I do this?

View 2 Replies

VS 2010 TcpListener Accept Multi-connetions?

Dec 19, 2010

i made a simple tcp listener server.Now I can use my client to connect,it connets, everything is good. The
problem is when I open the first client, then I open another one, it doesn't connect. It accepts only 1.Any way I can accept multi connections?

[Code]...

View 4 Replies

Multi-line Comment .net In Visual Studio 2010?

Mar 10, 2011

Is there a way to comment out more than one line of code in vb.net using VS 2010?

View 4 Replies

Unable To Get Multi-Targetting In Visual Studio 2010?

Jul 27, 2011

I got acquainted a few months back with Microsoft visual studio 2010 and .net.I tried my hand to learn the programming language. I have come to the level of developing the application and making it to run in the development PC as intended."The problem is i am not able to target a specific .net version(3.5SP1) and create a deployment package to work in the target PC running Windows 7"Instead of taking the whole developed application for deployment, I created a new Visual basic project with just a single form and created a successful build of it.In project properties- advanced compile option my target framework is .net 3.5, target CPU X86.

View 1 Replies

VS 2010 Aligning Webpage And Allowing Multi Logins?

Sep 9, 2011

I am new with VB 2010, I am starting a new personal project to control a browser based game for meWhat i have done so far is made a Windows Forms Application, with three tabs all with web browser and directing to the game.What i am having trouble with so far is to align the page so it is just the flash box of the game on the web site, so all i see in my window is the game and nothing more of the website.Also trying to work out how i can allow each tab to have a different account but on the same url address. A little bit like multifox made by firefox.

View 4 Replies

VS 2010 Multi-threaded But Using A Global COLLECTION Of Objects?

Mar 19, 2012

I've got a multi-threaded app - that is using a global COLLECTION of objects.I'm starting to think that objects - when copied to objects - are really just reference pointers to the "single object" in memory - as they would be in JAVASCRIPT (too many languages At any rate - this code - when taking the object from the collection to work with is it making a new object to play with or is it working the single object that actually resides in the collection?

[Code]...

View 16 Replies

VS 2010 Populate Multi-column Listview From File?

Jun 14, 2011

I am trying to populate a multi-column listview from a file. I have gotten as far as reading the correct data from the file to an array and populating the correct columns with said data. However, sometimes the array will span multiple lines of data in the file and I need all of these matches to populate the listview but the code that I have now only populates the listview with the data from the first matching line. I have tried declaring the variables as listviewitems instead of strings, which allowed me to use listView.Items.AddRange(arr) but then all of the data appeared in the first column instead of spread across all columns like it is supposed to. At this point I am at a loss because I can only figure out how to either fill the first column with all data or fill all columns with only the first line of data. Here is the code that I have

[Code]...

It is really only the last part of the If.. Then statement that I need help with. I was thinking that a loop would accomplish what I am trying but I am still pretty new to VB and do not know the correct code.

View 10 Replies

C# - Visual Studio 2010 Express Multi-language Solutions?

Dec 1, 2011

I am working on a C# project, which needs a VB.NET Class library.I have added the DLL reference of VB.NET Project into C# project.This works fine, but sometimes I need to debug the VB.NET project or pause the project and check the variable values of my VB.NET Project.Is it possible in Visual Studio 2010 Express Edition?

View 2 Replies

VS 2010 - Dropdown Menu Location On Multi Monitor Setup?

Jan 25, 2011

I have a toolstrip along the top of my program. There is a right aligned drop down button that displays a menu. I have a 2 monitor system, and for some reason, the menu wants to open up on the other screen - the screen the program isn't on. How can I keep this menu on the proper screen?

View 3 Replies

VS 2010 : Adding Selected Items In List Box To Multi Picturebox?

Aug 9, 2011

building simple program that i could print index pictures to 11x17 size paper. and came across with listbox multi items selected and wanted to add them to different picture boxes?

View 1 Replies

VS 2010 How To Store Unlimited Multi-row Strings Without Need Of Extra Files

Dec 9, 2009

How can i store unlimited multi-row strings without the need of extra files?Example: the user enter a multi-row string into a textbox and clicks save. Then the program should save that somewhere. And then the user enters another string and clicks save. And then there is a combobox where it can choose between those 2 strings to load.Can i save them in some sort of collection like My.Settings.Collection? Where each text also has a header.

View 5 Replies

Registering 2 Hotkeys?

May 13, 2008

possible to register 2 hotkeys? If so h

View 7 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved