|
Hi,
this is a stupid assignment. In order to make it a realistic problem, one would need to measure a method containing hundred or more instructions to start with, not a single increment.
The code required to transparently measure the duration of an increment will probably use a derived class, virtual methods, and a StopWatch. As such it will be much slower than the original increment itself, so the result is bound to be inaccurate (on top of being utterly irrelevant).
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I understand. it is stupid one. thanks
|
|
|
|
|
Hi Guys,
How can we set the web browser control for example if the user load a .doc file on it then it cannot be edited? I mean, the user is not able to change file that has been loaded in the web control (example format is '.doc','.xls' etc..).
I'm trying to counter this kinda things, but sad to say, I did not find some hint or solution on how to do that.
Thank you!
regards,
erson
|
|
|
|
|
So far as I know, you must set a password for "Change Document" in word during saving. Wrong password means not able to edit the document.
|
|
|
|
|
sir
plssssssss help me
I want to make a run time form with text box and label control for a user .
becaue I want user can take textbox from a control by drag and drop and then take a filed from database by combobox and bind them and save as a exe file and then run it .(all this work user will do on runtime form)
as like developer design a form for a user but i want i will give textboxe control,and lable control and also fields to user in this way user by self make a runtime form
r_ifti@hotmail.com
thx
|
|
|
|
|
This part of your question really I don't understand.
rashid2009 wrote: becaue I want user can take textbox from a control by drag and drop and then take a filed from database by combobox and bind them and save as a exe file and then run it .(all this work user will do on runtime form)
as like developer design a form for a user but i want i will give textboxe control,and lable control and also fields to user in this way user by self make a runtime form
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
sir
i want a blank runtime form for a user with textbox control and others control who can take a text field and take a database field from combo box and design a runtime form .(just like a mini vb.net)
for this requirement purpose user itself create a page and design .
thx
|
|
|
|
|
rashid2009 wrote: .(just like a mini vb.net)
Why are you posting in the C# forum then ?
This is a TON of work. You would need to basically write a framework that allows the user to create their own controls and databind them. I would say it's almost certainly beyond you.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i think this is beyond ur knowledge...
it requires lot of efforts to do this...and if u can give such solution than u will be next threat to MS...pls...dont post such hypothetical issues....
dipak
|
|
|
|
|
hello...
i am developing a C# window based application.i have a form(view Item) that contain a datagridview and a button.
datagridview shows the item information and at the button click a new form(Add Item) opened by which user can add the item information.
All i need to do is after filling the item information when we click the save button the datagridview must be updated.
How can i do this.
|
|
|
|
|
Bind daatagridview with select command after you insret new item.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
Its not Like that.........
datagridview is on a form named ViewItem and we want to update this datgridview through a button that is on another form name AddItem...
|
|
|
|
|
In dataGeidView set property Modifiers to true and in form AddItem bind datagridview which is in form ViewItem.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
datagridview having property Public,Private,internal,internalProcted
one thing that can be matters is The viewitem form is a MDIChild Form.
but the form Additem Is not a MDI form..ok
|
|
|
|
|
merahul wrote: datagridview having property Public,Private,internal,internalProcted
You are right,sorry it was my mistake to set Modifiers to true,I wanted write Public but not true .
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
I tried but its not working...
|
|
|
|
|
Use delegates to cause events to happen between forms.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
how can i use the delegates.tell me in detail or any example...
|
|
|
|
|
|
I like to give just the keywords. Anyone with any chance of ever becoming a programmer, should be able to type 'C# delegate' into google and find tons of articles to read.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
OleDbCommand cmd1 = new OleDbCommand("select Group_id from Group_details where group='" + descriptiondpdwnlist.SelectedItem .Value + "'", con1);
dr = cmd1.ExecuteReader();
I am selecting a value from dropdownlist and comparing it to group field in table-group_details and group is selected from it ...But why is this error coming?"syntax error near where clause"
|
|
|
|
|
Replace
where group
with
where [group]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
i m working with access database at the back end and using C#.net programming
i want to store the multiple selected items from the listbox to the access database in a single column
plzzzz can anyone help me
i need reply sooon!!!!!!
i m a new learner in C#.net
thnx in advance
|
|
|
|
|
Loop in all items of Listbox and while looping get only selected items.
e.g.
StringBuilder sb = new StringBuilder();<br />
for (int i=0;i<=listBox1.Items.Count-1;i++)<br />
{<br />
if (listBox1.GetSelected(i) == true)<br />
{<br />
sb.Append(listBox1.Items[i].ToString());<br />
sb.Append(",");<br />
}<br />
}<br />
string values = sb.ToString();
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
i m getting error
Error 1 : The type or namespace name 'StringBuilder' could not be found (are you missing a using directive or an assembly reference?)
how to declare this name space??
|
|
|
|