VS 2010 Hiding Forms?

Aug 1, 2011

It seems like such a simple thing to me, but it seems like the usual, me.hide() isn't working in this case. I have 2 forms that tie together, the login form, and then the main for being form1. The login form has an autologin feature, which works out fine, but with it enabled, the login form doesn't automatically hide like it should.

[Code]...

View 6 Replies


ADVERTISEMENT

VS 2010 Hiding/Showing Forms In MDI?

Feb 16, 2012

I am using a MDI parent to house each of the forms in my application. I have a main form and 2 sub forms. The sub forms are opened using the code below. Also, when I am finished entering info into these forms, i am hiding them so that I can reopen them with the same info still entered.

The problem is that when i show the form again, it is blank. Why would this be the case? I am never closing or disposing the form, so shouldn't it just unhide easily?Showing the sub-form(savingsfrm1) and and hiding the main form(riskfrm1)Public savingsfrm1 As Savings

Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

View 1 Replies

VS 2010 - Hiding / Closing Login Forms?

May 1, 2012

I've created a program with a login form. Once you log in, the login form should close and the next form should display... my problem is...
If I use Me.Close()... than both forms close and the application terminates.
If I use Me.Hide()... than the application never unloads from memory and run indefinitely.
So what do I do? Neither of these work how I need them to.

View 3 Replies

Hiding/unloading Forms In .NET?

Feb 2, 2012

Im learning VB.NET and as a first task im creating a login form. ive been trying to link it to another form once a correct username and password are entered. however, despite that i still cant be able to hide it or unload it once the next form is loaded

Here is the Code

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
If UsernameTextBox.Text = "chris" And PasswordTextBox.Text = "chrispass" Then
Me.Hide()

[code]....

The Form2 appears as coded above but the 'Me.Hide()' manages to hide the login form but then it appears again?

View 9 Replies

Showing And Hiding Forms

May 4, 2010

When my login screen loads, if the user has not created an account the form will close and a form to create an account will appear. However when I code this both forms stay visible, instead of just the one. Where am I going wrong?[code...]

View 6 Replies

Showing And Hiding Forms In VB?

Mar 11, 2009

I've just upgraded from Visual Basic 6 to Visual Basic 2008 Express Edition.

1. Show anothor form (ie. Form2)

2. Close Form1.

At present when I use the me.form1 , but both Form1 and Form2 both closes.I would like to press a button or on a timer, to show Form2, while closing Form1.

View 4 Replies

Forms :: DataGridView Display - Hiding And Showing

Mar 31, 2009

I have a form e.g. Form1 , which displays a datagridview.
1) On form load, the datagridview doesn't have any data
2) The user clicks on a button called filter, this opens a form where the user can specify parameters to filter the data by
3) This form calls a setData() in Form1, which fills the dataset with the data

This works fine. If I click on a button called controlPanel it launches another form and hides this. E.g.
dim cp as new ControlPanel()
this.hide()
cp.show()

On the controlpanel I have a button that links to form1. If I click on it. E.g.
dim frm as new Form1()
this.hide()
frm.show()
It redisplays Form1 but without any data in the datagridview.

I think the problem is that since I am creating a new instance for Form1 it comes up with the blank Form1. Is there a way to redisplay Form1 so that it retains the data that was displayed last, without having to retrieve the data from the database.

View 1 Replies

Rules/Guildlines For Closing Vs. Hiding Forms

Jul 16, 2009

I was wondering what Rules/Guildlines poeple for Closing vs. Hiding forms?

example:Should i only close a form when i am finished with it?

View 9 Replies

Way Of Hiding Forms And Classes From Main Project

Aug 31, 2009

the client has asked for all forms and classes to be hidden from the main project, so when he sells it, they will only be able to see part of the project and not all the classes and forms.My Solution: I have created another project called project2, and added all the forms and classes from main project, fixed all errors and compiled it.I deleted all the forms from the main project and added a reference so that it gets all the forms from the other project by referencing the dll file, but it does not seem to work and get a lot of errors.is there an easier way of hiding the forms and classes from the main project or do I need to do more then just add the reference.

View 2 Replies

VS 2010 Hiding A Folder?

Feb 25, 2012

Is it possible to hide a folder completely? By this I mean, not just set its property to hidden, but make it completely invisible so that the folder cannot be seen via Microsoft Windows Explorer?

View 2 Replies

VS 2010 Hiding A Form?

Feb 18, 2012

Dim Result As Integer
Result = MessageBox.Show("Question...", "Key", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question)

[code]....

View 1 Replies

VS 2010 : Showing Or Hiding Controls?

May 20, 2010

I have a form that searches a db. Some searches will always result in one row of data, others might return multiple rows. I want to have the data from a single row shown in text boxes and the multiple rows show in a datagridview is it possible to hide/show those depending on the amount of rows.

View 6 Replies

VS 2010 Expanding/ Hiding Controls On Form

Jan 19, 2012

I'd like to design a Winform with expanding controls if that 's overly complicated. The idea is that I would have rows of information, each with an "Expand" button. On pressing the button, the rows underneath the selected row would move down and the controls that are associated with the selected row (some textboxes/ dropdowns etc) would appear. Vice versa when you click the "Hide" button.

View 2 Replies

VS 2010 Hiding Window Of External Process?

Jan 7, 2012

So i want to start an application with my vb.net app and it should start as a hidden process, meaning no window and nothing in the task bar, only in the task manager ofcourse.

This is what i do

Dim fov As New Process
If CheckBox2.Checked = True Then
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "* - Launching"
fov.StartInfo.FileName = ("test.exe")

[Code]...

This does not work.. I have also tried the "fov.StartInfo.CreateNoWindow = True" command which does not work either. I can live with a solution that would start the window minimized instead of totally hidden.

View 9 Replies

VS 2010 Hiding The Tab Page Headers Without Having To Create A New User Control?

Jan 15, 2012

Is there any way of hiding the tab page headers without having to create a new user control?

View 2 Replies

Showing And Hiding Forms From A Console Application Causes "Cross-thread Operation Not Valid."

May 7, 2010

Showing and Hiding Forms from a Console Application causes "Cross-thread operation not valid."

View 1 Replies

Main Form "hiding" Secondary Forms?

Mar 31, 2009

I have a windows forms application with several 'child' forms. (It's not MDI, and I don't want it to be).Normally everything runs fine, but on occasion windows gets into a state where all of the 'child' forms on the application are invisible when they should be on top of the main application. The oddest part is if I move another application's window over my application (i.e. explorer or notepad) the child form becomes visible within the boundaries of the other application. It's like windows is drawing my main form over top of the rest of the forms in my application without regard the z order, or topmost flag, or anything. If I cover the main form with a notepad window, etc. It draws my 'child' forms properly. Rebooting the computer and restarting the application temporarily solves the problem.

View 3 Replies

Why "Forms" Are Hiding The OS Taskbar

Sep 17, 2009

I have various Forms in my application (MDI and normal) what are hidding the Windows taskbar when I dont want it, and I dont know why it is happening.

This Form have set the next relevant properties: WindowState = Maximized, MaximizeBox = False, FormBorderStyle = FixedSingle.

I have to say that when I call the form to show, the taskbar is still visible, but when I minimize the form, and then restore it, the form is in "Full Screen" and i cant see the taskbar, why it happens?

View 1 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

VS 2010 Multiplication In Forms - Multiply 2 User Input Numbers In Forms

Jun 22, 2011

I'm using VB 2010 and need to multiply 2 user input numbers in forms, so basically: TextBox5 = TextBox2 * TextBox3 That obviously didn't work but it shows what I want it to do.

View 3 Replies

VS 2010 Coding Forms - Creating Some Forms And Message Boxes?

Dec 25, 2011

I'm looking forward to reading and adding more to the community here. I've created a text based rpg. Next semester we are learning Visual Basic. I'm on winter break and I would like to get a head start on my learning. I've been working on creating some forms and message boxes. What is throwing me off, is that I have a good feel for doing coding so that I get functionality the will produce effects in a console. Coding the forms is a bit confusing for me. Is this something that others have run into? Is their some good primers for VB? I don't have my text books yet.

View 10 Replies

VB 2010 Forms App Project Using ADO.Net Has Started Crashing VS 2010 Whenever Load It?

Aug 11, 2011

well until a few day ago. I don't know what I have introduced to cause the problem but now, whenever I load the project, VS 2010 (SP1) crahes. If I delete the project's suo file, the project loads (really quickly) and all is well until I exitVS 2010. When I re-run it and try to load the project, it crashes again unless I delete the suo file.The program can be built for x64 and x86. Now, when I reload the project (after deleting the suo file), it comes up in Debug - Any CPU mode. I can change from Debug to Release and from Any CPU to x86 but if I try and change from x86 to x64, VS 2010 crashes.This is not always the case though. If I build the x86 version and then switch to x64, all is well and I can build the x64 version. Obviously, there's something wonky going on.

View 7 Replies

Hiding Rows In Excel

Aug 14, 2010

I'm trying to write a simple datagridview to excel. (I know there are lots out there but I can't find this one tweak)The following code runs well enough, I just need to be able to run a loop that says if a given row in the datagridview is .visible = false than I need the corresponding row in the excel spread sheet to become hidden.[code]

View 5 Replies

First Column Not Hiding In Datagridview?

Feb 26, 2010

I have a datagridview and once I populate the view with the data source I hide the columns that I do not need. For some reason the 1st column is not hiding. I have checked the column name and they match and the 2nd line executes fine hides the column for the EVENTID. I even did a messagebox.show( dgvTourOther.Columns("OTHERID").name) and it returned the correct name.

dgvTourOther.Columns("OTHERID").Visible = False
dgvTourOther.Columns("EVENTID").Visible = False

The values being passed are all strings. I do this on 3 other datagridviews ok but for somereason this gridview is acting different. I am going to try an rearrange the columns and see if that helps.

View 2 Replies

Form Is Hiding In Background

Dec 3, 2010

I am working on a project in VB.net 2008. I have a problem arising while opening a form as modal from a modeless form. I have attached a project to demonstrate the problem. This demonstration contains three forms with following characteristics. [code]...

View 3 Replies

Hiding -window While Debugging?

Jan 20, 2009

is it possible to automaticly hide the vs2008-window while i'm in a debuggersession? When VS comes at a breakpoint or there is an error the vs2008-window must pop-up.

View 2 Replies

Hiding A Line In Generated XML?

Jun 8, 2011

I have an app that writes to XML. If a text box is filled, then I write that value to the XML doc.

writer.WriteStartElement("VEHICLE_LICENSE_NUMBER") '10-28 writer.WriteString(frmCitation.txtPlate.Text.ToString)
writer.WriteEndElement()

[Code]...

View 2 Replies

Hiding A Process Window In VB?

Mar 27, 2009

I have been working on a program to hide windows for an active process. I found some examples on the internet explaining how to do this. The problem, however, is that after I hide the windows I cannot get them back. The process still shows up in task manager but i cannot restore the window..

Imports System.Runtime.InteropServices
Imports System.Diagnostics
Public Class Form1

[code].....

View 1 Replies

Hiding A Tab Page In A Tabcontrol?

Jun 2, 2010

Is this the only, or correct, method for hiding a tabpage in a tabcontrol?

Hide it:

Dim RemovedTabs as List(Of TabPage)
RemovedTabs.Add(aTabPage)
aTabControl.Controls.Remove(aTabPage)

[code].....

View 4 Replies

Hiding An Item In A Combo Box

Jan 15, 2010

I am using VB 2008 Express Edition.

Say I have Combobox1 with items (1)Breakfast (2) Lunch (3)Dinner
and I have combobox2 with items (1)Apples (2)Bananas (3)Grapes(4)Oranges

Now when I choose Breakfast in combobox1, I want user to see all 4 items in combobox2. But when I choose Lunch in combobox1, I only want user to see (1)Bananas(2)Grapes(4)Oranges in combobox2, hiding Apples.

Does anyone know a code where I can hide an item in a combo box depending on the condition?

View 3 Replies







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