|
Pete O'Hanlon wrote: Shameless plugging going on?
Of course. That's what articles are for, I would say.
|
|
|
|
|
Luc Pattyn wrote: Of course. That's what articles are for, I would say.
It's all right. I'll forgive you since you link to one of mine.
I'm very magnanimous that way.
|
|
|
|
|
Pete O'Hanlon wrote: I'm very magnanimous that way.
and Mrs. Slocombe is unanimous on that.
|
|
|
|
|
Luc Pattyn wrote: and Mrs. Slocombe is unanimous on that.
Indeed - did you spend all night stroking your poor pussy because it was quivering?
|
|
|
|
|
You'll make Captain Peacock frown once more.
|
|
|
|
|
Did you try all three types of timers?
System.Timers.Timer
System.Threading.Timer
System.Windows.Forms.Timer
Sounds like somebody's got a case of the Mondays
-Jeff
|
|
|
|
|
Hi All,
I have created one project and have installed on GAC. After that I am not able to "debug" my code. Could you please help me to resolve my problem.
Exactly saying, I have created one IE toolbar. That assembly, I have kept it in GAC. But, I am unable to debug that assembly.
Thanks in advance
Thanks and regards,
Srinivas
|
|
|
|
|
Why not just remove it from the GAC?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
did the same, but eventhough the same problem. Could you please help me regarding this.
Thanks and regards
srinivas
|
|
|
|
|
I know a lot of people ask how to get the row index value in a C# datagridview so this code should help them. But I am now stuck.
The data source is created on the fly and is destroyed as soon as it is viewed so I have to retrieve data from the visible datagrid view:
I need to get the string value of my known (row, column). Googling and going through the IDE has been no help. How do I do this?
int i = adObjectDataGridView.CurrentRow.Index;<br />
MessageBox.Show(Convert.ToString(i));<br />
shwa guy
|
|
|
|
|
if you know row# = i, and column# = n, try:
adObjectDataGridView.Rows[i].Cells[n].Value.ToString()
|
|
|
|
|
Alanteigne, you are the man. It worked great. thank you.
shwaguy
|
|
|
|
|
|
In my project I've created an instance of a custom form class. In my form class, I have error detection that simply closes the form if an un-handleable error occurs. Due to the nature of the app, this is the desired behavior. However, I would like an event on the main form to fire off whenever this happens. How can I do this?
I initialize my custom for like this:
frm_myForm myForm = new frm_myForm();
For any other control I want to add a handler for, I would do something like this:
btnShowForm.Click += new System.EventHandler(btnShowForm_Click);
... and create the corresponding function. I applied similar logic to my form instance but it doesn't seem to work that way. (myForm.Closed += new blah blah). Am I missing a key concept here? It seems like this would be functionality used all the time so I fear I'm being dense and not seeing the big picture. Any advice is appreciated...
Alan
|
|
|
|
|
alanteigne wrote: frm_myForm myForm = new frm_myForm();
<br />
myForm.FormClosed += new FormClosedEventHandler(myForm_FormClosed);
|
|
|
|
|
FormClosed. You've gotta be kidding me, that makes too much sense!
Thanks!
|
|
|
|
|
How do i get processor usage status, virtual memory status, physical memory status and free space on C: drive using C# functions? I cant seem to locate this in the MSDN library. Thanks in advance.
|
|
|
|
|
kekrops wrote: How do i get processor usage status, virtual memory status, physical memory status and free space on C: drive using C# functions?
Look at the performance counter component. It can do all the things you're asking for.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
Here's a little bit of help, pulling code from something I wrote a while back:
add this reference...
using System.Diagnostics;
create a perf counter...
private PerformanceCounter cpuCounter;
define it
cpuCounter = new PerformanceCounter("Processor", "% Processor Time", "_Total", true);
get the value:
cpuCurrValue = Convert.ToInt32(cpuCounter.NextValue());
I created a myPerfMon class that uses the perf counters to get and return the values, and another class that tells it to do so on a timer.
|
|
|
|
|
I am trying to get the Computer's name in the registry under
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName
with the following:
string strCompName = (string)Registry.LocalMachine.GetValue("SYSTEM\\ControlSet001\\Control\\ComputerName\\ComputerName\\ComputerName");
But I am getting a null value.
BTW I did search the forum, but every post I clicked on from the query sent me to the main forum page.
Thanx in advance!
Jude
|
|
|
|
|
Figured it out. I thought that RegistryKey.CreateSubKey() would create values, but it reads the subkey.
Jude
|
|
|
|
|
This can be accomplished in an easier way:
Environment.MachineName will return the computers NetBIOS name. (If that's what you're looking for).
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
Heh! That easy!?!?! Thanx for the reply. What I am trying to accomplish is connection to an MSDE on the fly.
So far I got it working!
Jude
|
|
|
|
|
Why not just use localhost?
|
|
|
|
|
is it possible to call a C# code functio from the trigger.....
|
|
|
|