MDI - Childforms - Application - User Can Choose Which Modul He Wants To Use

Oct 4, 2010

Here is a simplified hierarchy of a application I want to create:

1. Mainform - here should be a navigation pane, where a user can choose which modul he wants to use.

2. Childform Reports, Childform Maintenance, Childform To Do, Childform Management, ... - depending on which modul of the program the user wants to work with, a proper childform will appear as the main working part of the application

3. Childform CostReport, Childform TurnoverReport, Childform EmployeesReport, ... - if user wants to work with Childform Reports (chosen in 2. paragraph) he can work with one of these childforms.

I wanted to do this with MDI childforms, but visual basic keeps telling me that a form can be a MDI container only as a toplevel, which Childform Reports isn't. So i can make the program till 2nd paragraph but when i want to make the 3rd, its a problem.

I put the error here: "Top-level style of a parented control cannot be changed.

Parameter name: value"

Is there a workaround?

Maybe i could use TabControl for the 3rd paragraph, but its not that convient, since I want to use more "tabs" or forms...

View 9 Replies


ADVERTISEMENT

Allow User Select The Sign Name From A Combo Box If User Choose?

Jan 18, 2011

Write an application that tests the user�s knowledge of road signs. The application should display a random sign image and ask the user to select the sign name from a Combobox.

View 12 Replies

Use A Function / Sub That Exist In Modul?

Feb 8, 2009

I new in vb.net and i try to call a function that exist in a module[code]...

View 5 Replies

Multiple ChildForms With WithEvents?

Jun 9, 2011

I'm trying to create multiple instances of a child form. This form has an event that feeds a string variable back to the parent so I'm declaring it with WithEvents which is declared outside of the Sub - meaning multiple clicks will not open multiple forms.

another method of doing this while keeping the event?:

Dim WithEvents FRestoreDB As New FormRestoreDB()
Private Sub BtnOpenDB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOpenDB.Click

[Code].....

View 2 Replies

Pop-Ups - User Can Choose If They Want The Pop-up Blocker On Or Off?

Nov 2, 2010

I made a pop-up blocker in my Visual Basic browser. Here is my code:

WebBrowser1_NewWindow

e.cancel = true

msgbox "Pop-Up Blocked!"

But how can I make it to where the user can choose if they want the pop-up blocker on or off? Also, how can I make it block pop-ups, but still open clicked links in a new window of my browser? Just curious.

View 9 Replies

VS 2008 - How To Create ArrayList From MDI ChildForms

Aug 11, 2009

I want to create an arraylist from MDI childforms and I did it like this:
vb.net
Dim sl As New SortedList(Of Integer, Form)
Dim i As Integer
Dim form As Form
For Each form In Me.MdiChildren
[Code] .....
It's working great, that means that if I delete a childform for example number 2 from all 3 then it creats first number 2 again and then number 4. Now the problem is that It only shows the childformnumber in the parentformtext instead of the name and number of that childform,like this: parentform - childform 1

View 8 Replies

User To Choose Save Name And Area?

Apr 7, 2011

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
'Creates a string that holds the path to your file.
'this path uses the Special Dir .MyDocuments
'so on my computer LogPath = "C:UsersTechNoHickDocuments"
'on your computer LogPath might = "C:UsersKirbyDocuments"
Dim LogPath As String = String.Format("{0} est", My.Computer.FileSystem.SpecialDirectories.MyDocuments)
Dim FileName As String = "test.txt"

[Code]...

I am using visual basic 2010 express and would like to know how i can use a text box of sorts or windows explorer function to allow a user to save a file to a location of their choosing.At the moment a folder and .txt file is created in the mydocuments folder of the user's computer using this code

View 2 Replies

Lets A User Browse And Choose A Folder?

Nov 8, 2011

Basically I need to make a program that lets a user browse and choose a folder, then I need a box that the user can then select the files to work with, then with the selected files I need to put them into a zip file. I'm trying to use a list view box but having all kinds of problems using the data in it.

View 2 Replies

Let The User Choose A Multiple Amount Of Car Parts?

Jul 10, 2011

i am currently developing a small basic program that will let the user choose a multiple amount of car parts and it will add it up and display a quote at the end.

View 7 Replies

Let The User Choose A Time With The Numeric Stepper?

Nov 12, 2010

I have an application that, when I finish it, will generate a graph of data drawn from a My SQL Database. It's going to be a simple time graph, with time on the bottom and a few stuff on the y axis.What I want is for the user to be able to enter the date. I would like it to be like a numeric stepper. Before I had two numeric steppers in the form but I decided one would be best.The idea was it would be like this: mm:hh [UP/DOWN ARROWS HERE]I saw one that was in use in an actual program. It had it so when you clicked the minutes, it selected the minutes and you could change them. The you could select the hours and change them. How would I do this?

View 2 Replies

Publish My App Where User Can Choose Location To Install It?

Aug 14, 2009

I am using VB Express 2008. Im jus't wondering is there any way I can publish my app where the user can choose the location to install it?

View 1 Replies

User Can Choose Excel Cells To Read

Oct 5, 2009

I want the people using my program to choose their own cell to read. I will have 2 textboxes (txtRow and txtColumn). They will have to click "read" to read from excel (but I will not open MS excel) and the answer will show in a message box. This is what I have done..

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheck.Click
Dim conn As New OleDbConnection("Data Source= D:LeeABC.xls ;Provider=Microsoft.ACE.OLEDB.12.0; Extended Properties=Excel 12.0;")
Dim da As New OleDbDataAdapter("Select * from [Sheet1$]", conn)
Dim dt As New DataTable
Dim Row1 As Single
Dim Column1 As Single
txtRow.Text = Row1
txtColumn.Text = Column1
da.Fill(dt)
MsgBox(mycell)
End Sub

View 2 Replies

VS 2005 Choose Randomly From User List?

May 18, 2010

I'm relearning VB.net just for fun, so consider me new at this. I'm trying to write a program where the user can input a list of names or numbers, and the program will randomly pick one of those names or numbers. So far, I can get it to randomly generate numbers based on what I put in the code, but I don't know what I should use for the user to input the data, and how to code it so that the program will pick from that data.

View 3 Replies

Brings Up A Form With Some Radio Buttons For User To Choose

Nov 20, 2009

I've written a program that brings up a form with some radio buttons for the user to choose.The form is setup by a sub in module1 (called Type2Q, shown below). For some reason, often radiobutton1 is checked when the question appears.I specifically set checked to false since I did not want this to happen. [code]

View 3 Replies

Allowing User To Choose Color For Form Background

Jul 31, 2009

How do I give the user a color chooser for the background of a form or anything else? I would like to be able to give him all colors in vb.net.

View 2 Replies

DialogBox - Enable User To Choose Folder Name And Save It

Jan 28, 2010

I want to have a dialog box like SaveFileDialog that will enable the user to choose a folder name and the save it. How I can achieve this?

View 5 Replies

Display Dialog With List Of Web Colors For User To Choose?

Jun 5, 2011

How can I display a color dialog with a list of known web colors for the user to choose?
E.g.
black
white
dimgray
gray
darkgray
silver
etc.
I need to display ALL web colors

View 1 Replies

How To Create A Browsefolderdialog - Popup To The User And Let Them Choose A Folder

Aug 19, 2010

I am going to show you how to create a browsefolderdialog. All this does it popup to the user and let them choose a folder.

For this you need:
1 Button
1 Textbox

Double click your button and add in the

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim BrowseFolder As New FolderBrowserDialog

[CODE]........

This sets your textbox1.text to what ever folder is selected. After that you can do whatever you want with your selected folder. This is how it will work when you are done: [URL]

View 3 Replies

Io - Allow User To Choose Directory To Save Multiple Files

May 26, 2012

I am needing to allow the user to choose a directory to save in. They can create a new directory if they want/need, and once they choose the directory, my program will save a few pre-coded files into that directory.

View 1 Replies

Numeric Up - Down Box - Display A Variable That The User Can Choose A Number For

Jul 24, 2011

I am using VB .net 2010 express from microsoft. I have a numeric up down box to display a variable that the user can choose a number for. Then I have a text box that I want to display a result of the updown box * 1.5... So far I have the following... What do I need or need to change? I have the integer variables initialized or whatever with Dim statements as follows -

'speed variables
Dim CruisingSpeed As Integer 'cruise speed - updown box
Dim FlankingSpeed As Integer 'Flanking speed - will be cruise * 1.5

[CODE]..................

It says that it cannot convert the up down box into an integer... I need it as an integer to calculate the other number...

Complete code just in case the above was not enough info...

'Imports Excel
'Imports System.IO

Public Class Form1

[CODE].............................

I have some stuff commented out because a variety of issues - some I will end up using and some I will end up taking out before it is done...

View 5 Replies

VS 2010 - Time Scheduling Control That Allow User To Choose

Dec 10, 2010

I once saw in an app a control that allowed the user to choose when they wanted the Timer running. It looked something like this: And when the squares are green, for example Tuesday 3:15 AM - 4:15 AM, the timer would run during that time period. I'm curious as to what control will allow me to do something similar?

View 3 Replies

Choose Their Own Background For The Application?

Sep 29, 2011

I have an option for the user to choose their own background for the application. How do I then make the image save in the settings for the next time the user starts the application? (This is actual pictures not solid colors).

View 7 Replies

Radio Button Group For The User To Choose Entry Temperature Type?

Jan 22, 2012

I need to have 4 text boxes and three command buttons. One button should be used for exiting the program, one button should be used for clearing all of the text boxes, and the last button should be used for any calculations/conversions. You should also have a radio button group for the user to choose entry temperature type.

One text box should be used for the entry of an initial temperature. The radio button group will then allow the user to select the entry temperature. When the button is clicked for conversion, the other three text boxes will populate with answers to the conversion. and if I enter 37 degrees Fahrenheit, the Fahrenheit text box should read 37 after the conversion.)

View 4 Replies

Let The User Choose An Assignment Then The Program Should Look For The Matching Text File In A Folder?

May 7, 2010

i created a form with a combobox that lists out Assignments ( assignment 1, assignment 2, etc...)......what i need to do is let the user choose an assignment, then the program should look for the matching text file in a folder, ex: user picks assignment 1, and the program will read from assignment1.txt and display the result in a listbox. I have everything except the coding to match what the user chooses and the text file to streamread.

View 10 Replies

SQL Statement - Change The Word Mobinil When The User Choose Another Item From The Combobox?

Oct 14, 2009

the below statment is right 100% but what i need is to change the word mobinil when the user choose another item from the combobox

cmd.CommandText = "select * from warehouse where mobinil ='" + ComboBox2.Text + "'".I thought that i can do the follwoing dim x as string x= here will be the item selected by user- and ofcourse i need it to be put instead of the word Mobinil
cmd.CommandText =

"select * from warehouse where x value ='" + ComboBox2.Text + "'" is that possible ?

View 8 Replies

Choose Items In Windows Application

Jun 4, 2011

I have some problem with my windows application in my system. when ever i right click in the tool box and select choose items, the application got closing. Can, any one help me how can i resolve this problem.

View 4 Replies

Choose Toolbox Item WPF Application

Oct 18, 2011

solve the problem, I'm unbale to drag icon from tools, I guess I'm wrongly delete something., I already Unstall and install back stil facing same problem.

View 5 Replies

Create A Function Inside Data Grid View Have A Combo Box And Can Let User To Choose

Jul 28, 2009

i have a question in vb about inside a data grid view i need to create a combo box...

View 1 Replies

Display Previous Shadow Copy Versions Of File Allowing User To Choose One?

Dec 11, 2011

I'm writing an Excel file recovery program with VB.Net that tries to be a convenient place to gather and access Microsoft's recommended methods. If your interested in my probably kludgy, error filled, and lacking enough cleanup code it's here: http:[url]..... The basic functionality seems to work although I haven't tested graph macro table recovery yet.

It occurred to me that Vista and Windows 7 users could benefit from being offered a list of previous versions of the file within my application if the Shadow Copy Service is on and there are previous copies. How do I do this?I looked at a lot of web pages but found no easy to crib code. One possibility I guess would be to use vssadmin via the shell but that is pretty cumbersome. I just want to display a dialogue box like the Previous Versions property sheet and allow users to pick one of the previous versions. I guess I could just display the previous version property sheet via the shell by programmatically invoking the context menu and the "Restore previous versions choice", however I also want to be able to offer the list for Vista Home Basic and Premium Users who don't have access to that tab even though apparently the previous versions still exist. Additionally if it possible I would like to offer XP users the same functionality although I'm pretty sure with XP only the System files are in the shadow copies.

I looked at MSDN on the Shadow Copy Service and went through all the pages, I also looked at AlphaVSS and AlphaFS and all the comments. I'm kind of guessing that I need to use AlphaVss and AlphFS and do the following?Find out the list of snapshots/restore points that exist on the computer.Mount those snapshots.Navigate in the mounted volumes to the Excel file the user wants to recover and make a list of those paths.With the list of paths handy, compare with some kind of diff program, the shadow copies of the files with the original.Pull out the youngest or oldest version (I don't think it matters) of those shadow copies that differ from the recovery target.List those versions of the files that are found to be different.This seems cumbersome and slow, but maybe is the fastest way to do things. I just need some confirmation that is the way to go now.

View 2 Replies

Web-based VB.NET Application (cannot Type In Text/ Choose From Combobox)

Feb 1, 2010

This is my first web-based application using VB 2008. I had no idea where to start so I just chose the 'Wpf Browser Application' and started adding the controls on the form and naming them the same as I would do with a normal non-web-based vb app. I ran the XBAB file under bin/debug using IE and the form showed up but I couldn't enter text or anything even though the textbox was set to enabled?

View 7 Replies







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