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


ADVERTISEMENT

Changing Child Forms Control Box Position?

Apr 6, 2009

Well I'm not sure how to describe it so i uploaded an image that has 2 different control box positions.

[URL]

The one on top is set up as Render Mode=System while the other image is set up as Render Mode= ManagerRenderMode

Both applications were developed in VB using VS2005.

Each one has its MDI container and their MainMenuStrip set up..

What property/reason would be causing this? I just created a test program simulating the same case (MDI container with child forms) and everytime i maximized the control boxes appear in the correct position.

View 2 Replies

Forms :: RichTextBox - Changing Font Size Without Changing Families And Styles

Sep 21, 2010

I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:

[Code]...

View 5 Replies

Forms :: Changing The Backcolor Of A Control When It Has Focus And Lost Focus?

Feb 16, 2011

Is there a more efficient/easier way changing the backcolor of a control when it has focus and lost focus? Let's say I've got 10 text boxes. Right now I would have 20 different events...10 for Enter event and 10 for Leave event. Of course, entering would change the back color to "green" and leaving would change it back to "white".

[Code]....

View 4 Replies

Control Size Changing According To Forms Size?

May 11, 2009

I am after a property that makes a control (textbox, datagrid or other) move according to the forms size. Because some of the controls I got does that, and I really don't want it. I've been looking at them but could not find it

View 4 Replies

VS 2008 Adding A Method To All Forms Existing Forms Without Changing Their Code?

Jul 28, 2009

just wondering if it is possible to add a method to all forms in my project without having to do it on one form and Inherit all my other forms from that one

View 3 Replies

VS 2010 Changing Control Parent Property Changes Control Location Position?

Feb 16, 2011

I'm trying to make a program with transparent labels over pictureboxes and when I set the label Parent to the PictureBox the position of the label changes.

View 2 Replies

Changing The Border Of Forms?

Dec 7, 2010

how I could go about Changing the border of my Forms and the title bar of the forms. I would like to change it globally so that it would take effect on all my forms.

View 3 Replies

Forms :: Changing Data In An Xml Tag?

Jun 8, 2012

I have the below code that can change the data in one XML tag. This is what I want,however, I want it to change all the XML's in a complete directory:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim MyXML As New XmlDocument()

[code].....

View 1 Replies

Objects Set To Nothing After Changing Forms?

Dec 19, 2010

In form frmAddPlayers I declare and create an array of pictureboxes in the Load event using the code:

Dim
pbxPlayerJoined(7) As
PictureBox

[code]....

In the watch window the value of the pictureboxes is System.Windows.Forms.PictureBox. Later in the load event I start a background worker in form sfrmUSBDevice using the code:

sfrmUSBDevice.sReadWriteThread.RunWorkerAsync()

The background worker waits for user input and then calls a subroutine from form frmAddPlayers. The subroutine changes the image in the picturebox to indicate that the user input has taken place. However when the debugger returns from sfrmUSBDevice to frmAddPlayers the watch window shows that all of the pictureboxes have a value of nothing. Then when I try to change the image of the picturebox I get an "Object reference not set to an instance of an object" exception. It seems like when the debugger goes to the sfrmUSBDevice form and comes back to frmAddPlayers the objects on frmAddPlayers have lost their information.

View 5 Replies

Changing Forms Title At Runtime?

Oct 9, 2011

I'm trying to change a forms title at runtime where it = my textbox's text. But I can't even get it to change to "test". When I try to google it, it comes up with vb6's
.caption = "test".
When I try to search it on the forum, it gives me a error message saying:
"Error 502 Bad gateway"

View 10 Replies

Changing Visibility Of Objects Without Using MDI Forms?

Nov 26, 2009

Currently my program randomly removes words from a set of text and inserts textboxes below the text. The user can then enter his/her answers in the new textboxes. What I would like to do is set the program so the user can have two choices one being Easy and other being Advanced. Then when the user hits either button it brings up everything that is currently on the form. I'd prefer to do this without having to use MDI forms. I've had a hard time using the MDI forms and therefore would like to avoid using them. They way I was thinking this could work is all objects would remain invisible except for the 2 buttons and then when you hit one of them they disappear and everything else appears.

View 1 Replies

Does Changing Forms Start A New Thread

Feb 17, 2012

I have a basic form which call functions on a numbers of different forms up to (30), Do these functions run in parrallel, or are they run sequentually.Each function as present calls for disk access, if the threads are running in series, this will present a considrable relay, this is not acceptable.

View 10 Replies

Forms :: Changing Font On A Text Box?

Jul 25, 2010

am writing a program in vb.net 2008 ... I want the user to be able to change the font on a different form, however any code that I try and write comes up with the error code property is read only.. I hope I have given sufficient detail... oh one more thing I am trying to use fontdialog from the tool box.

View 14 Replies

Forms :: Changing The MonthCalendar Size?

Sep 18, 2008

is it possible to change the size of the MonthCalendar to say double its standard size and still only display a single month?

When I resize using clientsize, width and height the multiple months are displayed?

View 7 Replies

Forms :: Changing The Time Looks On Form?

Dec 3, 2011

after adding 3 hours from the local for the 3rd timer, how can i get it to look like timer2 once i debug?PrivateSub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = TimeOfDay.UtcNow.ToString("dd/MMM?yyy HH:mm:ss")

Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
Label2.Text = Date.now.tostring("dd/MMM/yyyy HH:mm:ss")

below once i debug, it gives me, 07:07:15 AM i don't want that, i want it to show like the others?PrivateSub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Label6.Text = Now.AddHours(3)

View 2 Replies

Track Bar Changing Transparentcy Of Forms?

Mar 24, 2011

On my program I would like a track bar to change the Opacity of certain forms. There is a checked list box so if the user checked the main form and some other forms, boxes and used the track bar to change the Opacity of those forms. If the user uses the track bar and goes right it will increase the Opacity and to the left decreases the Opacity. Then when the user is all done He/She will press the Apply button to apply the changes of the Main Form or Forms.

View 11 Replies

Forms :: Changing File Names Throughout Directory?

Aug 25, 2011

I think it was Joshdbr) a long time ago a directory rename program. However, I need help changing this to a file rename program. Our work directory will have a root folder, subfolder and .tif images:

Root
subfolder
22_38839283_939393939.tif
33_23343423_432232434.tif
subfolder
34_34342343_234245252.tif

[Code]...

View 2 Replies

Forms :: Changing ToolStripItem Text Dynamically?

May 10, 2010

I have a ContextMenuStrip attached to a TextBox

Dim TelTBMenu As New ContextMenuStrip
With TelTBMenu
.Name = "TelTBMenu"

[Code]....

Whilst the form is loaded this runs fine twice, but then although the Setting boolean is reset the ToolStripItem text remains unchanged unless the form is re-loaded.

View 2 Replies

Forms :: Controls Changing Size For No Reason?

Apr 20, 2010

My program has two lists, one a listbox and the other a listview viewed in details mode.

Both of them change heights (get taller) for no obvious reason. I am having to add a call to a method that resizes them to the end of every method, which is kind of absurd, I think. Also, when the window size is changed, these components change size, which means I have to keep track of that.

Edit: I had also thought of adding a timer to handle this.

View 15 Replies

[2008] Changing Between Forms While Running The Program?

Jan 31, 2009

I recently started out using Visual Basic, and I've run into a problem.I need to be able to change between my two forms when I run my program, however since I'm still rather new at this, I've been unable to figure out a way to do this.

View 8 Replies

Forms :: Changing State Of Label Depending Upon Two Checkboxs?

Aug 7, 2010

I have added two checkbox controls chkBox1 and chkBox2. What I want to do is that when both the chkbox are same meaning checked or unchecked the label should be On and if both are not same label should be Off.

[Code]....

View 17 Replies

Forms :: TreeView - Changing Download Link For Button

Oct 18, 2011

I am working with buttons I have A treeview that when you click on a node it changes the text in textboxes and I need it to change the command the button does. So when a user clicks a node it changes text in 3 text boxes and changes the download link for the button. As you can see from the code all works fine but I need to use a button to download stuff and I dont know how the download code is

My.Computer.Network.DownloadFile _
("[URL]", _
cookiepack)
MsgBox("done")

That's what I need the button to do
Private Sub TreeView1_NodeMouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles TreeView1.NodeMouseClick
Dim filePath As String
filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
[Code] .....

View 5 Replies

Changing A String To A Control?

Dec 1, 2010

I am reasonable new to programing and have ventured in to using VB.net after creating macro's etc in excel, as this seemed to be the easiest transition into the world of programing.I am creating a application to work with an access database and before I submit the forms textboxs to the database, I check to make sure each field is filled in and if it isn't then I highlight the field by changing the label back colour to orangered.

What I have is a bunch of textboxes and a label above each saying what the field is. so for example the textbox name is txtBox1 and its label is lblBox1, txtBox2 - lblBox2 and so on.So what I thought I would try and do is, as the user leaves the txtBox after editing, the label background colour would be changed back to transparent.

As I have multiple txtbox's I thought I could do this using sender to get the name of the txtBox on leave, strip the first 3 letters txt and change them for lbl cast it as a label, then change the background color but I cant seem to convert my string to a label control. can someone help me with what am i missing or not doing.

[Code]...

View 5 Replies

Changing The Orientation Of A Win Control?

Dec 2, 2009

I need to allow the user to rotate a control (the control inherits from a TextBox) in 90 degree increments so the text can be read from either side, or even upside down.

I'm guessing I could override the control's paint event and just paint it in the orientation that I want, but I'm just wondering if there's a quicker/built-in way?

View 1 Replies

Changing Value Of A Control On Report?

Feb 2, 2011

I have added a few text boxes to my report in MS Datareport.I want to assign value from my variables to these controls.how to access and address these controls.In VB6, I could simply do it in the code part of the data report.

View 2 Replies

Forms :: Changing Measurement Units Of Form To From Pixels To Twips

Jan 19, 2010

Is there any way so that i can set the measurement unit of a form from Pixels to Twips?

View 5 Replies

For Next Loop Control Order Changing?

Feb 13, 2009

I Have a VB.net form with lots of controls to save as config: textbox, radio button, check box... but these a Scatered inside tabs, panels, groups..

View 4 Replies

IDE :: VS 2008 - Controls - Changing The Look Of The Control?

Oct 26, 2010

I'm trying to change the look of some controls in VB.An example would be a button, I now have a stack of 4 images on top of eachother. By using the mouseover events and such, I get the same result as a normal button. However, I'd like to be able to insert those images into a normal button like thing.

I know it's possible to do this by creating a custom control, but that'd end up with the exact same code, just in a different file.

However, the real issue would be a dropdown box and slidebar. I'd like to get them to look nice with my theme. (Background, buttons, borders. Things like that..). I got absolutely no clue on how I should do that.

I know that there's a tool to create controls, but that's from scratch and I can't get a grip on it, at all.

View 10 Replies

NotifyPropertyChanged Not Changing Bound Control

Feb 15, 2011

I have a property declared like this[code]...

I am trying to get the button to be enabled/disbaled based on the property. The properties value changes fine, but it's not updating the button's IsEnabled property.

View 3 Replies







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