Hi all, I have a TabControl into which, at runtime, add a tabpage and a control to the tabpage created. I know how to create a tabpage. But I cant figure out a way how to create both at runtime. Thanks in advance, Yuvjeeth

Member Avatar
Member Avatar
+0 forum 3

Me.ToolStripMaintenance.Font = New **System.Drawing**.Font("Bookman Old Style", 9.0!, **System.Drawing**.FontStyle.Regular, **System.Drawing**.GraphicsUnit.Point, CType(0, Byte)) Me.ToolStripMaintenance.Image = CType(resources.GetObject("ToolStripMaintenance.Image"), System.Drawing.Image) Me.ToolStripMaintenance.ImageAlign = **System.Drawing**.ContentAlignment.TopCenter Me.ToolStripMaintenance.Name = "ToolStripMaintenance" Me.ToolStripMaintenance.Size = New System.Drawing.Size(90, 70) Me.ToolStripMaintenance.Text = "&Maintenance" Me.ToolStripMaintenance.TextImageRelation = **System.Windows**.Forms.TextImageRelation.ImageAboveText heres a sample of my code with those error, can u help me identify what to do to avoid that error thanks for answering Godspeed More Power

Member Avatar
+0 forum 0

I have a form containing a tab control, which itself contains five tab pages. These tab pages contain lists, textboxes, and other controls that I update when the user enters the relevant page. One of the tab pages contains a textbox which I fill with information from an external text file. This information is a 'log' of changes made to documents sorted chronologically so that the most recent change is found at the bottom of the log. When the user enters this tab page, the textbox is filled with information from the external text file (it does this every time …

Member Avatar
Member Avatar
+0 forum 2

I have been searching and having no luck...So anyway, what I need is a way to copy tab1's controls or items (like textboxes,datagridview etc) and then have them pasted into a new tab. This would be done through a "New Tab" button. When that button is pressed, a new tab will open up and it should have all the same items that tab1 has. thanks for any help...

Member Avatar
Member Avatar
+0 forum 1

hi am using a tab control. in which i have already 3 tabpages. now the problm is that when the form is loaded the first tabepage must be enable while other will be disable to access untill i press the button that first tabpage is contain. is their solution for my problem. m waiting for reply.

Member Avatar
Member Avatar
+0 forum 2

hi all, i am writting an interface with dotnet framework 3.5, i am using a tabControl with a TabPage that contains content bigger then the tab. autoScroll is enabled and works, the problem is that while scrolling the contents of the tabPage dont refresh/Update so i cant tell where im scrolling to. is there anyway to refresh its contents while scrolling? thanks, mono

Member Avatar
Member Avatar
+0 forum 6

I'd like to print preview and print 3 tab pages from a windows form. Below is my code. I was able to get it to work if it's only one tab. but not 3 tab pages. [CODE] Imports System.IO Imports System.Windows.Forms Imports System.Drawing Imports System.Drawing.Printing Public Class Results Dim bmp As System.Drawing.Bitmap Dim bmp1 As System.Drawing.Bitmap Dim bmp2 As System.Drawing.Bitmap Private Sub PrintToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PrintToolStripMenuItem.Click PrintDialog1.Document = PrintDocument1 'PrintDialog associate with PrintDocument. If PrintDialog1.ShowDialog() = DialogResult.OK Then PrintDocument1.Print() End If End Sub Private Sub PrintPreviewToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Member Avatar
Member Avatar
+0 forum 2

I've been looking all day for a way to somehow save a TabPage containing runtime-added images and controls (the user can move them in the TabPage) so that they can be used later. I tried using serialization but it seams that you can't serialize interfaces. I'm using a SqlCe database but I couldn't find a way to store it there either. Can you please point me in the right direction? Thanks in advance.

Member Avatar
+0 forum 0

I'm relatively new with VB.net, so please bear with me... I have a tabpage with 28 textboxes in it. These textboxes will be loaded with data and maybe changed. There is a Save button on the form that will take the data from these textboxes and save them in a SQL database. Right now it saves EVERY time, regardless of what is in the textboxes. I want to save this data ONLY if there has been changes. Is this possible? If it were a dataGrid, a simple [ICODE].HasChanges[/ICODE] could be used, but this is textboxes. Because they are in a …

Member Avatar
Member Avatar
+0 forum 3

I am using Visual Studio 2010, this should apply to any version of Visual Studio running a version of .Net with TabControl and TabPage. I want to create my own tabpage that I can add to a tabcontrol. I have tried creating a new class where I inherit System.Windows.Forms.TabPage but when I open the designer there is just a window that says "To add components to your class, drag them from the ToolBox and use the properties to set their properties. To create methods and events for your class, click here to switch to code view." I have tried both …

Member Avatar
+0 forum 0

The End.