|
I want 2 write a windows service which can check wheather any user is connected to some prticular machine or not.
Than can copy file from one location to an other location.
|
|
|
|
|
|
What is the difference between internal and private access modifiers? If I declare a method as private and another method as internal, what's the difference?
If I declare a class as private, what happens? Who will be able to use that class?
Hope I find the answers soon, coz this thing is making my head spin round and round?
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
If you search "internal access modifier" in VS, you can find :
<---
internal : Access is limited to the current assembly.
private : Access is limited to the containing type.
-->
|
|
|
|
|
Save My Soul - (SMS) wrote: If I declare a class as private, what happens? Who will be able to use that class?
You can embed one class inside another. The class can be declared as private and only the containing class can use it.
public class ContainingClass
{
private class EmbeddedClass
{
}
public void SomeMethod()
{
EmbeddedClass o = new EmbeddedClass();
}
}
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
|
|
|
|
|
I think mentioning this embedding is crucial to somebody understanding it.
The DJ's took pills to stay awake and play for seven days. - Jim Morrison, Black Polished Chrome.
|
|
|
|
|
Hi,
Just wanted to know whether an Event is Fired when a Disk is inserted into a removable drive.
I checking the DriveInfo.IsReady property right now, but that is not efficient since I have a floppy drive and it takes a lot of time and makes a lot of noise.
Please Help
|
|
|
|
|
No, there isn't.
Windows has no idea that a floppy was insterted into the drive, or changed with another disk, until an access attempt is made on the disk.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hmmm
Ok
Thank You
|
|
|
|
|
hey there i was wondering on the way in which collections of classes can be writen to file one after the other
I am so used to the operators << and >> but am trying a fully managed project that requires files to be encrypted but that is aside this topic.
I have so far just created a Read and Write public function for each class and passed the StreamReader/Writer in to that but this makes for a bit of annoying calls on each item.
Can you overwrite the StreamWriter/Reader input to accept your own classes???
Or I am looking for a managed << >> operator replacement!!
Just get comfitable and they change it all around ... Just like a woman would!!
|
|
|
|
|
HI,
I want to disable the MS OFFICE File Menu options and Tollbar Buttons
by using WINDOWS API's..?
We can do this by using MS OFFICE libraries, but i want do using WINDOWS API's.
IS IT POSSIBLE..?
If so PLZ send reply to : pradpb999@gmail.com
pradeep kumar
|
|
|
|
|
pradpb999 wrote: We can do this by using MS OFFICE libraries, but i want do using WINDOWS API's
Why?
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
|
|
|
|
|
Can anyone guide me to good tutorials on asynchronous calls and delegates? This thing is killing me......
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
|
Hi,
I want to resize the combobox scrollbars, so you can scroll easily on a touch screen
Thx in advance.
Regards
bart
|
|
|
|
|
You can access the scrollbar of combobox from the controls collection of combobox. It will be available as HScrollBar control. Next u can change any of its properties. You can do all this as:
foreach(Control c in comboBox.Controls)
{
if (c.GetType().Equals(typeof(HScrollBar)))
{
c.Width=20;
c.Hight=20;
}
}
Akif
|
|
|
|
|
i need to check status of the internet connection from my windows app in C# ~ i came across two API functions in wininet.dll , the
InternetGetConnectedState() but i learnt that the call can distinguish between modem and LAN, but can't handle complex LAN+autodial router situations ~ and InternetCheckConnection() but it pings a URL to check the state which might take quite some time `
which is the best way to do it ~ if there are other better ways of doing it , please let me know ~
thanks
|
|
|
|
|
How do I detect if there is an Internet connection?[^]
It is sometimes useful for a Winsock program to only do its thing if the computer is already connected to the Internet. In many cases, "connected to the Internet" means having a dial-up networking connection. See this example for code that checks for such a connection.
This doesn't work in all situations, however. The first problem is, not everyone uses a modem to connect to the Internet. Often a computer is hooked to a LAN, and one of the stations on the LAN acts as a gateway to the Internet. You could poke around in the system's network configuration to see if they have a gateway configured, but then you run into the problem that gateways are used for things other than simply connecting a LAN to the Internet. Even if the LAN is sometimes gatewayed to the Internet, the gateway's Internet connection might not always be up, or it might be configured to block access to some sites.
Another issue is that even if the PC does have a modem for connecting to the Internet, it might be disconnected but configured to auto-dial. In this case, the fact that the modem is currently disconnected is not a problem: your program should blindly try to connect, which will bring the connection up.
The moral of the story is, it's usually best not to even check for an Internet connection. Simply assume that the user knows what they're doing by launching your program. Try the connection, and if it fails because there is no Internet connection, you can tell the user about it and leave fixing the problem up to the user. You might also consider making your program's connection handling user-configurable: let the user tell you whether it's correct to check for a dial-up networking connection or not, and whether your program should blindly try the connection or not. Often the user knows more about their system than your program can guess.
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Dear All,
I have installed Windows Server 2003 and Visual Studio 2003 in my system.
After creating web applications when i try to execute,
in the browser the following error message comes.
"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\....."
in this path it is showing some alphanumeric file names like "10g..." and
"Access denied" message.
How can i solve this problem
|
|
|
|
|
Hi,
1) go to the IIS security settings, check the anonymous access as well as windows integrated authentication check boxes and run.
you will get required .
regards
GV Ramana
|
|
|
|
|
Is it possible to check whether an object has subscribed to an event or not? How can this be done. Need help!!!
thanks
-- modified at 2:10 Monday 26th December, 2005
|
|
|
|
|
Check whether the event is null or not.
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
the event is defined in a .net framework class, so can't check if it is null
|
|
|
|
|
analytiks wrote: the event is defined in a .net framework class, so can't check if it is null
Try reflection. Refer to this link.[^]
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
I've already tried the code in the link,it did not work ~ maybe it id due to the fact that subscription to the event is during runtime depending on certain conditions ~ not sure though
|
|
|
|