|
have u stopped ur service before uninstalling????
sathy
|
|
|
|
|
yup, what essentially ends up happening is that you have to remove the registry key to remove it after the uninstall.
any idea?
|
|
|
|
|
r u sayin tht u have to manually remove the registry keys...
i tried on creatin a setup for a windows service it is installing and i can also uninstall it.. but i cant start the service... it throwin an error sayin JIT debuggin failed
sathy
|
|
|
|
|
I have a list definition,
public class List<br />
{<br />
private int index;<br />
private string name;<br />
<br />
}
and a table
<br />
public class Table<br />
{<br />
public static List List1 = new List(1,"List1");<br />
public static List List2 = new List(2,"List2");<br />
...<br />
<br />
}
Now , if I want to add a method of Table
public class Table<br />
{<br />
public static List GetListFromIndex( int index){...}<br />
}
How can I avoid a lot of "switch case"????
Thanks!. I know this maybe related to "reflection" , but cannot figure it out.
|
|
|
|
|
I don't know background so I must ask, why you dont use standard Array(List) of strings?
I mean (example),
public class Table
{
static ArrayList list;
public static string GetListFromIndex(int i){return (string)list[i];}
}
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
I'm sure this has been asked before, but I having difficulty finding the correct phrasing to return a valid search.
I would like to beable to send data to another application from my application.
For instance, if I have an already existant application that I have to type the same info into it each time I use it, several times a day where the only information that changes is a serial # and/or a product name.
I would like to build a soulution that would allow me to pre-program the data fields so that all I have to do is click a button and it populates all of the semi-static fields.
Any Ideas of what I would need to do, or where I need to look to find this answer?
string Beautiful;
Beautiful = "ignorant";
label1.Text = "The world is full of " + Beautiful +" people.";
Why is common sense such an un-common comodity?
|
|
|
|
|
Hi,
I have a datagrid & a datatable, and when I use the mousemove event, I run into trouble.
private void dgMouseMove(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{ <br />
System.Windows.Forms.DataGrid.HitTestInfo hitInfo = dg.HitTest(new Point(e.X, e.Y));<br />
... // find out which cell is entered
dg.CurrentCell = new DataGridCell(hitInfo.Row,hitInfo.Column);<br />
... // use tooltip
}
The problem starts when I set dg.CurrentCell. Whatever it's set to, the backcolor of that cell changes to what looks like some default color (biege), and the text is highlighted. Also, the MouseUp event doesn't seem to fire, at least not consistently. I've been trying to figure this one out for a while now, and am pretty stuck. Anyone know what to do? You'd be my hero!
Thanks,
Mel
|
|
|
|
|
It seems you are selecting a cell in the programmatically in the mousemove event by setting the CurrentCell. That is the reason its hightligting the cell with the default color and text is highlighted. Since there is not mouseDown happening here , mouseeUp would not be called.
Why do you need to set the CurrentCell in the mousemove anyway?
Thanks,
VPMahank
|
|
|
|
|
Hi!
I use CurrentCell to get the text in the cell.
private void dgMouseMove(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{ <br />
System.Windows.Forms.DataGrid.HitTestInfo hitInfo = dg.HitTest(new Point(e.X, e.Y));<br />
if (hitInfo.Row < tCat.Rows.Count && hitInfo.Row > -1)<br />
{<br />
dg.CurrentCell = new DataGridCell(hitInfo.Row,hitInfo.Column);<br />
DataGridCell dc = dg.CurrentCell;<br />
string txt = dg[dc].ToString();<br />
if (txt.Length > 10){ //tooltip stuff
}<br />
}<br />
}
There's one more case where I have this problem of a beige cell background and highlighted text - when I click on a cell (on MouseDown). As soon as the mouse comes back up, it goes back to the colors I want it to be. Is there any way to get rid of this?
Thanks so much!
Mel
|
|
|
|
|
we've got several different printers from several different manufacturers in our office that i need to try to retreive the machince specific info(serial, mac, ip, pageCount, etc) thru a rich-client.
All printers have an installed/firmware webserver that displays all this info...and my hopes were to find a way to contact these devices and grab this info.
I wasn't sure if there was an easier way to do this other than parse the html to get the info....('cause) the problem with doing that is that since they are all different manufacturers the format for the html is all different.
So the question becomes how can i retrieve this info from the devices
(does anyone know how to comunicate to the printer via a printer language{not sure what that would be} ?)
|
|
|
|
|
There's no standard for this, so scraping is the only option you have.
Until the manufacturers get together and agree on an XML format to supply the information in, scraping, be it a web page or a telnet session, is all you've got.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
|
|
I have 3 panels in the screen. All the three panels are in a main panel. The three panels are next to each other horizontally and fill the main panel vertically. All these panels have round corners instead of standard sharp edges( I have panelExt class inherited from standard panel class). Now I need to have a splitter between 1st and 2nd panels and also between 2nd and 3rd. I think because of having the round edges , when I say left and right panels dock propery to left and right respectively, these panels are shifted down by around 40 pixels and then docked. But I want them to fill the main panel vertically. Is there any work around for this?
If there is no solution to this, please suggest any custom splitter which does standard splitter job except for non docked controls.
Thanks,
VPMahank.
|
|
|
|
|
I want to build an icon on the desktop that will load a program that I am working on, which will display a loading page. Any ideas?
|
|
|
|
|
Right-Click on the Desktop and click New, then Shortcut?
Or are you asking how to put a splash screen in your app? Just search, under The Code Project banner at the top of every page, the articles for "splash". There are plenty of examples.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am using this code for check webbrowser's activity
while (wbr.ReadyState != WebBrowserReadyState.Complete)<br />
{<br />
Application.DoEvents();<br />
}
But when I am using
heForm.InvokeMember("submit");
which submits a form on a webpage, ReadyState will not be activated or changed. Also the IsBusy flag doesn't change.
|
|
|
|
|
I wouldn't do that. Application.DoEvents is terribly inefficient, causes many allocations and can result in unexpected scenarios.
Instead, just listen for the wbr.Navigating event, which will tell you when the browser's busy. I believe there's a DocumentCompleted event to tell you when the document is fully loaded.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Bought a House!
Judah Himango
|
|
|
|
|
Hi Judah,
thx for reply and this tip.
But additionally this won't work with InvokeMember. After firing this code line the application doesn't recognize browser activity.
|
|
|
|
|
Not sure if this is what you are looking for. The following example shows some of my code I've used where I have a timer event handler function call this piece of code every second. Without the if statement this would cause problems because the page doesn't always load in the browser at the same speed - it will make the program stop responding. But with the if statement this checks and makes sure the WebBrowser object is not loading anything at the moment and if it is, it doesn't execute the code (doesn't load anything else - until the statement is true):
if (webBrowser1.IsBusy == false && webBrowser1.IsOffline == false)
{
webBrowser1.Url = new Uri(strUrl);
}
Let me know if I can help further.
|
|
|
|
|
Hi peshkunta,
After InvokeMember (new in .NET Framework 2.0) ->
IsBusy = false
IsOffline = false
that's the problem (tested with your code above as check process)
InvokeMember fire a method of the selected HTML element. I loaded a FORM tag and after submitting it, a new webpage is loaded again.
But if I am in debugging mode and go to the line after InvokeMember I wait a moment and then it works, because the browser don't fire the flag immediately.
|
|
|
|
|
???
i need to capture these events as i have a statusbar on my app, and when i maximize my app it retains the sizing grip and if u click-grab it moves through out the page...so i need to capture the maximize/minimize events to beable to hide/unhide the sizing grip...unless there is a better option out there...
|
|
|
|
|
|
thx
it works beautifully
thx again
|
|
|
|