|
One small mistake, please add the panel to the tabpage on the paint event of each tabpage
private void tabPage1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
tabPage1.Controls.Add(obj.panel1);
}
private void tabPage2_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
tabPage2.Controls.Add(obj.panel1);
}
|
|
|
|
|
Hello,
You would have to do that dynamicaly.
The TabControl has an SelectedIndexChanged Event.
System.Windows.Forms.Control.ControlCollection oldContainer;
YoureTabControl.SelectedIndexChanged+=new EventHandler(TabControl_SelectedIndexChanged);
private void TabControl_SelectedIndexChanged(object sender, EventArgs e)
{
if(oldContainer!=null)
{
oldContainer.Remove(YoureControl);
}
YoureTabControl.SelectedTab.Controls.Add(YoureControl);
oldContainer = YoureTabControl.SelectedTab.Controls;
}
Hope that helps!
All the best,
Martin
|
|
|
|
|
this is an excellent post
http://sirotiyasanket.blogspot.com/
|
|
|
|
|
Do you know anything more than saying "This is an excellent post" or "This is a very good post"
try to be more creative
|
|
|
|
|
Mal-Functi wrote: Is it possible to place a control (any) that it will be common to every tabpage?
Suppose you have a text box named tb1 on the first tabpage. Now:
If you want to access its value, simply put
MessageBox.Show(this.tb1.Text);
or if you want it to be displayed on each page when the page is selected, then put the following line of code in the tab control's Selected event:
tabcontrol1.TabPages[e.TabPageIndex].Controls.Add(this.tb1);
Hope this helps.
Regards
________________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
I am not getting any option for viewing my own old questions.
Plz help me?
|
|
|
|
|
|
thanks
I got through the link.
Is there any menu in the site?
thanks
|
|
|
|
|
Hello,
Rabindra Patra wrote: Is there any menu in the site?
I'm not sure if I understand what you mean, but if you whant to see your personal datas you have to just click on the Logginname (on the right top of the screen) or at the head next to youre name at the post.
All the best,
Martin
|
|
|
|
|
I want to show a power point viewer embeded in a formwith a specific size. how to do it?
I have used process object and started the process of pptviewer2003 and then using api resized and relocated.
the viewer exe resized and is in the desired position but the presentation is in full screen.
so please help me.
Thanks in advace
Ravi Kumar Patra
|
|
|
|
|
I have a wireless webcam that has its own network on it. I can connect to it using my wireless card, and I can Ping it using the Ping class, but I need to get the data from it. Is this possible at all?
I love to program!
|
|
|
|
|
Hi,
I'm using .NET 1.1 and Visual Studio 2003.
I am writing an application to display a webpage in it's window.
That's all.
I have the following queries:
1. How do I packaged the graphics, html files etc. with my exe?
2. What control can I use to display the web page in the application dialog?
3. Will links work?
Thanks
ASP - AJAX is SEXY. PERIOD.
|
|
|
|
|
this is relly a good posting
http://sirotiyasanket.blogspot.com/
|
|
|
|
|
Hi there,
I hope that every .net programmer knows about app.ico. If not then create a windows application in c# and check out the working folder. You could see such a file there. This file is the picture file that is displayed in the exe file(check out debug folder of your application). Now what i need is, i want to change this app.ico through c# coding. Is it possible for changing the application icon at runtime without re-compiling? When i mention a .ico file, at runtime, this new .ico file should replace the existing default app.ico file and my .exe file in debug folder should also posses this image. How can this be made?
-- modified at 1:37 Tuesday 12th December, 2006
|
|
|
|
|
Hi ALL,
In DataGridView -> Columns -> Column Type,
we can have any one of the following: Button, Text box,
Link, Combo box, check box, image.
But I need to have a list box for one column.
I should be able to select more than one item from the list.
Since it's NOT possible to have multi-select combobox,
I'm looking for a list box in DataGridView column.
Any suggestions would be greatly appreciated.
Thanks in advance,
Sarvan AL
|
|
|
|
|
Hi,
Did you try to add custom template,
you can add any control on the custom template in asp.net control of grid.
Cheers.
|
|
|
|
|
Hi Alper,
Thanks for your interest in replying here.
I'm new to .Net development and looking for this to
develop a C# application. Is this (Adding control on the custom template)
possible in C#? If so, please suggest me some good resources (articles/books)
to explore on this feature.
Thanks once again,
Sarvan AL
|
|
|
|
|
WEll it is in asp.net controls grid,
add a form on to your grid,
right click, select custom column template.
type this in google also : "C# custom column template"
|
|
|
|
|
HI
I want to develop a speech to text module for my project. Could somebody help me and tell how to implement it in C#.
I shall be realy thankful.
Mujtaba
|
|
|
|
|
i am looking for any source code or helping for The Speech To Text in C#...Does anyone help me?
|
|
|
|
|
Hi.
I have a ListView control, which when the user presses keys on the keyboard, selects that item (e.g. the user presses 'k' and then 'i' and it selects the item 'king'). However, if the user presses a key that does not correspond to an item, the control beeps. Is there a way to disable this beep, as the program will be run in an environment where errant sounds like this are a major problem.
Cheers
Jacob
|
|
|
|
|
Link to the thread that is already active, instead of re-posting the same question everywhere.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
I am trying to figure out how to copy a selected image from
an AxWebBrowser to a RichTextBox.
I can get selected text no problem, but I can't figure out how to get an image.
Any help would be appreciated.
|
|
|
|
|
This is a really weak question but I have hit a brick wall. Bear in mind I have been playing with c# approx 6 wks.
I am writing a project and would like to link a dataset to a sql database. I would like to use the northwind database supplied as default.
I am sat in form1 and I open the toolbox. I scroll down to the data section. There are no sql controls there. I get pointer, dataset, datagrid, binding source, binding navigator, and report viewer but nothing else. I expect the sql stuff (eg. sqladapter) to be there by default.
Do I need to enable anything to see the sql controls? I am using VS2005 BTW.
|
|
|
|
|
all you need to do is reference the namespace
using System.Data.SqlClient; at the top of your form. I would also recommend using SqlDataAdapter to fill your DataSet.
More Info:[^]
Hope this helps.
Don't be overcome by evil, but overcome evil with good
|
|
|
|