Customizing Obtaining User Choice

Jan 12, 2010

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()

[CODE]....

View 5 Replies


ADVERTISEMENT

Custom User Controls - Correct Size With User Choice

Sep 27, 2011

I have some custom user controls in my .net winforms program that do not display correctly when the user has selected larger text size. This setting:

My controls look like this:
Instead of like this:

The bill to area and ship to area are both custom controls. I don't know if this is contributing to the problem but I do have code in each to scale the phone/fax areas to stretch nicely, like this code from the bill to control,

Private Sub panFaxPhone_Resize(sender As Object, e As System.EventArgs) Handles panFaxPhone.Resize
panFax.Width = (panFaxPhone.Width / 2) - 1
panPhone.Width = (panFaxPhone.Width / 2) - 1
panFax.Left = panFaxPhone.Width - panFax.Width
End Sub

How can I get my controls to size correctly while still respecting the users choice for larger text (I don't want to just set the AutoScaleMode to None)? After playing with this for a long time it seems to be a problem with anchors in the child controls. See this below image, the inner black box is the control with its border turned on, the text boxes (like name) are anchored left and right and should stretch to fill the control, but don't.

View 1 Replies

Detect User Choice During Run Time?

Sep 10, 2010

No doubt a simple question, but I'm a beginner (I learnt GW BritingASIC in 3 months long ago - but after 6 months grappling with vb 2008 I am still bewidered).

I have written a program that asks the user at run time to choose 1 of 40 buttons. These are themselves defined at run time. Whichever button is chosen the same algoritm will run (using different data). Question: To save writing the same Button_Click routine 40 times, what code should I write - and where in the program - to detect which of the 40 the user has chosen?

View 2 Replies

Set User Browsed Choice As New StreamReader

Apr 10, 2009

I need my program to let the user choose a text file by browsing the computer then the file path of the file needs to be set as the New StreamReader path so that the computer can open the file.

[Code]...

View 1 Replies

VS 2008 4 Drop Down Lists, Select A Choice In One, All Get Same Choice?

Mar 12, 2010

I have four drop down lists here and I've assigned the datasource and displaymemberproperties so they are populated by a table. When I run the program and select a choice, all four of them get updated with the new choice.

View 3 Replies

Show Or Hide Tabpages As Per User Choice?

Dec 25, 2011

I am trying to show or hide tabpages as per user choice. If user selects gender male then form for male in a tabpage "male" should be displayed and if user selects female then similar next form should be displayed in next tab "female" I tried using

tabControl1.TabPages.Remove(...) and
tabControl1.TabPages.Add(...)

It adds and removes the tabpages but doing so will loose my controls on tabpages too... i can't see them back.

View 4 Replies

How To Get ListBox Choice By User To Show Image In PictureBox

May 7, 2010

I have designed this app with 5 pictureboxes. Each picturebox shows an image of a variation of a particular chord. Now, when a user types in (let's say) Cmajor (and it auto completes) how do I get the 5 pictureboxes to show the 5 different Voicing (Variations) of the Cmajor Chord?

View 15 Replies

TabPage Schedule - Setting Time According To User Choice

Mar 4, 2010

How can I edit the time on my form. I have a one tabpage Schedule on which I want to set time according to user's choice. (I know how to display current time). If current time is 5.50.55 PM then user can set anything for eg. 6.45.12 AM according to he want to schedule.

View 2 Replies

User Interface Choice For Managing An "orders" Table?

Mar 17, 2011

I want to "manage" a table of "orders." Orders is a typical table with a foreign key pointing to a customer, and a one-to-many relationship with a "details" table. To manage orders means to enter new orders, add details to orders, record payments, print a list of orders, cancel orders, mark orders shipped, print one order, etc., etc. These tasks can be divided into tasks that affect single orders (cancel an order) and tasks that affect multiple orders (print a list of orders).That task division led me to this user interface: present a form/window that displays by default a list of orders, and provide a button that switches the view from list mode to single-order mode. Each mode then provides the buttons for its tasks.

View 2 Replies

Allow A User To Enter Some Number (n) And A Choice Of A Count Up Or Count Down For That Many Numbers

Dec 10, 2010

designing a Windows based computer program that will allow a user to enter some number (n) and a choice of a count up or count down for that many numbers. So for example, the user enters 5 as their number and selects the count down option, the message box displayed would contain the message: "Here are your numbers: 5,4,3,2,1,0"

View 14 Replies

VS 2008 TCP Server / Client - Client To Send The Server 4 Numbers - Depending On The User's Choice

May 9, 2009

how to create a client/server... But I couldn't... I don't want anything fancy. Just want the client to send the server 4 numbers, depending on the user's choice; after that, the server would turn off the pc, restart it, etc. It all depends on the number received. Is there a rather "simple" way to do it? If it's not to much trouble you could use Atheist's example. (Btw I don't understand the code and, yes, I've checked on [URL])

View 9 Replies

Customizing The Combo Box?

May 18, 2009

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.

View 6 Replies

Customizing The MsgBox?

Aug 4, 2010

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".

View 5 Replies

Customizing A Datagridview Checkbox ?

Jun 5, 2011

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.

View 1 Replies

Customizing URL - Including Seven Letter?

Mar 24, 2009

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.

View 2 Replies

VS 2008 : Customizing The DataGridViewer?

Jun 17, 2010

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.

View 3 Replies

Customizing Binding Navigator Class

Apr 17, 2010

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]

View 10 Replies

Customizing Setup Wizard Of 2005?

Feb 13, 2010

can I create own customize setup wizard in visual studio 2005

View 3 Replies

Customizing ContextMenuStrip Arrows And Open Direction?

Oct 14, 2010

Trying to create a custom button to reside on the desktop at:

Me.Height = PictureBox1.Height
Me.Width = PictureBox1.Width
Me.Top = My.Computer.Screen.WorkingArea.Height - Me.Height
Me.Left = My.Computer.Screen.WorkingArea.Width - Me.Width

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?

View 5 Replies

Customizing The DatagridView - Navigating The Cursor Into A Particular Cell?

Jan 11, 2010

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)

View 2 Replies

Class For Customizing Controls On Windows Form - ControlLocationCustomizer?

May 29, 2011

Class for customizing controls on windows form - ControlLocationCustomizer

View 2 Replies

Forms :: Customizing Queries Based On Radio Button Selections?

Apr 30, 2009

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?

View 1 Replies

Obtaining Directory Name Via A Dialog

Aug 6, 2009

What I am trying to do is have a button that will pop up a dialog to where you can select a directory. Then the path of the directory will be placed in a text field.Click Button > Dialog Pops Up > Select Directory > DirectoryField.Text will equal "C:Program FilesStuff"

View 3 Replies

Obtaining X And Y By Providing An Image?

Feb 20, 2012

How do you provide an image to the program, so the program finds that image on the screen and tells its coordinates. So if I was to provide an image of the start button, the program would tell the coordinates like (2,1000) or something similar.

View 13 Replies

Obtaining A Bitmap Of Windows 7 Desktop

Mar 21, 2011

The following VB 2010 code runs, but returns only a black bitmap. I suspect the problem lies with the call to GetCurrentObject but I haven't been able to find good documentation on the arguments for it.[code]

View 9 Replies

Obtaining Content Of Other Application's ListBox?

Feb 28, 2010

Obtaining content of other application's ListBox

View 4 Replies

Obtaining Data From Proprietary USB / HID Device?

Jan 22, 2011

What is the best way to go about retrieving data from a proprietary hardware device that interfaces via HID USB? The particular device I need the data from is a blood-pressure/heartbeat measurement & monitoring device.The hardware came with software that downloads the data from the device and places that data into a (passworded/encrypted) MS Access database that I cannot connect to using programmatic methods, at least not without having the (admin's) password. The software provided produces reports, but the formatting renders them virtually useless (well, completely useless) for the needs of our company.

The device manufacturer provides to it's customers no API or any other technical information for accessing the data produced by their product; so, this pretty much leaves me stuck trying to figure out how to obtain the data via custom application in order to reclaim the initial justification for the expense associated with the hardware, which by the way has already been purchased.I don't need code snippits specifically, though examples would be nice; what I really need is to know is how to best approach this project, from a general design and programming stand-point.

View 2 Replies

Obtaining Info From Event Viewer?

Oct 19, 2011

I want to be able to search the windows event log (security) on our 2008 DC to find out when a certain user logged in. Using the system.diagnostics.eventlog namespace I can search and view information based on the event Id(4624) but I cannot work out how to display the login name of the user.

View 3 Replies

Obtaining RGB Values For Each Pixel Of Image

Nov 2, 2009

I am developing a software that would scan the image in a picturebox and obtain the rgb values of each pixel in the image and convert each rgb values to HSL values. I am using vb 2008 express edition. I am still a student. I am just starting to learn vb 2008. All I have done is to obtain the image in a file and paste it in the picturebox. Below is my code. I dont really know how to start with the process of obtaining the rgb values of each pixel and converting them to HSL values and averaging the HSL value.

Code to obtain image:
Option Strict Off
Option Explicit Off
Imports System.IO
Public Class Form1
Inherits System.Windows.Forms.Form
[Code] .....

I still do not know how to start with the process of obtaining the rgb value for each pixel.

View 2 Replies

Obtaining The Target Path Of A Shortcut?

May 25, 2010

I need to obtain the target of a shortcut (.lnk) file using Visual Basic 2008 or 2010 under Windows 7.For Windows XP and VB 2005 I used the Windows Script Host Object model and DLL, like this:

Imports WSH = IWshRuntimeLibrary
. . . . .
Dim MyShell As New WSH.WshShell

[code].....

View 2 Replies







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