I am developing a roster application , where i want to display details of 20 employees on the same form. In the design time, i managed to display 6 employees. But when i try to expand the form , it no more allows it. the" maximum size" is set to ( 0,0). Any ideas how should i go about it ?
I have a listbox that acts as a running log, and I need the contents to be emailed to my boss.Currently I can only get the first item that is selected to be sent, but I want all the contents of the listbox to be in the email body.My goal is to have the whole log in the listbox send, without having to select anything.
Dim Log Try Dim Mail As New MailMessage[code].....
I have a list box that contains an array of ID's in one form. On a seperate form I have a combo box. Basically I want the list of ID's from the list box to be transferred to the combo box in the other form so the user can select an ID from the drop down list.
I have a normal form and normal textboxes. When the focus passes to a one-line textbox with text in it, I want to force the text to be selected and highlighted. When the focus passes to a multi-line textbox, I want to force the text to NOT be selected or highlighted, and the cursor to be at the end.I have the code HTML
Private Sub TextBoxMultiLines_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBoxMultiLine1.Enter, TextBoxMultiLine2.Enter etc. etc. 'Either:
[code]....
After the initial TAB, the code works fine when you use the Enter key. How can I overcome the 'use TAB key first' problem?
Not sure what I am doing wrong here but I have 2 buttons and a rich text box. The issue is when I click the second button to add text to the rich text box and it over writes the current text that is already in the rich text box. How can I code this second button so that the text is added to the rich text box and not replacing the current text?
Here's my Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click RichTextBox1.Text = "This is the first line" [Code] .....
Also how can I add spaces in a line of text (or in the middle of a sentence) so that I can insert a variable in the line. Example: "This is the" variable1 "line of text" "This is the" variable2 "line of text"
I have a form called 'Bookmarks' that loads a bookmark file that contains a single word on one line. I have put buttons on the form for sorting this list, deleting items and changing the character case to lowercase, uppercase or Sentence Case.Now, deleting and sorting the list works fine, but when I try to change character cases,nothing happens. I started the debugger and found that my case changing code does work, but the listbox doesn't seem to update it's contents.I tried listbox.Update() and listbox.Refresh() but that didn't work either.
Here's my code for 'Set Case':
Private Sub setCase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles setCase.Click If bookCase = "default" Then Exit Sub If bookCase = "lower" Then
I started programming in VB2008 couple of weeks ago (I'm using the express version) and I'm getting stumped by this ridiculously simple problem. I am trying to retrieve varying parameters from an external application and display their values in real time on a windows form control e.g. a label or text box. I already know what class and methods to reference for that, however I can only display instantaneous values (unless I use a .click event handler, but thats foolish I want them displayed without my intervention) I tried writing a loop in form load event handler but that prevents the form from loading. I also tried a loop in another module but that doesn't work either.
I'm trying to write a program that detects the contents inside a textbox, and if empty displays a warning, and does not input anything into a rich text box. However, if something is detected, it would not display the warning and input the textbox's text into the rtb.
I got everything else, just need help with the textbox detection code.
In my form i want to place around 50 panels. When i am going to take the print out i will set the panel visible to true as per the conditions.print the active panels are possible or not.
I've created a windows form in VB Express 2005 with lots of combo boxes and print and save buttons.I would like to be able to save the contents of the populated combo boxes, labels etc ie the whole form from the save button, preferably to excel 2003. However, would be just as happy to save it in the form format. The only code behind the save button I have so far is this, which just navigates me to the directory. When I enter a filename and extension, the directory is empty:
Private Sub save_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Save.Click ' Displays a SaveFileDialog so the user can save the file assigned to the Save button.
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 developing a roster application , where i want to display details of 20 employees on the same form. In the design time, i managed to display 6 employees. But when i try to expand the form , it no more allows it. the" maximum size" is set to ( 0,0\
Im trying to make the contents of my form appear in the center of the screen, no matter what screen resolution is being used.I have been searching the net and have found code similar to the following but i cant get anything to work.
Dim x As Integer = _ (Me.ClientSize.Width - GroupBox1.Width) 2 Dim y As Integer = _
I have a number of listboxes such as lstDivision1, lstDivision2 and so on. A user can choose the division they are interested in using code similar to:
For Each item As Object in lstDivision1.Items lstDivision.Items.Add (item) Next
These listboxes have their Visible Property set to False. The contents are copied to lstDivision which is visible on the form.What I want to know is how I can ensure that the correct listbox is being copied to lstDivision?
I'm working on a desktop replacement project and was wondering if it possible to have a form which can be docked to the side of the screen that contains all the task tray icons and functions (I would imagine that the functions are held within the task tray/icons themselves as they act as little programs) and would update automatically whenever anything is added.
Also, I'd like it not to have a taskbar entry while running, just having it sit there on the screen until needed.
the project i am currently working on has a form in it that has quite a few objects that take a couple of seconds to load. Because of that, if i simply use the .show command, the form shows up, but there are a bunch of blank white boxes where the content is still loading, how can i have the form not become visible until ALL of the contents and images inside are fully loaded?
I have made simple application for access database.I have designed my GUI ,with background image and some button given a colours.
When I run my application all controls are not seen at once , rather it takes time to display it on form. When there was initially no background image it was working smooth.
I currently send a live video mix to a output screen (a form on a particular screen).Consider it like a really advanced version of PowerPoint. I call it a video control room for the pc. I want to take 30 frames a second from a screen (of my choice, I allow multiple screens) and the audio from the computer (stereo) set, save it to a hard disks. How do I do that? I know I can draw the image of the interface using the RenderTargetBitmap class, but How do I put those images (as frames) in an AVI file or push it to a video server? An SDK? or a Code Example to point me in the right direction, would be nice! I also want to capture the sound of the current Stereo mix, or microphone (as determined by the user).
I've created a windows form with lots of combo boxes and print and save buttons.
I would like to be able to save the contents of the populated combo boxes, labels etc ie the whole form from the save button, preferably to excel 2003. However, would be just as happy to save it in the form format.
The only code behind the save button I have so far is this, which just navigates me to the directory. When I enter a filename and extension, the directory is empty:
Private Sub save_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Save.Click ' Displays a SaveFileDialog so the user can save the file assigned to the Save button.
I want to move a viriable content from one form to the other . and like wise. Lets see now here is the startup form. Public Class startup ok as you can see am making a public shared variable to get the name from the textbox and put it in the var, thats easy already done , now the problem I can't get it to be moved to the other form. (Below the 1st code is the code I use to get the outcome from form1 to form2).
Public Shared playername As String Private Sub startup_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged [Code] .....
i have an array of booleans whose current boolean values I want to preserve but add additional length to the array? How can I achieve that? My code looks like this:
Dim Array() As Boolean Dim ArrayInterimShort() As Boolean ReDim Array(119)
Is it possible to display the contents of a two dimensional array vertically on a form in vb.net using listview, and if so how would I do it? So, if my array is declared as dim myarray (2,10) how would I display the contents vertically in listview.