The trouble is all the arrows point to right, and the menus open variably depending on size.
Is there anyway to make the arrows point left and make all menus open to left in same direction?
Also, Is it possible to make the width of my form autoresize to the size of a label and the image box, while keeping the imagebox at the bottom right of the screen showing the populated label to the left?
I'm using a ContextMenuStrip for multiple controls and I'm trying to figure out the best way to get the control that was actually clicked on to open the Context Menu. The sender just gives the ToolStripMenuItem reference, which has an Owner property that references the ContextMenuStrip, but I cannot figure out how to tell which control the click came from. There must be a simple way to check this, right? I'm checking it in the ToolStripMenuItem's click event.
Friend WithEvents mnuWebCopy As System.Windows.Forms.ToolStripMenuItem ... Private Sub mnuWebCopy_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuWebCopy.Click
I found a similar post about this, but that mentions using a SourceControl property which I do not see on here.
is it possible to have a background image repeat it's self for every listing in a combobox? so when i click the arrow on the combobox, it has a a set smiley image for every added item.. maybe even a different smiley for every listed item... not sure it's possible though, maybe i have to create a self resizing form that acts like a combobox when clicked on a button.
I am making an auto typer and I have a question about customizing the MsgBox. I need it to say "There will be an interval of 10 seconds before it starts" and there needs to be two buttons at the bottom, "Continue" and "Cancel".
I have a Datagrdiview control that is populated from values in a table. ie: One column would have a check box for weather a record has been processed using a Posted field as a boolean Check box. My problem as that I need this field to also show the results if the record is rejected or not. [B]I am trying to have the box unchecked if the record has not been posted. Checked if the record has been posted Or be Marked with a red X if the record has been rejected.The rejected field is of course in another column in the table.
I am trying to have a user input 7 letters into a textbox, and then have a url like "[URL]". Basically I am needing for the seven letters to be included in the custom url.
I have a normal DGV on my form.To make this more readable I want to custom color the rows. 1 row blue, 1 row white, ex... I attached an image to show what I want to do. The smaller dgv in the picture is what i want to achieve.
I am trying to customize the default binding navigator as i inherit it to my own class and add some buttons to it.every thing gos fine and great as i want it, but the problem is when i change any thing in the AddStandardItems() method class dos not reflect to the existing form which has the same class, i have to remove it from the form and put it again to reflect the changes.This is not good solution, i have more than 30 forms using the same Binding navigator class and it is not possible to remove it form all those forms and put it again.[code]
sample_form.rtf (1.48MB). Number of downloads: 36. I have a working form to give specific choices to the user and retrieve the user's choice. (See code below and attached image in WordPad file.) I know I can use a global ("Public") variable to pass the text of the three choices from the calling form to the called form, but is there a way to pass these from one form to the other exclusively? Of course, my main objective is to have as little memory being used as possible. I would like to make the form in my example (frmDialogChoice) a generic form that can display any set of three choices.
code within calling form: Dim intSwitchToMake As Integer Dim insFrmDialogChoice As New frmDialogChoice insFrmDialogChoice.ShowDialog()
We are using the DataGridView Control for our projects. The Applications we are developing is the replacement for the Existing CLI (Command Line Interface Applications) written using FoxPro.The users are much more familiar with the Keyboard Navigations ratherthan using Mouse and all.Here What we need is, how can we handle the Keyboard Operations in the Data Grid View. Some of the Operations i am listing below.When we hit Enter Key :
1. Navigating the Cursor into a particular Cell (It will be in the Same Row, but Different Order), after getting focus the cell should become editable
2. Navigating the Cursor to the Next Row and First Column (Once i finished the editing in the Last Column )
3. Focusing the Cursor into a Specifc Row and a column. (With Editable)
I am a new to programming, trying to learn vb.net, so I apologize if my questions are very elementary or my terminology is incorrect. I am trying to format a query to an Oracle table based on user-selected radio buttons on a Windows form (i.e. the query will return different elements from the table based on the radio buttons selected). The query results will be placed in a listbox on the form. My thought was to make a Property containing my query like so:
[Code]...
and then I have a sub that feeds this SQL property (containing the query) into an OracleConnection.My problem is that I don't know how to customize that query depending on what radio buttons are selected by the user. Is a Property the best way to go about this, or is there some other way that may be better?
My app deals with football, and the line of scrimmage. There is an additional line, called the line to gain, used for showing where a first down is earned. I'd like to have a trackbar with two arrow on it... one for the Line of Scrimmage, and the other for the Line to Gain.
I've created a class for my game and I would like to use the arrows key to control an object on screen.
However since this is the keyDown event I've put it in the main form -form1 But it says that .Left is not part of my class since I am trying to put this on the object that was created by the class. If I put this code in my class it says that event KeyDown can not be found because it is obviously but of the form...
Code: Private Sub form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown ' Sets Handled to true to prevent other controls from
I am building a really complex program, and the only thing that i cannot make work right is the menu.The menu is basicaly 13 textboxes:
-txtMenu1 -txtMenu2 _txtMenu3
There is also a cursor next to the menu with up/down end enter button.When I click the down button it moves the selector one space down and up moves it up..The problem is when i click the down arrow it just moves the selector one space down, when i click it again it does not do anything. Same thing with the up arrow.The code for the down button is and the text boxes tab is in order from 1 to 13.When I reach the end (txtMenu13) and click down arrow, the selector goes back to txtMenu1. I need the selector to be blocked there on txtMenu13 so the user has to use the up arrow to go back to txtMenu1. The same thing when the user reaches txtMenu1 and tries to go up one more, he should not be able to do it.
mypen.StartCap = Drawing.Drawing2D.LineCap.ArrowAnchor mypen.EndCap = Drawing.Drawing2D.LineCap.ArrowAnchor but I want a bigger (custom) arrows in start and and of line. It's not clear how to do. Perhaps with:
I have just made a simple application with a questionnaire. The questionnaire has all 40 questions in the same page (that was one of the specifications) which makes for quite a long form. On top of that, each question has its own group box and each group box has 4 radio buttons for the possible answers (in total 160 radio buttons).
I want the user to be able to scroll down using the up/down arrow keys. However, if he has just selected an answer, pressing the down key will only change the selected radio button (as is the expected behavior of a radio button).
How do I disable the selection of a radio button through the up/down arrows?
I am using VB .NET. I want to know how to make the scroll-up and down arrows visible for my text boxes if the user wishes to enter more lines of text than the size of the text box can take. I would like the user to be able to scroll up and down after he/she has entered all the text.
How do I activate this property - should I be using some other control other than a text box for this?
I have code to create a listbox and populate it, and would like the box to behave like it does when clicked, e.g. if you CLICK on "a" you see it blue and can press the down arrow to move down to "b". how do I achieve this programmatically?
Private Sub junkloader() brandlist.Visible = True brandlist.Items.Clear() brandlist.Items.Add("a")[code].....
this code SELECTS it properly, but I want to be able to navigate with the up and down arrows. how do I do this? thanks.
I have a fairly simple VScrollbar problem: the Scroll event triggers when ANY arrow key is pushed, including left and right... I need it to trigger only when up/down arrow keys are pushed (which, I hope, is the default behaviour).
Essentially all I do is declare a VScroll As System.Windows.Form.VScrollBar and later I have a Private Sub VScrollBar_Scroll (...) Handles VScroll.Scroll that manages the event.
I noticed also that the left/right arrow scrolling is by a smaller increment than the up/down scrolling. All of this seems to happen in a very "black box" kind of way, I can't find any way of determining what should trigger the scroll event.
I'm using a datepicker for a field on my form, but the arrows are not visible. If I go to the location where they supposed to be, I can click them to change the month, but the arrows themselves are not visible.
in my program i have a timer, and every 5 sec (for example) i send a string by serial.i have to read every key pressed between each 5 sec and send a number that tells me what i am sending.what I've done is to send 1 as long as up key is pressed and send 8 as long as left key is pressed and send 9 as long as both are pressed.when i run my program, the first time i press up and left at the same time and i keep them pressed, the serial send me the first time 9 and then ignores the up key and send me 8 always.and sometimes send me 9 and after that always send me 1 and ignores the left key..the point is that vb ignores the first button i press even if i keep pressing it..what should i do to make vb.net takes two arrows keys at the same time?
I have a way of moving a picturebox. I type either 1, 2, 3, or 4 in a textbox. Each number is assigned a direction. Then I click the mouse and the picturebox moves in that direction. This is a little cumbersome for a small video game. Is there a way to assign the four arrow keys to do this?
by defauld the usercontrol can't detect the directions(arrows) keys and other special keys(using the keydown event). but using an function i can resolve the problem:
Protected Overrides Function IsInputKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean 'Need to trap the following input combinations to prevent the(UserControl) 'from losing focus: