How To Associate Two Windows Forms

Aug 9, 2010

In my VS-2008 (VB.Net) application, I am using a background worker to make my main form more responsive. In case of any error (in DoWork event) I m displaying the error on another form. In this case main form cant be a parent of error form so if main form is clicked, error form go in the background (behind main form). I want to restrict the user to interact with the main form while error form is appearing. Is there any way to associate these two forms such that error form always appear in front of main form.

View 1 Replies


ADVERTISEMENT

Forms :: Associate Two Windows Forms?

Aug 9, 2010

In my VS-2008 (VB.Net) application, I am using a background worker to make my main form more responsive. In case of any error (in DoWork event) I m displaying the error on another form. In this case main form can�t be a parent of error form so if main form is clicked, error form go in the background (behind main form). I want to restrict the user to interact with the main form while error form is appearing. Is there any way to associate these two forms such that error form always appear in front of main form.

View 1 Replies

Associate Windows With Application?

Jan 26, 2009

How would i do to get the regkey from my program and then register it into the windows key register so that users can select Open With... [MyApplication]?

And this brings me to another question, how can i get the data from a file if someone opens my program with a file (Open With...)? Or else maybe how can i get the path to the file which opened my program so that i can retrieve the data from the file?

View 11 Replies

Operator '*' Is Not Defined For Types 'System.Windows.Forms.VscrollBar' And 'Systems.Windows.Forms.VscrollBar

Oct 29, 2011

I am trying to use values from form1 in my project, in form2, but Im not sure how to do it. I've tried

txtboxTotal = (Form1.vsbLength * Form1.vsbWidth) * Pattern

But I get: operator '*' is not defined for types 'System.Windows.Forms.VscrollBar' and 'Systems.Windows.Forms.VscrollBar.'

View 14 Replies

Implicit Conversions From 'System.Windows.Forms.Control' To 'System.Windows.Forms.Webbrowser'

Sep 8, 2010

I have the code which checks if there is a selected tab

Private Function GetBrowser() As WebBrowser
If TabControl1.SelectedTab IsNot Nothing Then
For Each c As Control In TabControl1.SelectedTab.Controls
If TypeOf (c) Is WebBrowser Then
Return c

[Code]...

View 2 Replies

Unable To Cast Object Of Type 'System.Windows.Forms.Button' To Type 'System.Windows.Forms.TextBox'

Apr 28, 2009

I have a panel with some controls in it (several textboxes, a slider, 2 buttons, and a small groupbox).. When I click a button, I want all of the textboxes within the panel to be readonly... So I have this code: [code] When I run it though, I get the following error:Unable to cast object of type 'System.Windows.Forms.Button' to type 'System.Windows.Forms.TextBox'.If I remove a button, it moves on to give me the same error but for a label..

View 4 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Forms :: Visual Studio 2010 Windows Forms App Screenupdating Property?

Jun 4, 2011

.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.

[Code]...

View 4 Replies

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Forms :: Startup A Second Windows Forms Inside The Parent Form?

Aug 26, 2010

I would like to know if its possible to start up a second windows forms inside the parent form. Ex: A button is pressed and a new form is showed. I would like to keep that new form inside the parent form, and have it not be able to go outside the parent form.

View 2 Replies

Forms :: String Cannot Be Converted To System.windows.forms.label

Mar 31, 2010

I am writing a program for my A-level coursework But for some reason I got this build error this has never occurred to me before, I have no idea why I can't use string for the name of my form.

View 8 Replies

Forms :: Windows Forms App Copy A File To A Preset Folder?

Jan 9, 2012

a program and i need to have a button put a file into a folder, i know how the button works i already have it doing some other stuff. i just don't know the code to copy and past it to a folder.

View 1 Replies

Inherits System.Windows.Forms.Form Is Missing In New Forms?

Mar 5, 2012

When I add a new, empty form to my VB.NET VS9 project, the linenherits System.Windows.Forms.Formis missing.What am I doing wrong here?I thought it would be added automatically.I experienced that some thing get weird if this line is not there (Form_Load is not firing, I think).

View 3 Replies

Winforms - How To Load Binary To Windows Media Player In Windows Forms

Jul 24, 2011

I've successfully saved video files into SQL server as varbinary. Now, my problem is, how can I play those videos in Windows Media Player (embedded in my Windows Forms).

View 1 Replies

Code Works In A Windows Forms Application, But Not In A Windows Service

Jan 19, 2010

I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service

View 7 Replies

Forms :: Disabling BackGround In Windows Application Same As Windows Cardspace

Sep 24, 2010

I am making a System Tray Application when i minimize my form its hide itself in the tray but whenever i click on the tray icon my form shows now when my form shows up i would like to disable my Background desktop same as CardSpace when its shows up.

View 1 Replies

Scroll In Windows Forms Treeview Only On Windows Server 2003

Apr 10, 2012

I have a problem with scroll in a treeview in a Windows forms application (Framework version 3.5).

The strange thing about the problem is that on Windows XP, Windows 7 and Windows 2008 the scroll works as excepted, but in Windows Server 2003 SP2 the scrolling doesn't work. Enable/disable Visual Styles doesn't seem to make a difference on Server 2003.

Steps to reproduce the error:

1. Add a treeview to a form and add x nr of root items (and 1 sub item to each item).

2. Expand a number of nodes. The non-standard thing here is that we are changing the node integral height because we display a usercontrol with the treenode (See example of the code below).

3. When you scroll afterwards, you cannot scroll to the bottom node. The scrollbar is all the way down, but we are not seeing the last node.

Public Shared Sub SetNModeHeight(ByVal Node As TreeNode, ByVal IntegralHeight As Integer)
'Create instance of tvitemex structure.

[Code]....

View 2 Replies

Forms :: Command Line Args In Windows Forms?

Aug 2, 2010

I was playing a game recently and saw that they could use args in the shortcut, and I decided to try to impliment this into my application...so far, I got: (runs this sub on load)

Sub startup_args()
If Environment.GetCommandLineArgs.Contains("+game") Then
Dim path As Array = Environment.GetCommandLineArgs

[code]....

just to see what it returns, but the application crashes. I also tried path.tostring(), but that didn't work. When I did:

If Evnironment.GetCommandLineArgs.Contains("+game") Then
Dim path as string = Environment.GetCommandLineArgs.tostring
MsgBox(path)

[code]....

but that returned the value "SString.Array[]"...

View 7 Replies

Forms :: Creating A Sub Main In A Windows Forms Project?

Sep 13, 2010

What is the vb.net equivalent to accomplishing this?

static void Main()
{
frmCalcView view = new frmCalcView();

[code].....

View 5 Replies

Sharing Business Logic Between Windows Forms And Web Forms?

Feb 4, 2010

My question is, am I able to share a business logic layer seemlessly between the two presentation layers or is there anything I need to watch out for. I'd really like to not have any duplication of business logic, so any advice would be more than welcome.

View 3 Replies

C# - Standard Windows Menu Bars In Windows Forms?

May 6, 2010

I noticed that adding a MenuStrip (from the Toolbox) to my form design doesn't yield a menu bar like many native Windows applications. Instead I get a menu bar like Visual Studio's own. None of the style settings for MenuStrip appear to mimic the much more common native menu bar.Is there a way to add a menu bar to my Windows Forms application that looks the same as the one you see in Notepad, Task Manager and others? (Preferably with the designer, but I wouldn't mind adding it programmatically either.)

View 3 Replies

VB 2010 (Windows Forms Project) Run On The Windows 8 Platform?

Jun 21, 2011

will a VB 2010 (Windows Forms Project) run on the Windows 8 platform?

View 3 Replies

How To Associate One Object To Another

Jan 23, 2010

I finally figured out exactly what I do not understand in vb.net. What I am needing to know is how to associate one object to another such as how would I associate text box(A) with text box( so that text box ( gives me the correct output after I type input into text box (A).

View 4 Replies

Associate TextBox With Tab?

Apr 19, 2009

I am making a program with tabs, and in each tab is a textbox for editing a file (like how VB's designer does). How can I match up a textbox with a tab so that the cut, copy, paste, select all, etc. in the menu can tell what textbox to preform actions on? I was thinking of getting the current selected tab, and somehow finding the textbox associated with that tab.

View 15 Replies

Date/TImePicker Available In Windows Forms, Not Web Forms?

Feb 6, 2010

I am working on an assignment and just making my way all la de da like...suddenly I approach the end and I am rather happy since I then can start finals. This is where the problem arrises...This is what I am required to do... Create a Web user control that has text boxes and labels for inputting a person'sinformation. Integrate a DateTimePicker control in the web page for selecting dates. Create a procedure to calculate the number of days elapsed from the order date tothe estimated shipping date.I have the first part easily completed...no problems..Unfortunately the second part...the DateTimePicker control, since I am working on a web page, is not available to me...unless I have missed something but I can guarantee you it does not show up in the con

View 8 Replies

Forms :: Displaying Progress Bar On Windows Forms?

Apr 2, 2010

I have a progress bar on a Windows Form which displays the number of records as they are retrieved from the database.The problem I'm having is that the entire Form.Load() method seems to run prior to the form being displayed, which means all my code updating the progress bar is gone to waste.

View 4 Replies

Referencing A Windows Forms App From A Windows Service App?

Aug 30, 2011

Is there a way to basically merge a Windows Forms Application with a Windows Service Application and allow the passing of parameters on start up to determine if it should start the standard GUI or launch as a system service

View 4 Replies

Associate A Filetype With Application?

Jul 23, 2010

How can i go about associating my application with a filetype e.g *.safsg ? How can i get my program to open them file types when that filetype is double clicked on desktop for example.

View 1 Replies

Associate A Key With An Index For A Listviewitem?

Dec 2, 2004

I am trying to find a way to associate a key with an index for a Listviewitem in VB.Net. I'm not even sure if it can be done with .Net but I know in VB6 I could do a

Listview.listitem.add "somestring", "somestring".

For the application I am using this in, I cannot have duplicate item.text so I would make the key the same as the string. this also made accessing the item easier since I didn't have to rely on index to update the subitems.

View 12 Replies

Associate A Timer To Function?

Mar 8, 2012

I am facing another issue. I want to associate a timer to my function. Actually what i am doing is that i am tryin to store certain values in a database. A function is such that it calculates 5 values and stores them in a database. While storing them in the database it displays them in a textbox on the form. Now i want to display them one by one which it does. But it does it so fast that i can only see the last value that it enters in the database inside the textbox.

Can i make it show all the values slowly one by one.

Private Sub dbInsert(ByVal strfile As String, ByVal hashoffile As String, ByVal p As Integer)
'parameter to the above function (ByVal strfile As String)

[Code]....

View 1 Replies







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