|
If I start services.msc and then right click on service, and
then if I go to Dependencies tab I can just see the services
that this service depend of. How I can add some service? Don't
see any add, or on right mouse click... (Windows 2000 Professional)
|
|
|
|
|
Hi everybody
Thank you for your help and patience in advance, I am almost intermediate
in C# , and need help for implement a software base router in C# .the problem
in detail is that : suppose we have two PC connected to each other via three
separate channel , first channel is telephone line connection using regular modems.
the second is wireless modem and third is transmitter and receiver dishs(local sattelite).
also suppose we unable to use hardware router to switching between these channels
the question is , any way to implement a software router that when a channel fails to operate
our software router be able to switch to another active channel all programmatically?
any comment or code will be appreciated.
regards,
Mjk.
|
|
|
|
|
It's already done. Check out Microsoft's Routing and Remote Access[^] for Windows.
It's all you need to do what your looking at.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I have an application running in the production environment, and after working for a couple of hours it hangs up with a nasty "unhandled exception, process id #so-and-so, thread id #so-and-so". Looking into the Application Log (in the Event Viewer), I see the following line:
"The exception generated was c0000005 at address <whatever>".
Once I got this exception running the app under debug, but the stack trace was not really much useful, because it ended somewhere in Forms.Control.UnsafeNativeWindow bla-bla-bla, and there wasn't a single line of my own code.
This exception can happen (but not limited to) when a LinkLabel is clicked, or just it is running idle, nothing special going on, and the exception is thrown.
Language: C#
OS: Windows XP (SP doesn't matter)
.NET 1.1
Can someone give me any insights into it?
P.S. I've attached a handler to Application.OnThreadException, but this exception is somehow not caught
Regards,
Serge (Logic Software, Easy Projects .NET site)
|
|
|
|
|
Hi all,
I have a textbox driven windows form created in C# and linked to a dataset. On the form, I have an add button that should allow the user to add a new record. How do I create a new record in the dataset which would be updated with values from the user?
I tried the following:
<br />
private void addBtn_Click(object sender, System.EventArgs e)<br />
{<br />
this.BindingContext[this.salesDs1,"Salesperson"].AddNew();<br />
}<br />
<code><br />
<br />
which causes this error:<br />
<br />
Error: Index and length must refer to a location within the string<br />
Parameter name: length<br />
<br />
Please help!!
|
|
|
|
|
There may be a better method, but the way I have been programmatically creating new rows in a dataset is like so:
private void addBtn_Click(object sender, System.EventArgs e)<br />
{<br />
System.Data.DataRow NewRow = new YourDataset.Salesperson.NewRow();<br />
<br />
<br />
<br />
<br />
<br />
this.salesDs1.AddSalespersonRow( (Namespace.YourDataset.SalespersonRow)NewRow));<br />
<br />
}
Btw, where I used YourDataset, that's not the same as this.salesDs1, YourDataset would be the the type that this.salesDs1 comes from. It'll probably be an .xsd file in the Solution Explorer.
Hope it works for you! Good luck
|
|
|
|
|
Hi all,
I have a textbox driven windows form created in C# and linked to a dataset. On the form, I have an add button that should allow the user to add a new record. How do I create a new record in the dataset which would be updated with values from the user?
I tried the following:
///
/// Add a new record
///
private void addBtn_Click(object sender, System.EventArgs e)
{
this.BindingContext[this.salesDs1,"Salesperson"].AddNew();
}
which causes this error:
Error: Index and length must refer to a location within the string
Parameter name: length
Please help!!
|
|
|
|
|
Hi,
Is there a tool out there with which can Monitor WndMessages/Events. Something like a .Net Spy is what I'm after.
Thanks in advance.
Matthias
If eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs.
(Lounge/David Wulff)
www.emvoid.de
|
|
|
|
|
|
Not ererybody is the proud owner of a Visual Studio.
I do my development in SharpDevelop, which is a free tool for .Net coding.
Besides that, I've expected the .Net Spy im after to be more .Net centric perhaps...
btw, I've found two articles here, whic in combination make up pretty much what I was after. Just for the folks reding this, here they are
http://www.codeproject.com/csharp/controlinspector.asp
and
http://www.codeproject.com/dotnet/wfspy.asp
Sorry for not conforming to the clickety policy, but I'm a happy user of Firefox
Have fun everybody,
Matthias
If eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs.
(Lounge/David Wulff)
www.emvoid.de
|
|
|
|
|
Try the shareware tool Girder[^]. It's for windows automation and allows capturing of windows messages. I think you'll find the function when playing around a bit.
www.troschuetz.de
|
|
|
|
|
REALLY a nice signature
is it copyrighted?
hehe...
-- rien ne va plus --
|
|
|
|
|
|
I made my own version of Spy++ in C# 2 and a half years ago. =)
Was just testing and getting used to API in C#...
It's downloadable @ http://drvoodoo.com under the name 'Titanium Ice'
since it does a lot of crap.
|
|
|
|
|
hi, is it possible to create a program or script that will display help message when user click ctrl+alt+del, for example when they try to logon to windows..and the pc inform them about their initial password.
user is new and computers will be in a domain.
Thanks
|
|
|
|
|
Not usless you rewrite the GINA.DLL, which you can't do in C#.
Your app will never see the desktop and will not get any keyboard or mouse input so long as that logon Window is displayed (security reasons).
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
Setp one.
i have one panel control in my form. I am spliting this panel control into two part say working region and holding region. This spliting is only logic spliting.
That is i am dividing(logically spliting) panels few portion (region) for working region and the remaining for holding region. This much explanation is fine right.
Result :It's working properly.
Step two.
Next stage is based on user request ( Dynamically ) i am adding one label control into panel.
Say for a button click my logic will create a label control dynamically and it will add that label control into my panel's holding region. This much thing will do by the button click event handler.
After this user will drag the dynamically created control from from panel's holding region and will droup there in panel's working region.
( This dynamically created label is a custom control which inhrited from windows Label control.)
Result : It's working properly.
Step Three.
The autoscroll property if panel is set true. Why because user will create n number of label's. And he need to place it in somewhere in panel. User can deside and re-arrange the label control inside the panel.
Result : It's working properly.
Step four:
Just think. For user one label means his one work status. User can join more than one work status into one work status.(tecnically speaking we are joining two label controls into one label control.). if user join two or more work it will create a single control (after combining the selected control into one) and automatically come there in holing region of panel.
The remaining process will continue like the step two.
The control will be there in holding region of panel for all movement of hori or vertical scrolbar.
This won't dispose or remove the control from that holding region.
Result : It's working properly.
Step five :
Like work joining , i can split one work into fifferent work or i can de couple joined work (step four) into individual works. In this situation i am dynamically creating n number of label controls and place it in that holding region.
( You will get n number of individual work if split a joined work using n number of individual works).
So all controls will come there in holding region.
here my problem start's.
If i am moving my horizontal scrollbar then suddently the controls there in holding region ( not in working region ) will vanish from my panel. this problem is only with horizontal scroll bar.
Any body knows what is happening behind this ?
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
Hi!
I'm want write application use dial and answer telephone via tapi3,but I do'nt know.
Please help me!
Thank!
|
|
|
|
|
There are some reported problems when using COM Interop with TAPI3.
Most people opt for using either their own COM wrapper around TAPI2 or use this one at GotDotNet[^]
If you still want to use TAPI3, then the platform SDK and MSDN have some samples (although not C#) but they aren't hard to convert as the code is straght forward. See Tapi QuickStart[^]
Personally, unless you have a really good need for using TAPI and C#, I'd avoid it. TAPI is hard enough to learn without having the extra complexity of Interop.
Michael
CP Blog [^]
|
|
|
|
|
Hi, guys
I wonder whether there is a tool in Studio .net 2003, which could be used to draw bit pictures.
Thanks
vigorous
|
|
|
|
|
hi forum,
I would like to validate X.509 public-key certificates in my C# application using the OSCP protocol. Do you know if there is a Microsoft API or library for client side OCSP?
Thanks in advance.
|
|
|
|
|
How to call Windows API in C#?
|
|
|
|
|
|
Thanks jay,
That did the trick.
Gaurav
|
|
|
|
|