|
OriginalGriff wrote: Nice computers don't go down
Gotta be worth a 5!
DaveIf this helped, please vote & accept answer!
Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
|
|
|
|
|
"You can never save too often!" -- I agree completely. When I first picked up on C++ I had a really old Windows 98 SE system. I received crashes quite often due to low memory, CPU, etc. At that time I typically only saved when I got ready to test new code I had added. When it would crash I would lose so much work.
So I have made a frequent habit of hitting Ctrl+S. Even if I add a previously forgotten punctuation mark in a comment, I usually go straight to Ctrl+S.
Thanks everyone for your responses. I don't feel so odd about it now.
|
|
|
|
|
Don't let a PC lull you into a false sense of security.
"It hasn't crashed for ages! just means it's waiting for the most inopportune moment to do the nasty on you.
Save often.
Copy files from project to somewhere else if you don't use source control.
If you go for source control look for one that works rather than SourceSafe.
|
|
|
|
|
Hello,
I want to know how can i encrypt an xml file that contains my connection string properties include username and password.
Thanks a lot.
|
|
|
|
|
|
If you're using SQL Server, use integrated security instead.
|
|
|
|
|
If you read and write the XML file using a text or XML streamer, you can just plug a CryptoStreamer in.
|
|
|
|
|
Hi,
I'm writing an application so that I can hotkey between several different applications. I know how to register and unregister the hot keys, where I need help is obtaining the windows title to compare and give that application focus. What I believe needs to happen is I need to iterate through each window/form to determine if this is the correct one, then switch to it.
Any help or if you know of a programming example it would be greatly appreciated.
Thank you,
Glenn
|
|
|
|
|
I think you may be taking the wrong approach. IIRC, when an application registers a hot key, Windows notifies the application when the hotkey sequence is triggered. What you seem to want to do is build a master app that directs notifications to other apps. See this[^] recent article.
/ravi
|
|
|
|
|
What I'm actually trying to do is setup fast pathing to an application. IE: If I hit the 1 on my numeric keypad it will go to my email, 2 will take me to Visual Studio, 3 will be my browser, etc.
Glenn
|
|
|
|
|
|
Unless you are doing it yourself in code for the practice and experience just install the MS IntelliType driver and you are done.
|
|
|
|
|
You do not really need any app for that. This should work just fine:
- on the desktop, create one shortcut for every app of interest;
- double-clicking it would already run the app;
- for each such shortcut, right-click and choose properties; now click in the "shortcut key" box and hit the key you want to associate with (or hit DEL to remove).
BTW: I trust there are ways to get this done by code too.
|
|
|
|
|
Hi!!
I need some help...
i cant connect to a a client running on a pc over net..
i got 2 programs one client and one server... running successfully when i give my local IP address...
But when i change the local IP address to External IP address... it not working.. plz help me.. i want it to run over internet...
Thanks in advance...
client:
<code>
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Net.Sockets;
public class clnt {
public static void Main() {
try {
TcpClient tcpclnt = new TcpClient();
Console.WriteLine("Connecting.....");
tcpclnt.Connect("120.56.168.186", 8001); // use the ipaddress as in the server program
Console.WriteLine("Connected");
Console.Write("Enter the string to be transmitted : ");
String str=Console.ReadLine();
Stream stm = tcpclnt.GetStream();
ASCIIEncoding asen= new ASCIIEncoding();
byte[] ba=asen.GetBytes(str);
Console.WriteLine("Transmitting.....");
stm.Write(ba,0,ba.Length);
byte[] bb=new byte[100];
int k=stm.Read(bb,0,100);
for (int i=0;i<k;i++)
Console.Write(Convert.ToChar(bb[i]));
tcpclnt.Close();
Console.ReadLine();
}
catch (Exception e) {
Console.WriteLine("Error..... " + e.StackTrace);
Console.ReadLine();
}
}
}
</code>
Server:
<code>
using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
public class serv {
public static void Main() {
try {
IPAddress ipAd = IPAddress.Parse("120.56.168.186"); //use local m/c IP address, and use the same in the client
TcpListener myList=new TcpListener(ipAd,8001);
myList.Start();
Console.WriteLine("The server is running at port 8001...");
Console.WriteLine("The local End point is :" + myList.LocalEndpoint );
Console.WriteLine("Waiting for a connection.....");
Socket s=myList.AcceptSocket();
Console.WriteLine("Connection accepted from "+s.RemoteEndPoint);
byte[] b=new byte[100];
int k=s.Receive(b);
Console.WriteLine("Recieved...");
for (int i=0;i<k;i++)
Console.Write(Convert.ToChar(b[i]));
ASCIIEncoding asen=new ASCIIEncoding();
s.Send(asen.GetBytes("The string was recieved by the server."));
Console.WriteLine("\r\nSent Acknowledgement");
s.Close();
myList.Stop();
Console.ReadLine();
}
catch (Exception e) {
Console.WriteLine("Error..... " + e.StackTrace); Console.ReadLine();
}
}
}
</code>
Can u tell me how shud i use a DNS server... how can i use it to use my program over the internet... plz.. i need to know this.. this is bugging me a lot..
-- Modified Tuesday, August 10, 2010 10:50 AM
|
|
|
|
|
Access to your remote PC is likely being blocked by a firewall.
/ravi
|
|
|
|
|
My client when runs first time.. a firewall exception will be added.. i'll do it myself..
|
|
|
|
|
...and is the address of the remote PC really that PC's address and not the address of the modem?
|
|
|
|
|
|
Can Any body suggest me some white library tutorials
Thanks in Advance
PK
|
|
|
|
|
What is a 'white library'?
|
|
|
|
|
a collection of white papers?
|
|
|
|
|
Well a large collection of books with nothing in them.
So a notebook store.
I'd say a scientology library but that's a collection of sci fi.
|
|
|
|
|
Microsoft introduced a number of interesting technologies with .NET 3.0 including WPF, WCF and WF that have generated a lot of noise. But also quietly included what was a powerful technology, UI Automation (UIA), which slipped under many people’s radar. UIA is a .NET library that allows you to identify UI controls, get their property values and manipulate them on Windows platform. It represents a big step towards having a usable programmatic interface to the Window’s UI. Prior to UIA one could have used the Windows Message API, but it dealt with very low level C functions. As one would expect, functional test automation is a natural way in which such a library can be used. White does that.
|
|
|
|
|
|
Nope
i m talking abt the UI Automation....
white library from dot net
|
|
|
|