Change Tabpage Text At Runtime
Sep 4, 2009I tried to change the toptext of my tabpage and the title of a groupbox with the following code.
View 4 RepliesI tried to change the toptext of my tabpage and the title of a groupbox with the following code.
View 4 RepliesI Try so many times to change TabPage Size and Form Size when I shif from One TabPAge to another, This because every TabPAge consist of defrent volume of control which need to enlarge and reduce the size. But I couldn't make it.
View 2 RepliesI'm an absolute nebwie, trying to create a program for at work. It is supposed to become a logging program to log certain events. These events have to be recorded in input fields.
[Code]...
Been searching a trying examples for a couple of days and always fall back to the "null reference" error on this one. I have a set of instructions coming from a SQL database and the number of instructions is a variable. Therefore, I have a TabControl which I add TabPages to at RunTime depending on the number of instructions there are. The TabPages are then created with the names; Step1, Step2, Step3, etc.Each TabPage is made with the same controls and all of the controls are named the same from page to page (e.g. "instr" is the name of a TextBox control that exists on every TabPage).I can successfully create a GetControl method that will return the correct TabPage, but I cannot reference any controls on that TabPage.I can only change properties of the TabPage.If I try to reference a specific control on that TabPage, like the "instr" TextBox control, I get the null reference error.[code]
View 9 RepliesI'm having a lot of trouble trying to add a new control to a dynamically created TabPage at run time, I have viewed many threads with similar help requests and cant seem to make the codes work!
Here's what I've got:
Dim albumscount As Xml.XmlNodeList
albumscount = config_doc.SelectNodes("component/config/menu/album")
i = albumscount.Count - 1
Dim albumtitle As Xml.XmlNode
[code].....
I have an application where the tabpages are created at runtime and the forms are docked into the tabpages as controls. Now I want , a right click on the tab to ask the user whether he wants to undock the form as a seperate window. Is this possible
View 1 RepliesPublic Class Form1
Private cbox As New ComboBox With {.Location = New Point(50, 0), .Size = New Size(50, 20), _
.DropDownStyle = ComboBoxStyle.DropDownList}
Private lv As New ListView With {.Location = New Point(0, 30), .Size = New Size(150, 50)}
[code]...
Just a quick question, using Visual Basic 2008, is there a way to change the text of a forms buttons and other objects during runtime so that the text sticks no matter if the form is closed and reopened or not? I can get the text to change, but after closing the window and reopening, the text resets. Is this possible?
View 2 RepliesI have tabpage1.backcolor = black and that doesn't change the color of the tab itself.. the tab is still gray.. How do you change the colors of the tabs themselves?[url]...
View 1 Replieshow to change the tabpage selected of the tabcontrol by using normal buttons (like button1, button2,button3 and so on). I don't want to use the ugly default buttons at the top of the tabcontrol to change it.
View 4 Repliesi'm using windows application ,i just want to know how to change the tabpage size when click the tab.
View 4 RepliesI am trying to display an usercontrol(has several panels one on top of the other panel) on tabpage. I am using below code to achieve this.
[Code]...
I am using System.Windows.Forms.TabPage to store an entire TabPage for later use in My.Settings. Here is a brief description of the application.
I have a TabControl that has 3 tabs. One for user input, another tab for equipment settings, and then a final tab for Oven settings. On the user input tab, if the user de-selects the checkbox for Oven, the oven tab is saved to My.Settings and hidden.
I can then run the application without oven control. After running, lets say the user would like to re-run, this time with the oven. They go back to the input tab and re-select the Oven checkbox. However, the Oven tab doesn't re-appear. When stepping through the code, the is nothing stored in My.Settings for the oven tab page. Why not?
Also, I can open the application, and check, then uncheck the oven checkbox and the tab is hidden, then returns. I can do this all day. However, after running the tab will not return.
How To Put An Image Beside The TabPage's Text Just Like a Favicon in Browser ?
View 2 Replieshow to get the text in a richtextbox inside a Tabpage. I have a TabControl in my form. The Tabpages and the Richtextbox inside of it is created during run time. The name of the the tabpages are called tab ,which is the same as the other. The name of richtextbox
inside the tabpages is RTB. How can I access the content of the Richtextbox that is selected or the tabpage that is selected.
I am having on accessing the content of the RTB when many tabs are created. Even the first tab is the one i select, the last tab is the one that i access even it is not selected. I have the code TabControl1.SelectedTab = Tab
In Vb.Net 2005, how is it possible to make the TabPage.Text to appear when the DrawMode of a TabControl is set to OwnerDrawFixed. I have even tried to set the TabPage.Text in the Form_Load event but of no avail.
View 1 RepliesIn Vb.Net 2005, how is it possible to make the TabPage.Text to appear when the DrawMode of a TabControl is set to OwnerDrawFixed. I have even tried to set the TabPage.Text in the Form_Load event but of no avail.
View 1 RepliesIn Vb.Net 2005, how is it possible to make the TabPage.Text to appear when the DrawMode of a TabControl is set to OwnerDrawFixed. I have even tried to set the TabPage.Text in the Form_Load event but of no avail.
View 1 Replieswinforms .net 3.5 Ultrawingrid 9.2 In my subclass of Ultrawingrid.Ultragrid :
[Code]...
This works fine. But when the grid is dropped on a TabControl tabpage, the ctrl-tab looks very different to the sub above. e.keycode is seen as controlkey {17} I realize that by default cntrl-Tab moves between tabpages. I need to override this behavior. My thought is I probably need a subclass of the tabControl which will pass the keycombo through just as the form does but I confess to being clueless as to how to accomplish that. I tried to override the onkeydown of a tabcontrol subclass and just issuing a return and not and base call to onkeydown if the ctrl-tab combo was pressed but it seemed to see the e.keycode as controlkey as well.
[Code]...
I'm writing an application for a device running Windows XP. There are 2 versions of the device and each version has its own API to communicate with the device's software. The application I'm writing needs to pull the same data from the API. My question is how to write a application that will detect at runtime which version of the device it is on and use the appropriate API.
I've created an interface containing all of the common methods and also classes for each device that implement the interface. Now I need to know how to activate the correct one at runtime.
Public Interface IAPI
Sub InitializeMachine()
Function GetActiveProgram() As String
[Code]....
But my application sometimes needs to acces the registery for some special functions and is there a way to change the permisssion on runtime to 'requireAdministrator' with a button or something?
View 2 RepliesI am trying tp update app.config setting on button click.But I am still not able tp update the settings.Here is the code
Dim config
As Configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None)
[Code].....
I have an application that connects to a database on sql server. I want to make it possible to use another database that has the same structure as the one im using now (for example accounts2007 and accounts2008).
There is a form for login where user have to choose the database that he wants to use.
i have created a builder and stub [URL]
Can i change the icon of the created object. not at the form the icon at exe that you can change under my project.
So with this method can i send text to the other app...any one know how to change icon....
Can i upload a resource at runtime?
[Code]....
Now i am using iframe.attribute("src")="..Pages/page.aspx"....In Chrome and ie this one is working.....but Firefox not?
I'm writing a Windows form application. I created a SQL database called myDB.mdf. The database/form connection was created using the wizard provided by VS2008. The connection string, table adapter, dataset, etc were all generated automatically. In runtime, I copied the database to several folders and I want to the application to connect to them one by one and do some data manipulation.
Here below are the relevant code I'm using:
Namespace My
Partial Friend NotInheritable Class MySettings
Public WriteOnly Property RunTimeConnectionString() As String
[Code].....
I create project in my pc with vb.net and sql database when i tried to run this project to another pc there is error occurred that the connectionstring has not been initialized. I really troubled this from last one week to solve the problem. how to change the connectionstring on client pc at runtime or any other way to create a connectionstring that has auto detect in any pc where the program is installed.
View 5 RepliesI have done this below program keeping the picture box property dock=None.And the below code works fine.
Imports System.Drawing.Drawing2D
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[code]....
i.e Dock=Fill And i stretched the form in the design mode... now the circles in the image are not proper...I want my program to work with the Dock property set to Fill?
I have multiple urls to the same webservice, each with it's own "token". I need to switch from one url to another during runtime. I have planned to do this by storing my URLs inside a XML-file, and then read it, copy innertext of an element and overwrite the WS url in my app.config. My app reads and write to xml just fine, it is when I actually use a method from the webserivice proplems start to appear.
[Code]...
I am creating a program that will be sold as a subscription. I am trying to decide how to prevent users from passing the program to others without purchasing it. I was thinking that on the very first run, the program could pull the MAC address from the computer it is run on, and create a constant at run time. This constant is then hard wired into the program and is used for comparison every time the program is run thereafter. If the MAC address do not match, it is on a different computer.
How do I recompile my .exe to include a globally declared constant used for comparison? And how do I use this variable throughout my program?Or is there a simpler way to create my program to require Key Codes for renewal once per year?