|
hi,
I want to create a tab control in my application using with xml.
each tab links to separate pages.
give me one example
baski
|
|
|
|
|
Then add a TabControl to your form.
Other than that, you haven't given near enough detail in your question to help you with anything else.
What does XML have to do with a TabControl?
What do you mean by "each tab links to seperate pages"? This is the normal functionality for a TabControl.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
Once you go through this site
http://timothyhumphrey.name/thwc/mainmenu/stabs.aspx
this site having 4 tabs in a page like File, Edit, View etc.
if u click on any tab without postback its opened, i want also like this.
The tab pages are implemented as div elements with their display style property set to none; except for the first page.
what i am expecting is, For Example, one parent window like home.aspx, in this form we display the tab control like File, Edit, View... If i Click the File Tab, open the File.aspx page insides the Home.aspx parent window.
If i click the Edit tab open the Edit.aspx page insides the Home.aspx parent window like this....
baski
|
|
|
|
|
You didn't mention you wanted to do this in a web page.
This is done using style sheets and JavaScript. All you have to do is view the page source (under the browsers View menu), an examine the code to find out how it's done. This is done entirely in client-side code.
There's nothing in C# and ASP.NET that will allow you to do this without a postback. ASP.NET is a server-side ONLY technology that generates HTML for the browser, with a little JavaScript to handle posting back to the server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi All.
In my application i have allot of Button.
Some of my button are invisible and the user cant click on them.
I check some key in the registry and turn on\off the not relevant keys.
But i have some problem....i don't want to create all the button and then run in the code on the button and turn off the not relevant button...i want to create them in run time.
The only thnk that i will know about the button is the string that will be writing on them.
The problem that i have is :
How can i catch the event of click button in run time in this case (the button are not exist in compile) ?
Thanks for any help.
-- modified at 6:46 Saturday 3rd December, 2005
|
|
|
|
|
Just add the following code into the block where u r creating the buttons dynamically:
this.ButtonName.Click += new System.EventHandler(this.ButtonName_Click);
After that u can define the function:
ButtonName_Click(object sender,EventArgs e)
Sandeep
+919891027854
|
|
|
|
|
i want to know the path where this .exe located.
ofcourse most of user set path c:/program file and the software's folder.
but if it is else where then what ?
so i want to know location of exe and then start that exe using Process.strat.
Thanks
Prakash Paghdal (prakash_paghdal@hotmail.com)
|
|
|
|
|
Hi Prakash,
If I got it right ,then you are probably talking about the path set by the user for installing a software in this case your .exe.you will get the location of all the assemblies being installed by the program under the HKLM\SOFTWARE\Classes\Installer\Assemblies registry key.Iterate through all the keys and check whether the name of any subkey ends with "app.exe" where app.exe is the name of your .exe file.The seperator used in the name will be "|" .so don't forget to replace it with "\".Hope it Helps.
Rakesh
|
|
|
|
|
I have one thing to say:
System.Windows.Forms.Application.ExecutablePath
|
|
|
|
|
You can also use System.Reflection.Assembly.GetExecutingAssembly().Location or GetName().CodeBase
|
|
|
|
|
How I can implement the username password form in windows forms application in C#......
Thanks,
Sandeep
+919891027854
|
|
|
|
|
Hi Friends,
I am developing scheduler application using C#. In my application i have provide the list view control for displaying the scheduled items. The listview control having the following columns.
Schedulename
ScheduleFilename
Time to Start
Time To Finish
Status.
Sometimes if the user give the filename as very lenghty, then the appearence of the filename in the listview column is not good. (ie., it is not fully displayed the filename.. only displayed the partial text). For that i have planned to provide the Tooltip option for the each column when the content of the particular column become lengthy. But i don't know how to provide the tooltip option for each column. Please guide me how to do this.
Regads,
Prakash.
A Journey of thousand miles must begin with a single step.
|
|
|
|
|
Hi
I am using mshtml for html editing in my WinForms application. How can I place a restriction on number of characters that can be entered in the mshtml?
Any help is appreciated.
-Nilesh
|
|
|
|
|
We have an application where we use mshtml for html editing. However we are facing an issue at the moment with the validating event. We have a text box control and an mshtml control side by side. We perform our validation (via causesvalidation property) on textbox if its empty. The strange thing we have seen happening is that validating is not fired if the textbox looses focus to mshtml control but is fired for all other standard .net controls.
Any clue how I can get around this? I don't want to use lost focus of text box as that gets fired at various places and I do not have the ability to cancel the event which is something I get with Validating.
Thanks for your help in advance.
|
|
|
|
|
hi,
I am using Visual Studio 2005 . I want to resize controls at runtime in C#. Please help me!
Thank you
|
|
|
|
|
In case the control is button ,
this.button1.Size = new Size(Width, High);
|
|
|
|
|
I want to resize controls like the way in Design View of C#. That's all.
Thank you
|
|
|
|
|
hi to all
how read a cell from dbgrid witch it binds with a table?
thanks
-- modified at 8:38 Thursday 12th January, 2006
|
|
|
|
|
is it possible to add bit maps on menu items in c# windows applications?
if yes please give mathods.
|
|
|
|
|
Hi there,
Sure. You'll get a lot of this stuff by do quick search from this site
below is just one of them Image Menu Item
<< >>
|
|
|
|
|
how can i develop elliptical (or in other shapes) puch buttons just like
windows application form push buttons using C#?
|
|
|
|
|
Hi there,
You can develop your custom button control by writting your own control class that inherits from the standard button class System.Windows.Forms.Button and then you have to override the method OnPaint to paint your button
protected override void OnPaint(PaintEventArgs e)
{
//code to pain your button here
}
Hope this helps
<< >>
|
|
|
|
|
how can we use win32 api functions from C# windows applications?
?
|
|
|
|
|
Hi there,
Just simply declare the API function that ur application want to call
in ur application, should be something like
[DllImport("User32.Dll")]
public static extern void GetWindowText(int h, StringBuilder s, int nMaxCount);
that means GetWindowText is an API in User32.dll. Then, call it if needed.
<< >>
|
|
|
|
|