|
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
|
|
|
|
|
Hi..
can anyone help me figure out the algorithm for the following problem:
Consider a = {a , a , a ,...., a } //random values within set a
----------i----0--1---2-----n //these are the sub values
also
b = {b , b , b ,...., b } //random values's within set b
-i----0---1---2------n //these are the sub values
And
S = a + b
-i----i----i //these are the sub values
Find an algorithm O(n), that can return the n largest number(s) using c#..
Thanx soo much in advance..
Elie
|
|
|
|
|
Eliee wrote: Find an algorithm O(n), that can return the n largest number(s) using c#..
Get all Si results, sort array (ascending) and get your n results at the end of array.
Best regards, Alexey.
|
|
|
|
|
This is a school assignment if I ever saw one.
|
|
|
|
|
Yes, it's very simple solution, but this solution is "fast-realizable".
If you find O(n) solution please tell me. I'm so intrested...
Best regards, Alexey.
|
|
|
|
|
Isn't Radix sort O(n)?
Looking at what's given I half suspect the data has restrictions that would make a trivial solution possible, but I don't want to do this guy's homework for him.
|
|
|
|
|
Hey man, thanx 4 ur reply.. i wanted 2 ask you though, what u meant was consider a and b as arrays of values, then add them to a new array S containg the values of a and b, and then sorting the array, and then fetching the largest n #'s? But bro, isn't that more costy than O(n)?!?
Waiting 4 ur reply mate..
Thanx Again,
Elie
|
|
|
|
|
Is it possible to implement chat rooms that can use by the asp.net and the window form. Can this chat room use xml web services to connect each other? or got any suggestioon? Thank you thank you
|
|
|
|
|
Well... I have a Control Inherited from Combobox. The purpose is fill the items in the combo with the content of a Table... the problem is when I am filling the combo, even when it is not Visible, he Drops down at the load of the form... if there's only one combo, no problem... but when there are many combos, the load of the form results in an horrible intermitance while filling combo's, someone have any idea???
Ah... when i reassign the SelectedIndex or SelectedItem properties, the combo also Dropps down...
Bye
|
|
|
|
|
I'm trying to make my own screen-capture program. My theory is to take bitmap screenshots as fast as possible, and feed them into an AVI. I've read some articles on taking screenshots, and it looks like it's a tossup between using .Net (with Graphics.CopyFromScreen()) and using API calls (gdi32.dll and user32.dll).
I just finished the former, and it's slow. I can't get it to take bitmaps faster than about three per second (my goal is at most 30 per second).
My question is this:
Before I spend time on altering all my code, will using API calls make it take screenshots any faster? If not, I won't waste my time.
-Daniel
Typing too fast fro my owngood
-- modified at 19:55 Wednesday 24th May, 2006
|
|
|
|