Is this what you are looking for?
This pops up the menu right below the button:
ButtonPopup.Popup(self.Button.ClientOrigin.X , self.Button.ClientOrigin.Y + self.Button.Height);
Here is a thing I wrote earlier for one of my programs.. Hope this helps
public class ProcessorUsage
{
public static CounterSample poll1 = new CounterSample();
public static CounterSample poll2 = new CounterSample();
public static PerformanceCounter procPolling = new...
MatchCollection mObj;
mObj = regDollar.Matches(buffer,0);
decimal Total1=decimal.Parse(mObj[0].ToString());
decimal Total2=decimal.Parse(mObj[1].ToString());
decimal Total3=decimal.Parse(mObj[2].ToString());
Try this out, seemed to have worked for me.
Regards,
John
If you are looking for the path of your executable then you may use:
Path.GetDirectoryName(Application.ExecutablePath);
Clarify if I misunderstood.. you are looking for the location of the running executable?
Regards,
John
Unfortunately I don't understand what you are trying to accomplish here.. If you could clarify:
But by default the ABC.EXE.Config file is taken
and
I need to read the XYZ.exe.config file to take
I may be able to help more..
Ignore this if I'm just missing something obvious.
Regards,
John
If I am not incorrect Process allows you to redirect standard error and output from applications, also supression of errors and windows(Not showing a window when started). Also you can wait till end or have events triggered when Processes stop.
I'm not too familiar with shellexecute, but I...
If you could specify what dt is it would be easier, but the rest of the code should look like:
If Int32.Parse(CatID) = _
Int32.Parse(dt.Rows(iLoop)("ID")) then
Return iLoop
End If
if (System.Convert.ToInt32(CatID) == System.Convert.ToInt32(dt.Rows_stuff_here))
return...
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OnKeyPress);
//Put this in InitializeComponent
protected void OnKeyPress(object sender,KeyPressEventArgs e)
{
if (e.KeyChar == 13) //This allows for detection of all catchable keys ( to my knowledge )
{
//Cool...
The input to xslt must be well-formed xml; html, however, is Not well-formed, unless you are talking about XHTML, which is. In any case, you can produce XML/HTML or Text from XSLT if the input document is XML.
Regards,
John
Just do this;
<xsl:text disable-output-escaping="yes">
BLAH BLAH BLAH
</xsl:text>
If I misunderstand your quesiton due to the ridiculous processing of entities in [ code ] and [ /code ] segments, please correct me.
Regards,
John
((Process)ProcessList[ProcessList.Count-1]).StartInfo.FileName = @"C:\WINNT\system32\cmd.exe";
((Process)ProcessList[ProcessList.Count-1]).StartInfo.Arguments = "| dir";
This _should_ work, though its off the top of my head, good luck.
Regards,
John
{PS} And there is really no reason to even pipe to a file in the first place since you can redirect the standard output and error to any variable/component that you want. So if you were gonna use that method to retrieve data from the application that you ran, I suggest...
Ah, simple problem to correct, forgive me for forgetting to put it in the example:
((Process)ProcessList[ProcessList.Count-1]).StartInfo.Arguments ="arg1 arg2 arg3";
Regards,
John
There are a couple steps you can take towards doing this, but these are the main ones:
Deploy a setup project with your program;
Make sure the _same_ version of .Net framework (1.1 or 1.0) are installed on both of the machines.
Regards,
John
Any deployed Setup projects will most likely not be functional as it will prompt you with "You have an older version of .net (1.0)" [or something], though theres a chance if you just run the Release executables on the client machine it may work.
Regards,
John
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.