|
yes, I'm using windows form.
But I don't want to dispose the second form. Just bring the 1st form to the front and make one of the tabpages active. How do I do this?
|
|
|
|
|
if u r passing string parameter from form2 to form1
then u can activate tabpage in following way
first u recieve string parameter in the constructor of form1
then try following codes in constructor
foreach(TabPage tb in tabControl1.TabPages)
{
if(tb.Text==recieved string)
this.tabControl1.SelectedTab=tb;
}
rahul
|
|
|
|
|
Hi,
What is reverse engineering and is that possible to reverse engineer now?Will it not an inefficiency?
Let me know the answer!
Thank you!
Deepa!
Be the Change you want to See!
|
|
|
|
|
Reverse engineering is examining a product and recreating the engineering documents (plans and/or code) from that examination.
This is typically done with the unique aspects of a product (the bulk of most products can be created using standard knowledge. For example, you don't need to reverse engineer menus or most dialog boxes in software since how to do them is quite obvious to an experienced developer.)
Another form of reverse engineering in software is to decipher, or crack, formats for data streams, databases or other forms of I/O, often so another program can import the data to its format.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi!
Ever thought about searching here[^]?
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Dear all,
i want to make cashier program so,
how i can read product barcode's from scanner using C#?
thanks
plz help me
A.shawky
-- modified at 4:33 Thursday 25th May, 2006
|
|
|
|
|
Depends on the scanner. There are types that get plugged in between the keyboard and the PC. In that case, the scanned information appears (to the PC) to have been typed in really fast. In that case, you'd handle scanned information the same way you'd handle typed information.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Hi,
i want to display all folder and subfolder of MS outlook in Treeview control so if any sample is available here than reply
For Oriensoft Technologies Pvt. Ltd.
Govind Yadav
Software Developer
E-mail: govindy@oriensoft.com
Tel: +91-22-67111555 Fax: +91-22-67111666
24 x 7 Support & Sales Toll Free : 1-800-22-5171 (India Only)
Web : http://www.oriensoft.com
|
|
|
|
|
Hello,
I want to write some function header, variables, property header as remarks so that while using the function or variable we should be able to see the comments. These comments should be displayed with intelliscence whenever we highlight it.
I wrote these comments in between the XML tags but it does not display the comments in intelliscence.
Is there any settings i need to do.
Please help!
Thanks You.
Gajesh Mangal
Pune(India)
-- modified at 2:28 Thursday 25th May, 2006
|
|
|
|
|
Hi,
You do like this it will come:
private int testFunc(int a, int b)<br />
{<br />
return a+b;<br />
}
Hope this will help.
Best Regards,
Apurva Kaushal
|
|
|
|
|
You need to run something like this:
/// <summary>
/// Function description.
/// </summary>
/// <param name="param1">function parameter.</param>
/// <returns>Result of function.</returns>
function MyType MyFunc(ParamType param1){
}
Best regards, Alexey.
|
|
|
|
|
Thanks Alexey
Actually i did in the same way as u explained.
I am writing a class library and this library will be used by somebody else.
I want that whenever the functions are displayed in intelliscene the remarks should be appered when these functions are highligted.
for fg. when i convert int var to string using ToString(), i got remarks like "returns a system.strings that represent the current system object".
I want my messages for the functions to be displayed whenever they are accessed.
So is there any settings i need to do or something else.
Thanks.
|
|
|
|
|
i have a table named customers (in sql server 2005). from this table i want two fields in my application (customerId and customerName) to be displayed in the combo box.
in visual basic form2 combo it is possible. but i don't know how it could be done in v c#.
thanks in advance for solving this problem.
|
|
|
|
|
i don't know the combobox string like this"001 littlefinger" is what you want.if so you can do :
foreach(datarow dr in ds.tables["customers "].Rows){
this.comboboxname.items.add(dr[0].tostring() + dr[1].tostring());
}
|
|
|
|
|
Just seperate columns with space
<br />
this.comboboxname.items.add(dr[0].tostring() + " " + dr[1].tostring());
|
|
|
|
|
Search the articles here, there are plenty of custom controls you can use: Search for combobox and multicolumn[^]
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
Hi,
I have an Activex control with VARIANT* parameter type. I want to pass an Array from CSharp how can i pass it.
|
|
|
|
|
|
|
Oh sorry I was answering to another message, mistakenly typed this text here.
I applogise.
Saqib
|
|
|
|
|
I am fairly new to .NET and C#, and on a very steep learning curve, so if my terminology is a bit off I apologise.
My perception is that click events on a button contained within a toolbar are processed differently to click events on a button clicked on the form body. In the case of a form body button the control with focus, when the button is clicked, receives messages via it's delegate event methods. However, in the case of a toolbar button being clicked, the control with focus receives no messages as far as I can tell - not even a LostFocus message.
Could someone tell me where this is documented - I don't care that it is different, but I do care about the dearth of information on this sort of issue.
Regards PhilD
BTW thanks to all those who contribute to this site, I hope I can reciprocate in the not too distant future.
|
|
|
|
|
There are many tutorials available to you both on Code Project and elsewhere on the internet.
From the Arab American University portal, [^] you can download these e-books and read at your leisure. The site is a bit slow.
For tips you can download (ASP.net and Winforms) you can visit http://www.syncfusion.com[^]
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Thanks Richard - not sure what your expectations are but I just dl'd a weeks reading in a few minutes from AAU
Rgds PhilD
Oh I also believe that the ControlCollection Find method on a form does not find toolstrip controls, but it does find controls imbedded in other things like TabPages- the searchallchildren argument is of course set to true.
|
|
|
|
|
I've never used a ToolBar object (I usually go through the hassle of making my own toolbars), but, after glancing at MSDN's documentation, it seems it would be pretty easy. The ToolBar has the ButtonClick event, and the ToolBarButtonClickEventArgs object tells you the index of the button clicked (with which to use switch). That seems to me like plenty of information to be able to act on clicking the different buttons.
-Daniel
Typing too fast fro my owngood
|
|
|
|
|
Daniel,
The issue is not the processing of the click event on the button itself, but what events the control with focus experiences when the toolbar button is clicked. With form body buttons the control with focus can detect that it is losing focus etc - I can't recall the exact sequence but it's something like Leave, Validating, Validated, LostFocus - however with toolbar buttons the control with focus seems to experience no events whatsoever, when such a button is clicked.
Rgds PhilD
|
|
|
|