|
Basically the screensaver executes that means it is an exe and you dont need to worry for that windows will handle it
Regards
Pramod
|
|
|
|
|
Hi there,
Basically i'm a noob with C# and web service, and i'm working on my project of building a C# web service to connect between a supplier system and a client system.
For example, a making order task would involve the client system sending that order data to the web service and from there it will relay the information towards the supplier system. I know basically how to send data and receive data from the web service by button clicking event. So the first part shouldn't be a problem. But how do i get it to relay data from the web service to the other system?
And the supplier system is built using c# and sql server, while the client systems which consist of a java with mysql system and another vb.net with ms access. I plan to use the basic template wdsl that is provided by the .net framework, is there going to be any problem connecting to the java system?
Thanks in advance~
"Better live as a horse than the goose."
|
|
|
|
|
How can we validate Textbox and other controls in Windows forms applications?
Also plz suggest the various validation expressions. Any relevant topic for validation in Windows Forms would be a great help................
Thanks,
Sandeep
+919891027854
|
|
|
|
|
Try reading this one[^]
Regards,
Polis
Can you practice what you teach?
|
|
|
|
|
I want to read data from foxpro 2.6, then write data to sql server or oracle, but i can't connect to foxpro 2.6 by odbc
you can help me.
thank you very much!
|
|
|
|
|
hi
my html mail is in correct format at mailroot queue but when send to receipent it is in text format
iam sending mail as html format..after sending in the mailroot queue it is in html format,
but,after the delevering to reeipent it is displaying as text
what is the problem
can any one help.
byeeee
regrds
sree
|
|
|
|
|
Is their anyway to do this besides doing an "out" parameter of type T?
public static T Deserialize <T> (IXPathNavigable xml)<br />
{<br />
if (xml == null)<br />
throw new ArgumentNullException("xml");<br />
<br />
XPathNavigator navigator = xml.CreateNavigator();<br />
navigator.MoveToRoot();<br />
<br />
XmlSerializer xmlSerializer = new XmlSerializer(typeof(T));
<br />
return (T)xmlSerializer.Deserialize(navigator.ReadSubtree());<br />
}
it compiles, but code analysis says i'm wrong.
|
|
|
|
|
The more I see of generics the less I like them!
As I understand it - typeof(T) == typeof(object) here for all T!
Even an out parameter wouldn't be ideal as it could be null - you would want a ref so that GetType() is gauranteed OK.
Alternatively just create a temporary T and call GetType on it - there must be a no-parameter ctor or XmlSerializer cannot deserialize anyway so you can put a new() constraint on T.
Note that you should make xmlSerializer static and create it in a static initializer because creation of a serializer is very time consuming.
|
|
|
|
|
Thx for the help...real good advice.
I don't understand why i wanted to get rid of typeof call anway...was misintrupruting code-analysis warning i think. I found i could just do "default(T).GetType()" in it's place...but this is for bad peformance i think cause it has to initialize zzz...typeof is just fine for gettin the type of a generic.
|
|
|
|
|
Hi everybody,
I am new at this forum. I like to ask if anyone knows how to programatically shutdowns, reset pc? I am using Windows XP. Also, controlling the audio on /off and its volume. Also, Is there api for controling the monitor screen brightness? What is the api for monitoring a specific port (USB)? The TcpCleint and TcpListner is not appraoch applicable. What are the api used to control this functionalities in VB.net or C#?
denpsia
-- modified at 0:36 Friday 9th December, 2005
|
|
|
|
|
Hi! try this[^] for computer shutdown
Aim small, miss small...
|
|
|
|
|
Thanks for reply Tatchung, I have seen similar topic where you use System.Diagnostics.Process Kill Method. That is not the approach I needed, I like a direct approach using api dll.
denpsia
|
|
|
|
|
ExitWindowsEx[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
denpsia wrote: Also, controlling the audio on /off and its volume.
See the Windows Multi Media API. I think you're looking for waveoutSetVolume[^]. Google for examples[^].
denpsia wrote: Is there api for controling the monitor screen brightness?
No.
denpsia wrote: What is the api for monitoring a specific port (USB)?
That is device dependant. There is no one port, or example code, that works for all devices. You would have to consult the developer documentation on the device your talking about.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks Dave for link to the docs, this is for CE, is it applicable in XP? I test it. You specify modem specific to device, there is no commonality between them?
denpsia
|
|
|
|
|
I didn't post a link to anything related to Windows CE. waveOutSetVolume works on Windows 95 through Windows 2003.
When did you mention anything about a modem? Where did this come from? You're not making any sense what-so-ever.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 21:23 Sunday 11th December, 2005
|
|
|
|
|
Hi Dave,
When I saw this waveOutSetVolume method is same method of coredll.dll for Windows CE in one link I saw, So I ask if it is applicable to XP. The modem is connected to the USB I mentioned earlier. I have some project as audio volume task as connecting remote server (VPN) using RAS. That is when I mentioned the modem. Pardon for any misunderstanding in your part.
denpsia
|
|
|
|
|
I still don't have a single clue what you're trying to do. What on earth does audio volume have to do with VPN and a modem on a USB port?
If you have a modem connected to a USB port, you'll communicate with the modem as if it was attached to a COM port, COM1, COM2, whatever. There's nothing "USB special" you have to do.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Currently I am writing a server program, basiclly in a Form when I click a button it starts the server in another thread.
the other thread will recieve message thru the network, and prints the recieved data onto the form. I run this code and I get an exception saying that the listbox is in another thread and cannot be accessed.
I am new to c# threads, I hope some expert can help me
heres how i did it:
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
lstStatus.Items.Clear();<br />
Thread serverthread = new Thread(new ThreadStart(serverThreadStart));<br />
serverthread.Start();<br />
}<br />
<br />
private void serverThreadStart()<br />
{<br />
myServer = new XYNetServer("", Convert.ToInt32(txtPort.Text), Convert.ToInt32(txtminthread.Text), Convert.ToInt32(txtmaxthread.Text));<br />
myServer.SetConnectionFilter(new ConnectionFilterDelegate(ConnectionFilter));<br />
myServer.SetExceptionHandler(new ExceptionHandlerDelegate(ExceptionHandler));<br />
myServer.SetBinaryInputHandler(new BinaryInputHandlerDelegate(BinaryInputHandler));<br />
myServer.SetStringInputHandler(new StringInputHandlerDelegate(StringInputHandler));<br />
if (myServer.StartServer() == false) throw myServer.GetLastException();<br />
Thread.Sleep(6000);<br />
lstStatus.Items.Add("Thread count: " + myServer.GetThreadCount().ToString());<br />
lstStatus.Items.Add("Client count: " + myServer.GetClientCount().ToString());<br />
myServer.StopServer();<br />
lstStatus.Items.Add("Done!");<br />
}<br />
|
|
|
|
|
Usually it is a bad practice to allow the worker thread to access and actually process data on the main thread. Usually what you do is you create a separate class that will contain the thread method along with some data and create an event that the worker thread may trigger when it needs to notify the main thread that it has updated some data. Then the main thread, having subscribed to the event, will learn about the changes and take a look at the data members of the other thread's class and then act on them.
Be carefull though that when two threads access the same data there is a good chance for race conditions to happen. Google for an introductory article on C# Multithreading and do some reading on locks, mutexes.. race conditions and dead locks before you start wrting multithreading code.
|
|
|
|
|
The GUI is not threadsafe therefore ALL GUI operations must be done on the GUI thread.
See Control.InvokeRequired & Control.Invoke
Typically you would want to raise an event on the form and have a thread safe
handler something like:
private void OnXXX(object source,EventArgs args)
{
if( InvokeRequired )
Invoke( new EventHandler(OnXXX), new object[] {source,args});
else
{
}
}
|
|
|
|
|
Hi Goodmorning to all,
i downloaded Nant 0.85-rc3 but NAntrunner was not dowmloaded in my system why?in my System VS-2005 beta 2 version at that time one warning is came about NAntRunner only you can dowlnload 1.1.4322 version but in my system beta 2 version is there how is it possible..
how to run NAnt build tool?,
I want to small example using Nant build tool
Thanks & Regards
Sridevi
|
|
|
|
|
Can Anybody help me in solving this COM problem
I have Created a .Net Windows application in C#.
This application has only a WebBrowser Control. On the Form load event I have navigated to a particular site. (Say www.google.com).
Now I have an Another application that is intended to send keys to this Application.
I’m Using SendKeys.Send () fn. for this.
To my Surprise the webBrowser control is not receiving any of the keystrokes, however the TAB key is working in it.
Then I Opened a normal InternetExplorer page and tried the same. Then that application is receiving keystrokes. I want to know why the webBrowser control (C# application) is not receiving keystrokes.
I will be very grateful to you if u help me in this problem.
THANK YOU
Arun Appukuttan
|
|
|
|
|
Dear all,
Newbie here.;P
I'm trying to formatting the data using BoundItem.
But as the data is retrieve from Database.
eg:
1)
02052006 (the retrieved date)
02/05/2006 (wat I need to show at column)
2)
452300 (the retrieved date)
$4523.00(wat I need to show at column)
I dun sure if I should add some code to do tht....
Can somebody helps??
Thx a lot
Winds^_^
-- modified at 2:54 Tuesday 13th December, 2005
|
|
|
|
|
Hello frends!
Im doing a web form which has a print function. I was wondering if some of you know how to use the PrintDocumentDefaultPageSettings.Landscape method. I've tried a couple of way but failed. I've tried putting it inside page load and my print button though im still clueless how it works . I hope some of you can help me coz im really in the dark here.
Thanx so much for all your help!
Aim small, miss small...
|
|
|
|