Main Form - Setting Specific Setup Info

Jul 23, 2009

My app has a main form from which the user can set specific 'setup' information for things such as ports and IP addresses, plus it gives them visibility to a table that is used in conjunction with the TCPListener/responder. The program receives a request for information which it gets from the TCPListener, it gets the requested information and sends back the requested information. It all works great, but I need to move it into the background. When the listener starts, the app is basically locked from any user interface (including the ability to close the form and terminate the process).

What I currently have is:
A class called MyTcpListener with a shared sub 'RequestRespond'
From the main form, there is simply a button labeled "START" for the user. When the user clicks on start I call the listener by:
MyTcpListener.RequestRespond(LocalPort)

View 4 Replies


ADVERTISEMENT

Setting Focus Back To Main Form?

Mar 19, 2010

This should be fairly basic but maybe the search terms are too general to find relevant answers.I have an MDI form with a conventional toolbar. When I open a small non child form I want to set focus back to this main form so the user can click the help button on the toolbar if necessary.

Tried frmMain.Select() and frmMain.ToolStripButton0.Select() at end of small form load but it doesn't work. The user has to click the help button twice, once to select it and once to open it. A minor problem but annoying.

View 2 Replies

Setting Parent Of Main Menu Control?

Mar 25, 2011

Any way I can set parent of the MainMenu control? I don't want to use other controls because there is no windows 7 or vista style as in picture. Other controls have just ugly blue and white color. When I add MainMenu it sets position on top of the form. I want to set MainMenu Parent to one Panel. Other controls have just ugly blue and white color.

View 8 Replies

IDE :: Setup An User Setting In .net?

Jun 25, 2009

how can i option for vb.net desktop application for application settings so that each desktop users can save there settings like themes , color , preferences etc.

View 4 Replies

VS 2010 - Fill Out A Form With Certain Info, Put The Info Into An Array?

Nov 17, 2011

I am trying to do is fill out a form with certain info, put the info into an array, and write it to a listbox using loops, arrays, and maybe a function if I need one. This is for VB2010 and here is what I have so far... I think there are ways to make it shorter but I cannot figure it out.... maybe just brain dead from all the coffee I have been drinking!

[code]...

View 1 Replies

Setting Visibility Property Of Main Window To Hidden?

Jan 8, 2012

I have set the Visibility property of the main window to Hidden and added the following in Window_Loaded:
private void Window_Loaded(object sender, RoutedEventArgs e){
this.Visibility = System.Windows.Visibility.Visible;
}
But it doesn't show up the Window.

View 1 Replies

VS 2008 Setup And Deployment Setting For All Users

Aug 23, 2010

During the installation stage of VS programs, via setup and deployement, the end user is given an option to install to local settings or for all users. Where is this information saved?

View 8 Replies

Application Setting - Switch Main Server And Backup Connection String With Combobox

Mar 5, 2011

I have a little problem with application setting in VB.net 2008. I want to switch main server and backup server connection string with combobox. [Code] It did change the Application Setting connection string in the main form when combobox1 was changed. But the problem comes, when child form was called. On the child form there is DataGridView with Dataset using application connection string. Even the Backupserver was selected on the main form, child form dataset connection string doesn't change. I don't know how to pass the current connection string to child form dataset although it is set to use application setting.

View 6 Replies

Get Specific File Info Using DSOfile?

Aug 16, 2010

So I downloaded the dsofile demo and source from microsoft and up-converted the project to vs9. When I open an office document in the file reader it get the error code 80040154. On Microsft Help and Support there is nothing listed aboutthe code. I tried opening a docx file than a doc file. Also many other file types. I used the uneditied demo of the dsofile and was able to open files.

So how in visual basic 2008 do i use dsofile to get file information. Such as a album of a song from a mp3 file.

View 1 Replies

Get Specific Info From SQL Error Message 547

Sep 6, 2011

How do I correctly extract specific info from an sql error message number 547? [code]

View 2 Replies

How To Print Certain Set Of Info To Specific Printer Tray

Apr 12, 2010

I am trying to implement a custom printing solution for a client. What he wants is to have one button print a certain set of info to a specific printer and specific printer tray, connected to the client machine. Another button will print a similar set of info, to the same printer, but a different tray.

One tray is preloaded with regular 8.5"x11" paper, and the other is loaded with legal paper, 8.5"x14". I've found some instructions on how to do this: [URL]. So, I've implemented the code, and am able to enumerate the printers attached to the client machine, and their trays.

I've setup some web.config settings for the client to enter the names of his printer and specific trays (in this case, tray 1 and tray 3). This code I've written runs and works correctly, printing the document without error. The problem I am having is that even though I have selected the tray for legal paper, all the info instead prints on regular paper, the printer seems to be ignoring my instruction to print onto legal paper.

Here is the code:
Imports System.Drawing
Imports System.Drawing.Printing
....
Private printFont As Font
Private ds As dsSummons
Private formToPrint As FormType
[Code] .....

I first tried "pd.DefaultPageSettings.PaperSource = PSource" but that didn't seem to work. I also tried setting "pd.PrinterSettings.DefaultPageSettings.PaperSource = PSource" but that doesn't seem to work either..

View 5 Replies

Specific Condition In Setup And Deployment Project?

Jul 8, 2009

I have a VB.NET Application and I am developing a deployment project in VS 2008.

I need to give the user the choice to allow the application to start when windows start (but this should be optional)

Then in my application there should be an option to remove the application from the windows start up folder.

View 3 Replies

Login Facility Reading In User Info From A Main User File?

Nov 9, 2011

I have been trying to solve this for 2 days now, every text book I own and google have been well and truely exhausted and I am still no closer to solving my problems.I have a login facility reading in user info from a main user file. This takes all info into a temp array and then splits usernames into a username file, passwords into a password file and a current score in a score file.

I have the login working fine and everything else in my program works as intended but touching up cosmetic aspects I want to add a Message box after login to say hello and display current score. This works great for the first name in the user file i.e - after login User1 welcome to the game. Your current score is 45 As intended.But the problem arises with any other users, my message comes out as

User2 welcome to the game. Your current score is 55 I do not understand where the random new lines are coming from. I have tried assigning the message as a variable and removing new line using

[Code]...

View 9 Replies

Deployment - Move Files To A Specific Folder When Run The Setup File For Application?

Jan 4, 2010

I have created deployment package for VB.Net appolication and it runs fine. When setup is rnning, I want deployment package to move a file from bin folder to other specific folder. how can I move this file to specific folder.

View 1 Replies

Setting Color To Specific Cell In DataGridView

Dec 12, 2011

I want to set Color to specific cell in DataGridView as in this code , but didn't accept BackColor property.
Form1.DataGridView1.CurrentRow.Cells(3)......BackColor

View 6 Replies

Restrict Users From Setting Focus To A Specific Cell In .net?

Jun 16, 2011

restrict users from setting focus to a specific datagridview cell in vb.net

View 8 Replies

Mdi Child Form Order - Move The New Form Behind The Main Form While It Loads

Aug 5, 2010

i have my main child form open. then i show the new form:

[Code]...

but when the form opens it flickers a lot. so i want move the new form behind the main form while it loads so the user does not see the flicker. once it is done loading i will set the form to topmost. how do i move the new form behind the main form?

View 12 Replies

Setting/Reading Specific Values Of A Richtextbox Line To An Array

Dec 7, 2009

I have a button which reads a comma separated value file and loads it into a richtextbox. Each line contains comma separated chars.

Once the file is loaded in the richtextbox, i want to be able to select specific values from each line and store them into an array.

For example:
Line1: a,b,c,d,e

I want to be able to place only the values "b" and "c" into an array.

I was thinking something like creating a menu for the richtextbox which will be triggered on right click, then highlight the values I want, press right click and select 'place these values in an array'.

it doesn't have to be the way i proposed it, but it definitely must use a richtextbox.

View 9 Replies

VB Richtextbox - Setting Specific Text To Italic Font Style

Mar 19, 2011

I have created a Richtextbox, which produces text based on user-inputted variables as well as some basic formatting - eg: name = txtname.text richtextbox1.text = "Hello my name is " & name & "." What i want to do is set the text in the name variable in Italics when it is displayed, like this.

View 3 Replies

VS 2008 Setting The Index Positions And Lenghth To A Specific Number?

Mar 23, 2010

I dont want to be setting the index positions and lenghth to a specific number becuase when i choose a different name from the listbox that is at a different position or longer it wont display it properly. explain to me another way around this so as it will allow any details to be selected and read???

[Code]...

View 16 Replies

Forms :: Setting The Calendar Component To Show Specific Selectable Dates?

Nov 20, 2010

I've been trying to search out the answer to this question, but i couldnt find any. How do set the calendar component to display only certain dates, say 6 weeks from current date?

View 1 Replies

TopMost Form - Messages Form Would Be Hidden By The Main Form

Nov 20, 2009

I have a tool window that I want to stay above the main application form, but not stay on top of all windows forms. Similar to the floating properties window for visual studio - it always stays on top of the main VS window, but if I select another program, like internet explorer, the floating properties window will be behind internet explorer.

What I have is an application that has several forms that may be displayed at the same time. I have a Messages form that displays messages generated by the code in the form, that gives the status of the application. Obviously, the user would not normally be working on this form, but they may want it to be visible to see the status messages from the program (File saved confirmations, etc). So, my two options right now are I can set the form to be on top of all other windows forms or, when the user clicks on the main application form, the messages form would be hidden by the main form.

View 6 Replies

Detail Bound Form Updates Main List Form, But Does Not Update Data

Jan 29, 2010

I have a main form with datagridview containing a list of contacts:

VB
Public Class Form1
Private Db As New DataClasses1DataContext
Private Sub Form1_Load

[Code]....

After saving, I get the correct message ("Saved"), and the DataGridView in the first form gets updated in real time.

But... when I take look at the data (or close and reopen the forms) the data in the database (SQL server) have not changed! What happens!

View 4 Replies

Load The Main Form Of A WPF So That A Separate Thread Goes And Gets Data From The Database While The Form Is In An Apartmentstate?

May 15, 2012

How do i load the Main form of a WPF so that a seperate thread goes and gets data from the database while the form is in an apartmentstate? (drag-able / movable) I Know this is possible with opening a new window from your main form like this :

Private Sub openOrderWindow()
Dim OrderWindow As Orders = New Orders
OrderWindow.ShowDialog()
End Sub

[code]....

I've tried putting MyBase.ShowDialog() and .Show() and .9000+ other things The only benefit I've got out of using a seperate thread to load from the databse is i can see the screen right away (as oppose to it being a transparent box until it loads) but i cannot move it around or minimize it?is there any way to make it Movable while it loads?

View 1 Replies

Forms :: Form Settings - Check If File Exist On Main Form

Apr 29, 2011

[Code] I want like to check if a file exist on main form, if not: force open settings form. And then when the user is closing the form with exit button = check if the file exist again. If it doesn't exist, close application. It's a huge application and I need optimized on most parts. Also, the settings form is asking the closing question two times.

View 1 Replies

Make The Main Form Grey Out/translucent Black When A New Form Opens On Top?

Jul 9, 2010

How can I make the main form grey out/translucent black when a new form opens on top?

View 8 Replies

VS 2010 Sub/Child Form Close When Click On Main/Parent Form?

Jun 5, 2012

i am having some trouble in my Windows form application. i have 2 forms1st Main / Parent Form2nd Sub / Child Form (Menu)

View 7 Replies

Calling Showdialog() On A Form - From The Main Form's OnLoad Event Makes The Modal Dialog Go Away After A Few Seconds?

Aug 7, 2009

I'm having an interesting issue that I can't reproduce on a different project, but can consistently on this one. I have no clue what might be causing it, but am hoping that someone may have seen it before.

I have a main form, from which I run a series of checks. On this form, I have a listview control. Because of some issues with the refreshing of this listview control, I had to create my own messagebox. It's just a form that displays some text ( it also happens to look nicer than MsgBox; in my opinion, anyways ). It's been working great for months, until recently.

My problem is that on my main form's load event, I run this check, which returns an error within a try/catch block. I then call my custom messagebox with a message. It in turns calls it's ShowDialog() function.

In any other situation ( after the main form has been loaded ), I have no problems. The messagebox goes on the screen and behaves appropriately ( ie: waits for my input and acts as a modal dialog ( stops execution of my main form's thread ) ). However, on this onload event, my messagebox comes up and goes away almost immediately afterwards.

I've traced it all the way to the showdialog() call. For no explicable reason, it appears to skip right over this call, without me doing anything on the form.

Here's what the inner trace looks like ( when I put a breakpoint on the onclosing event for this messagebox form ):

CODE:

View 10 Replies

Accessing Datasets Loaded In Main Form From A Child Form?

Aug 11, 2009

I have a program I've been working on for some time now and I'd like to try to streamline it somewhat. I have a main menu form that has a split panel, in the left panel is a treeview that displays forms you can open and when one is selected, it opens in a child window in the right panel. Each time I open form I called DWNForm, it does a series of dataset loads which are the populating items for a series of listviews.

What I would like to do is have these datasets load once during the mainMenu load and then have the DWNForm be able to access the datasets once it is called from the treeview selection.

View 8 Replies

Create An IMAGELIST In A Main Form And Add To It Then Have It Accessible Within A Child Form?

Mar 22, 2011

I want to create an IMAGELIST in a main form and add to it then have it accessible within a child form. I found several MS examples on database shared access but this is NOT the concept I am after. Straight forward:

Child_Form.<function_to_execute_in_child_form>(The_Passed_Imagelist)

So, within the child form it want to do whatever I like to the IMAGELIST! I have tried passing the object by reference and anything I could think of.

View 3 Replies







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