|
LOL - I guess it was lacking in the 'do no work and see the result' factor required.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I tought if .NET controls execution it
can measure time of methods it executes.
|
|
|
|
|
You can pinvoke and call QueryPerformanceCounter . Call it before and after calling the method and the difference is the time it took to execute.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Have a look at NProf. Its probably what you are searching for.
|
|
|
|
|
Found your message after discovering this API myself,
thanks anyway.
|
|
|
|
|
It appears there is a Profiling API which does what I need.
|
|
|
|
|
hi all
i am working in application using visual stdio.net by c# and i need to use
codes from mathLab in my application
my qustion is : how can i binding or "use" mathLab to visual studio.net??
|
|
|
|
|
What is mathLab ? Not Matlab ?
It depends - does this library expose a COM interface ? If not, then probably not ( I assume it's not written in C# ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
How does .NET framework help with accessing Legacy systems? I have worked in this area on Java, using the various connectors. For .NET the suggestion seems to be to use web services, but I have not been able to go beyond this point.
If I developing an n-tier application, where I need to use an RDBMS and Legacy system, I am not sure to how to make the connection and maintain the integrity of data.
If someone can point me to some useful link or a direct sample, it would be of immense help.
Regards,
Rajiv
|
|
|
|
|
Hi,
I am new to this forum .. anyway currently I am doing some research work in context aware mobile phone application and one of the main area require me to access the phone functionality such as the ringer volume, vibration on or off, power on or off and I need to be able to change them based on different scenario .... I am just wondering if anyone know that any module in .net compact framework would allow me to do this ... and have this been done before ? any link to existing article will be great.
Cheers
rd7
|
|
|
|
|
Hi,
I am using .Net and will need to connect to access database's from my c# application that i am developing. Please can someone advise if this is possible, and if so if they can point me to the right direction in terms of literature and code.
Note: External meaning connecting to other company databases.
Thanks for your time.
Thanks
J
|
|
|
|
|
I use MS SQL Server primarly but for Access I either create a ODBC connection to the database or just use a ADO.Net Connection string. Reference this site for the connection string http://www.connectionstrings.com/.
hope this helps.
|
|
|
|
|
Hello, I have created a windows application form with some common functionalities.
How Can I convert it into a component that can be used and inserted into other windows application form as other components like Label or Button in the toolbox?
Please help.
Thanks!
|
|
|
|
|
|
How do I setup my project to install the .net framework automatically
BINARY
|
|
|
|
|
|
hi friends,
i'm using vb.net for devloping a web application. my code shows nothing wrong. but when i click a button to add the entries this error is being shown. my other applications are also developed in the same manner but they do not show error. the only difference in this application is that i'm tring to enter data into database from text property of a label. can this be a cause. i'm unable to figure out please help me.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 198: If DropDownList1.SelectedItem.Text = "Not Available" Then
Line 199: insert = "INSERT INTO Transmittal(Project_Name, Username, [Date], [To], Kind_Attn, Title, Drw_Doc_Num, Copies, Rev_Num, Action)" + "VALUES ('" + TextBox7.Text + "', '" + Label10.Text + "', '" + Label17.Text + "', '" + TextBox1.Text + "', '" + TextBox2.Text + "', '" + TextBox10.Text + "', '" + TextBox11.Text + "', '" + TextBox8.Text + "', '" + TextBox5.Text + "', '" + TextBox6.Text + "' )"
Line 200: OleDbDataAdapter1.InsertCommand.CommandText = (insert)
Line 201: OleDbDataAdapter1.InsertCommand.ExecuteNonQuery()
Line 202: OleDbConnection1.Close()
Source File: C:\Inetpub\wwwroot\OM\trans.aspx.vb Line: 200
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
OM.trans.Button4_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\OM\trans.aspx.vb:200
System.Web.UI.WebControls.Button.onclick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263
|
|
|
|
|
|
Anyone know how to set the listview forecolor and backgroundcolor? (For .Net Compact Framework)
I'm facing difficulty in understanding on how to set text color for a particular cell or item in the listview and also the background color for a row.
Please help... really need to know how to do it. Thanks a million!!!
|
|
|
|
|
I do not have access to a dev system at the moment, but MSDN indicates that ListView.ForeColor and ListView.BackColor are supported by the Compact Framework. If this is true, then...
myListView.ForeColor = Color.Red;
myListView.BackColor = Color.Blue;
ListViewItem item = myListView.Items.Add("Item1");
item.ForeColor = Color.Green;
item.BackColor = Color.Cyan;
|
|
|
|
|
Greetings!
1) How do I eliminate the first column in the DataGrid of Windows Forms containing cells with auxilary stars and arrows?
2) Can the DataGrid control be used for developing daily timesheet like one in the Outlook? If not, what should I use or write my own Windows control?
Thanks for your support!
|
|
|
|
|
1) Have a look at the RowHeaderVisibile property of the DataGrid and of the DataGridTableStyle (latter only necessary when using self created table styles).
2) I Dont think you will have much luck with the DataGrid. I think there are some free and commercial controls out there but I dont have any at hand right now. Google is your friend
|
|
|
|
|
On the VS forms designer, some Controls act as a container for other Controls and some do not. Select a Button and drag another from the toolbox onto the first and you get two Buttons on the Form. But select a Frame and drag a Button onto it and you get a Button on a Frame on a Form. What tells the designer whether or not to treat a Control as a container for other Controls?
I've tried to create a container Control by inheriting from UserControl, but I cannot get it to act as a container (dispite the fact that UserControl inherits from ContainerControl). The only way I've found to write my own container Control is to inherit from Frame. But there are Controls written by others in Code Project that act as containers and actually inherit from Control directly. I've looked carefully at their source code (and in the documentation) and I cannot discover what it is specifically in the code that tells the designer to put Controls dragged onto it into its Components collection rather than it's parent's.
Can anyone enlighten me?
|
|
|
|
|
|
Hm yes, I read that bit before, but it does not really answer the question. The component member that gets added in the UserControl (and Form) template implements this interface. My problem is that if you create a control based on UserControl, the designer for UserControls will add components dragged from the toolbox onto it to its components collection - so far so good. But when you put this UserControl onto a Form, it will no longer act as a container and components dragged onto it get added to the Form's components collection not the UserControl's. Something is telling the Form designer to treat some components as valid containers and some not - even when they all have components collections. I expected this to be an attribute - but apparantly not.
|
|
|
|