Forms In Tab Control

Apr 7, 2011

IDE: VB.NET (2008)I have an mdi form in my program. As usual this mdi form acts like a container to several child forms. However, I need to implement a tabbed system so that my forms rather than appearing in mdi form should appear in a tab page.So I inserted a tab control on my mdi form and when a form is added I say TabPage1.Controls.Add(Form). It seems to be working okay until I found out that now my form is like a control so methods like Me.GetActiveMDIChild etc won't work.

Generally when a particular child form is selected we can know when we see the titlebar. In this case because forms are added as controls there is no difference in the titlebar of a selected or non selected form.Can I determine which form is selected. Something like Me.ActiveMdiChild. I can go through control collection of a tab page to get a list of forms but figuring out which form is selected is something I don't know.

View 1 Replies


ADVERTISEMENT

Forms :: Make A Label Control Transparent Over A Panel Control?

Jul 9, 2009

I'm trying to make a label control transparent over a Panel control.However by setting the background colour of the label to Transparent, it actually sees right through to the form itself, not the panel as intended.

As an example we use a panel with a background as white, we make the label transparent, however it gets the form�s colour as blue.However, we are using a custom panel control and need the label to be transparent over the panel and not see the forms background.

View 4 Replies

Forms :: Design Time Control Behaviour On Tab Control?

Feb 9, 2011

i have a splitter control on tab 2, a grid and a scheduler control on tab 3..looks fine...i save it....close the form...reopen the form, and the controls are all resized and moved around on me....and not for the better.

wierd thing is that when i run the app, the controls are placed properly, but design time is totally f&*ked up.I know this one isn't me. is it the tab control? should i just do toggle buttons at the top and show/hide my own panels? this is just too freaky to deal with. is there an easy work around for this?

View 1 Replies

Forms :: Which Is The Best Control To Use?

Feb 14, 2010

I have a winform project which I'm converting from a web project. In the web project I display "Notes" data from a data table into a table in three distinct parts. First the header, where the text color is based on the priority of the note. The second part is a short description of the note content and the third part is the complete note. The question I have is what is the best control for this in winforms? I guess I could use a text box and use it like a web text area. The data will be read only and will need to scroll since the amount of real estate on the screen accounts for only about a third of a 1024 X 768 screen.

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

.net - Vb Forms Button Control?

Sep 8, 2010

I have 3 forms. one main form with two buttons, that need to open one of the other two forms on clicking the button. Now when say button 2 is clicked then form 2 should open and also form form 2 person should be able to click back and come to main form.

View 2 Replies

Control Forms In Classlibrary?

Mar 6, 2009

How do I controls the windows forms after placed the codes in the class library like to add the items on the listbox and change the text of the button using with friend withevents, how can i do that to make it work?[code]...

View 8 Replies

Control The Forms In Classlibrary?

Mar 7, 2009

how do I controls the windows forms after placed the codes in the class library like to add the items on the listbox and change the text of the button using with friend withevents, how can i do that to make it work??

The classlibrary UI:

Code:
Option Explicit On
Imports System
Imports System.Windows.Forms

[Code]....

The reason I want to do this as I want to reduce the codes as it is too much for the program to read it everything.

View 10 Replies

Create Control ( OCX Or DLL ) To Run On Both Web And Win Forms?

Feb 18, 2009

I want to create A control Which should be a OCX or DLL and it should be able to run on both ASP Pages and Win forms.Which Template should i use.

View 2 Replies

Do Wpf Forms Have A Timer Control

Aug 30, 2009

do wpf forms have a timer control?

View 1 Replies

Forms :: Changing Look Of Tab Control

Sep 17, 2009

I'm quite new at this but I'm trying to change the look of a tab control other than the options provided in the control's properties. In short I want to create a large tab that will fit a picture but I don't know how to change the size of the tab. I also want to make the control look somewhat different than what the control provided with VS.NET looks like.

What I need to know is how to create a custom control that operates the same as tabcontrol but looks different than the traditional control provided with VS. I tried looking up how to create a custom control but all I could find was how to create one programatically and I don't know how it would apply to a tab control. Maybe the only way to do it is programmatically but I would rather play with the control in the designer than having it appear only at runtime.

View 1 Replies

Forms :: Control In MDI Parent?

Jul 2, 2011

I put a button in my MDI Parent Form and then when I call my form inside the MDI form, the button is always on top of my Form1.

myForm= New Form1(idNumber)
myForm.MdiParent = Me
myForm.Show()

View 2 Replies

Forms :: How To Create Control

Jul 4, 2011

How to create this control? What control is this that in the VS 2008? untitled.JPG

View 4 Replies

Forms :: Using MonthCalender Control?

Mar 2, 2010

actually i am using "MonthCalender" control in VB.net, i have 12controls on my form, i want each control to display different month,so i can have a full year calender, but i am unable to change themonths of the control. They all are displaying current month,

View 1 Replies

Modify Control In Forms?

Mar 23, 2009

i have 2 windows forms, form1 and form2.form1 has a label called "label1" and a button called "button1".This button when pressed, opens up Form2.Form2 has a textbox, "textbox1" and a button. This button, called "button2", when clicked does this:form1.label1.text=textbox1.textThis used to work PERFECTLY, but now it does not work! i dont know what went wrong, and ive made a lot of changes to the project so i cant track the last time it worked.

View 4 Replies

Opening Forms In Tab Control

Jul 9, 2009

I'm new to non internet programing. But I got to start somewhere. So i'll try and make this simple I have a MDI parent form with a tab control section. From a link in the toolbar i would like to open a diffrent form in my tab section. This is what I figured out so far if its even close.

[Code]...

View 2 Replies

C# - Windows Forms Separator Control?

May 16, 2011

Where in VS2010 can I find a horizontal separator control, as can be found in Outlook settings (screenshots below)?[URL]..

View 3 Replies

Forms - How To Capture Cursor And Keep It In A Control

Jan 28, 2009

In my app I have a pause and continue button. I capture the last active control when pause is clicked, change the Backcolor to let the user know where they were, from blue to red and leave the cursor there. What I would like to do without disabling and enabling all the controls on the form is to keep the cursor in the LastActiveControl no matter what until the continue button is clicked. In other words, tab, enter key, mouse click or nothing will make the cursor move until continue is clicked. Sound possible?

View 2 Replies

Forms :: Binding Control To SQL And Updating

Sep 15, 2010

I have controls on a form, bound to an SQL data source. The information populates the control well. When I change the text in a bound textbox, I want it to be reflected in the SQL database. When I change the text in the control, the DataSet is updated. Now I need to make the DataSet update the SQL table.

[Code]...

View 1 Replies

Forms :: Can't Seem To Find A Control In The Toolbox?

Mar 5, 2009

Does anyone know an easy way to produce a "Common Tasks" menu similar to the one in My Computer, Control Panel etc..I can't seem to find a control in the toolbox and it would be insanely useful for the app I'm currently writing.

View 4 Replies

Forms :: Control Form With Scroll Bar?

Apr 23, 2010

my project is school management system. I want to design a form for admission,it has many field so i can't adjust all in a front form so i want to control scroll bar for this solution.

View 3 Replies

Forms :: Control The Load Location Of An App?

Mar 19, 2009

I am developing a windows app in VS2008 to be used along side ESRI�s ArcMap. Most ArcMap users will have dual monitors and I would like the user to be able to choose which monitor my app is loaded on to.

When I deploy the app using the standard install package, the app will load onto which ever monitor the user places the desktop shortcut. However, when using the ClickOnce method of deployment, the placement of the shortcut does not matter and the app always loads on the primary display monitor.

Is there a way to control where an app is loaded by code or any other method?

View 1 Replies

Forms :: Detect F2 Keypress On Any Control?

Sep 26, 2010

I want to detect F2 keypress as a shortcut to show something.. this is like F1 to show help in vb.net.

View 5 Replies

Forms :: Get Events Of Declared Control?

Mar 23, 2009

I declared a browser in my VB.NET project (Dim browse as new WebBrowser). How am I supposed to get to the events (browse_NewWindow) of the declared thing?Oh yeah, my code for my browser is CType(TabControl1.SelectedTab.WebBrowser(1))

View 4 Replies

Forms :: Get Name Of Control At Cursor Position?

Sep 10, 2009

How do I get the name of the (topmost?) control at the cursor position? The background: I implemented drag'n'drop from a dgv to a label and need to identify the control where the mouse button is released. I have enabled dropping on the label where the drop is going to take place. However, this label is the parent of say a hundred labels that are created dynamically in codebehind (I use this way to create a "dataview"). Therefore, I need to know which of these "child" labels the user drops the data onto.

I can get the mouseposition without problems (Me.PointToClient(Cursor.Position).ToString), but as I said, I can't get the name/text/ID of the control the user dropped the data on. Also, I ned to get the child control's name/ID/Text, not the parent label of course.In addition, it seems as if I can't select the row I click on in the dgv anymore, after I implemented the DoDragDrop on the CellMouseDown event. Any ideas? Should I use another event?

View 6 Replies

Forms :: Get The Name Of The Control That Calls The OnEnter?

May 31, 2009

I'm just starting to look at Custom Controls after watching a MS video online. Video Training - WindowsClient.net I wondered if it's possible to get the name of the control that calls the OnEnter event that I am running.

[Code]...

I wanted to add a new combobox to the form and it always call this GetComboList each time OnEnter BUT I need to pass the combobox that the onEnter is firing from. Would save code and give me an insight into how custom controls work.

View 1 Replies

Forms :: Get Value Of Combo Box From One User Control To Another

Aug 28, 2009

i am using vb.net 2005 to developed desktop application ,I am having two windows form user control , the first control name con.vb containing the design and code for connecting to database and getting a list of my project values in combo box.Now the second user control report.vb which i am using to generate some reports , since the code behind is using connection to connect to various project database , so i want to get the value of First user control into another how i can get the i have tried the below but its giving me error in run time but no error in design or code behind [code]

View 4 Replies

Forms :: How To Clear Datetimepicker Control

Apr 2, 2009

how to clear the datetimepicker control?

View 1 Replies

Forms :: MDI Interface With Tabpage Control

Feb 22, 2011

I'm struggling how to set up MDI interface where I have a tabpage control on the parent form. Each individual tab page should act as a parent to multiple child forms but within a tabcontrol there is no IsMdiContainer property like on the form.Is it possible to set a tabcontrol to act as a parent?

View 1 Replies

Forms :: MonthCalendar Control - Can't Set Colors?

Oct 28, 2010

I am using a monthcalendar control in my application to allow a user to select a day from the calendar that will load data for that day. the background is totally white (ugh). there is a backcolor property, but when i set it to say Cyan (yea right), the calendar still displays as white. I also can not set Forecolor, TitleBack/Fore color either.

I have gone to my project properties and turned off the "enable xp visual styles", and that had no effect. turned it back on...cant tell a difference. i am currently on windows 7 running VS2008 Team Edition. It would be really nice to change the look of this control to match the styling of my application.

View 1 Replies







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