|
oh then try
System.Diagnostics.EventLog.Delete ("YourLogName");
|
|
|
|
|
Hey, that's good tips. Thanks. Will try that now =)
norm
|
|
|
|
|
Thanks, first of all. Just a note, I uninstalled the Windows Service:
installutil /u myservice.exe
But "myservice.exe" was the new version. I lost the assembly for the old version, Service1.exe. Is there anyway to uninstall the old version, without the assembly? I understand installutil uses information from the assembly...
norm
|
|
|
|
|
try downloading instsrv, you can get a copy from http://setiathome.berkeley.edu/service.zip, and type
instsrv "ServiceName" remove
|
|
|
|
|
Awe thankyou so much, you've just helped me solved two problems in 10 minutes!
norm
|
|
|
|
|
|
I want to disable the scroll bars in a mdi parent form...setting AutoScroll to false has no effect.
How do I do this?
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
Hi
Did you ever find a solution to this problem? We are having exactly the same problem at our project.
Thanks for your help, Mads
|
|
|
|
|
No, I never did
Gary Kirkham
A working Program is one that has only unobserved bugs
I thought I wanted a career, turns out I just wanted paychecks
|
|
|
|
|
Hi,
I bound a dataset to a listview (I used example of Lothka).
I have also a button delete. When I select a row in the
listview and I push delete-button I can delete the row in
the dataset as follows :
ds.Tables[0].Rows[Convert.ToInt32(item.Index)].delete();
And then I rebind my listview to the dataset.
But working with item.index is not right.
1. When I am deleting another row (say row 3). In the dataset the 2e row was deleted (that was not the same I selected in my listview).
So : listviewItem.index and the index for the rows of the
dataset doesn't match anymore after my first delete.
Same problem when I sort the listview, then there is no
match between both indexes.
What is the best way to resolve that problem?
I am looking for an example of a listview bound to an custom collection (thats not a problem, I have that). But I want to add, delete and update listviewitems adn at the same time I want that they are refected in my custom collection.
Thanks
Bom
|
|
|
|
|
i dunno.. but i seems easy ques.(may be)
I want to make a button that is capable of moving the VScroll bar of the form to a certain position or to the end.
how can i do such thing?
thx
plextoR
|
|
|
|
|
|
How can I undo un-register remoting type. Basically, I'm looking for reversing SAO or CAO registration (not channel).
RemotingConfiguration.RegisterWellKnownClientType(
typeof(nsTransactionMaster.CTransactionMaster),
"http://localhost:8085/CTransactionMasterURI"
);
RemotingConfiguration.RegisterActivatedClientType(
typeof(nsTransactionMaster.CTransactionMaster),
appurl
);
Thanks.
norm
|
|
|
|
|
Just curiosity, why would you like to unregister the type ??
Free your mind...
|
|
|
|
|
Just cause I was playing with it, and all of a sudden I found out that apparently I can't do that.
|
|
|
|
|
OK. I haven't tried. Later I'll do some research to see if that could be possible.
Once I was playing with remoting and I found "Unmarshal", then I found "Disconnect", and they both worked fine, but I wasn't using registered types, I was publishing a object via "Marshal".
I'll try playing with it...
Free your mind...
|
|
|
|
|
I don't remember what I did exactly. I think I can remember "Disconnect". Is it a method of the ChannelServices class? Anyway, perhaps I didn't disconnect properly. I think I did tried Disconnect and with the couple of things that I tried, none worked.
|
|
|
|
|
It's a static method of the RemotingService Class...
Free your mind...
|
|
|
|
|
Tell me, plz. Thanx in advance
|
|
|
|
|
Most of them, but this isn't the right forum.
--
-Blake (com/bcdev/blake)
|
|
|
|
|
I am trying to get a flat toolbar to work with the lighter gray look of the XP toolbar, as with IE.
I am calling Application.EnableVisualStyles(); in Main.
I set ToolBar.Appearance to ToolBarAppearance.Flat .
However, the button bar ends up a darker gray than it should and there are are an additional 4 or so extra pixels of gray beneath the buttons. (The buttons do show the transparent type look when selected, however.)
What am I doing wrong, if anything?
When all else fails, there's always delusion.
- Conan O'Brien
|
|
|
|
|
Is there a c# equivalent, or another way?
|
|
|
|
|
public static short LoWord(int n)
{
return (short)(n & 0xffff);
}
public static short HiWord(int n)
{
return (short)((n >> 16) & 0xffff);
}
public static byte LoByte(short n)
{
return (byte)(n & 0xff);
}
public static byte HiByte(short n)
{
return (byte)((n >> 8) & 0xff);
}
|
|
|
|
|
Heh, you beat me to the submit button. :P
--
-Blake (com/bcdev/blake)
|
|
|
|
|
While those macros themselves won't work due to C# not having a macro preprocessor (a good thing) the same expressions used in defining them will work fine. You can express them as methods, which will certainly be inlined by the JIT.
From windef.h:
#define LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))
#define HIWORD(l) ((WORD)((DWORD_PTR)(l) >> 16))
#define LOBYTE(w) ((BYTE)((DWORD_PTR)(w) & 0xff))
#define HIBYTE(w) ((BYTE)((DWORD_PTR)(w) >> 8)) So in C#:
public static ushort LowWord(uint value) {
return (ushort)(value & 0xFFFF);
}
public static ushort HighWord(uint value) {
return (ushort)(value >> 16);
}
public static byte LowByte(ushort value) {
return (byte)(value & 0xFF);
}
public static byte HighByte(ushort value) {
return (byte)(value >> 8);
}
--
-Blake (com/bcdev/blake)
|
|
|
|