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
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.