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

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

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'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

The End.