|
Cybercockroach wrote: Can I assign any ProcessName to my program. for ex. my program is A.exe, Is there any way to rename it to B.exe in task manager list?
Not if it's already running. The process name in task manager is the physical name of your process; your executable's name.
|
|
|
|
|
I want to do this because I have to run the same program at the same time(may be ten times) with different arugement. and I only have the same name in task manager with different pid. I dont know which process run with which arugement. So I would like my process named as my ProcessName+arugement in task manager. thanks for your reply^^ and sorry for my poor english
|
|
|
|
|
Hello!
In my application I am using a listview consisting of columns and rows. During execution, the list view gets filled up with list view items. Now I am wondering if there is a way to get the information that exists in any of these cells. For instance if I have 10 rows and 10 columns I would like to extract the information existing in the cell at row 5, column 5. Is this possible?
Best regards,
Hampus
|
|
|
|
|
object information = this.listView.Items[4].Subitems[4];
|
|
|
|
|
Hi,
I would like to do the following steps from an external application:
1- launch a C# program in GUI mode
2- fill some fields in this GUI
In which direction should I look at?
Thanks in advance
|
|
|
|
|
Preferably at the screen and keyboard because if you don't look at them then you can't type in http://www.google.com[^].
|
|
|
|
|
Hy,
Lapius wrote: launch a C# program in GUI mode
Have a look at System.Diagnostics.Process class.
Lapius wrote: fill some fields in this GUI
Try using to pass command line arguments to the aplication that you launch (arguments that contain the data needed to fill the fields).
Do your best to be the best
|
|
|
|
|
To pass data to C# app at run-time, you could (probably should) implement an IPC between the two apps, such as socket interface. Let them to communicate through the IPC.
Best,
Jun
|
|
|
|
|
How can i write a function in c# which can return more than one value. Can someone tell me the exact syntax plz.
sAqIb
|
|
|
|
|
this depends on what exactly you want to return.
if you want to return variables of different datatypes, you could return an objectarray. this could look like
<br />
object[] dummymethod()<br />
{<br />
object [] returnarray = new object[3];<br />
returnarray[0] = "somestringval";<br />
returnarray[1] = 23112321;<br />
returnarray[2] = new System.Windows.Forms.Form();<br />
<br />
return returnarray;<br />
}<br />
this way you would return three different values. to use them in other function you would have to do explicit casts...
// edit: argh forgot a semicolon...
|
|
|
|
|
thanks buddy. can you also please guide me how can i use those returned values. i mean how can i able to access those returned values?
sAqIb
|
|
|
|
|
Hello,
You can also use an "out" value parameter method. (You can use more then one out value)
private string mymethod(out int intvalue, ...)
{
}
Hope that helps you!
All the best
Martin
|
|
|
|
|
As a third method you might want to return a struct
public ReturnValues MyFunction()
{
ReturnValues ret = new ReturnValues();
ret.Param1 = null;
ret.Param2 = 42;
ret.Param3 = "test";
return ret;
}
struct ReturnValues
{
public object Param1;
public int Param2;
public string Param3;
}
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I want to control the sound volume of windows in my application, how can i do it?
plzzzzzz help
|
|
|
|
|
Search for "mixer" in the articles here, you'll find something.
And plzzzz d0tn uze leetspeak, it's so childish...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
hi all
plz tell me about this
muhammad mahmood ilyas
|
|
|
|
|
now thats not true, is it?
i told you using google would be a good idea but as it seems you haven't done it yet.
"\\.\root\CIMV2" <- this is a path. what do you want to hear?
|
|
|
|
|
infact i was not going to write the same question again, but unconciously i clicked it again
muhammad mahmood ilyas
|
|
|
|
|
It's a path to a WMI namespace. The "\\." part refers to the local machine. The rest is the path to the CIM v2 namespace where most of the Windows Management classes reside.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi ,
I want to add icon on second column of listview control. How can do ?
please help me to come out this problem.
Gopal Hatekar
|
|
|
|
|
I don't think the native ListView control supports images in the second column. There's a good replacement called XPTable on this site, that probably does what you want.
|
|
|
|
|
Hi,
I was looking at the community server code, and they have something like:
CSConfiguration config = CSCache.Get(CacheKey) as CSConfiguration
What does the "as" mean? Is it a type of explicit conversion?
Regards
ma se
|
|
|
|
|
as means casting the particular object to specified valid type
rahul
|
|
|
|
|
It's a form of casting, but will only work with reference types I think, it's just syntax sugar really, it's the same as the (cast) but can make the code easier to read because there aren't so many bloody ( s and ) s
|
|
|
|
|
If the cast fails the result is null, no exception is thrown when using as.
|
|
|
|