|
Thanks very much...;)
123456789
|
|
|
|
|
Hello,
I am using config file in C# form application. I have provided UI which takes the data form user and on request saves the data to the Properties.Settings.Default.MyVal
The problem is that internally(while debugging the application i saw) it knows that the particular data has been modified and reads the modified data but these changes are not reflected in app.config file.
How should i save the data to the Properties.Settings.Default.MyVal file so that it reflects to the app.config file exacly.
Thanks.
|
|
|
|
|
gajesh wrote: The problem is that internally(while debugging the application i saw) it knows that the particular data has been modified and reads the modified data but these changes are not reflected in app.config file.
I had a couple of thoughts on this, though I'm not an expert:
When you are running in debug mode, I thought it wrote changes to a temporary config file in the Debug directory rather than in the project directory. You might check that.
Also, how are you writing out application-scoped settings? I know that user-scoped ones can be assigned, but I thought application ones were read-only. I know you can read the XML yourself and do it, but I *thought* only user settings were writable.
Good Luck!
It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?
|
|
|
|
|
HI,
I hope anyone can point me to an article or anoyher aource
where i can find out how to handle COM(Serial Bus) and to
R/W from Hardware Cards,
TNKS
kobkob
|
|
|
|
|
There's at least one article on this site, I used it to handle COM communicaton in .NET 1.1 ( where I needed an external dll, but I think 2.0 has it built in )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
TNK and again TNK
kobkob
|
|
|
|
|
Use the SerialPort class.
Standards are great! Everybody should have one!
|
|
|
|
|
TNK and again TNK
kobkob
|
|
|
|
|
i made a window service haveing window service controler and the window service is also listening Web service from Server.... There is also the timer "tick" and "Elaspsed" used in window service and service controler.... The Service controller is working right but after some time (no spicfic time) Try Catch message appear
that cann't stop New Service (service name) on computer qasim(system name). After this the time are not updated(which i mention in web service that should update) and the service is running and when the exe is running again it work properly but after some time the same situation happen as mention earlier.....
Please Help me some one i m working on it for more then a week......
Qasim AFridi
i am here to learn from u peoples
i am a student and doing my bcs and i am in my last year and wana make some work in vc++
so i wana make any help form here so that is why
|
|
|
|
|
I guess that means this question belongs in the ASP.NET forum ?
Why are you asking us instead of reading the docs for the toolkit ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks dude, I expected answer not your anger
|
|
|
|
|
jebin k wrote: I expected answer not your anger
Anger would imply emotional involvement. Christian has spent too much time here to get worked up about something as unimportant as this.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Actually, I am trying to help. If you post in the right forum, more people who can help, will see it. This is especially important when you're hoping to find someone who is using the same framework as you ( i.e. only a subset of people here ), to avoid having to read the docs.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi, im here again. i created simple console application which logs my documents history activities.and
it runs in hidden mode,it starts when i double clicked.
successfully compiled and it is working fine.
Questions here is:
1. I want run this console to start Automatically without clicking.
2. And also i need to make this application to work in fully invisible.
(example; assume that console application currently is in a folder, when i open this folder it should run automatically in INVISIBLE mode.
thanks and great to one that help me.
so much of happy ending...
|
|
|
|
|
go for windows service than console application
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
You launched another thread on this subject two days ago.
This is what you can do to have it invisible:
- forget about Console app, it shows a Console by default, and would require P/Invoke
to become invisible after it has been visible
- create a Windows app and modify it such that it does not (initially) show its main form;
the ApplicationContext class helps you do that.
- you may want to choose a Windows service, depends on whether it should run also before
someone got logged into Windows.
This is what you can do to have it launched automatically:
- if not a Windows service, put a shortcut to it in your personal Startup folder
- if a Windows service, read MSDN (maybe here[^])
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
hi, is there any simple way or code that i can use to convert a decimal into a hexadecimal?
Thanks in advance
|
|
|
|
|
I dont think there is any inbuilt function for these
you need to do it manually
Paras Kaneriya The difference between genius and stupidity is that genius has its limits.
|
|
|
|
|
Hello,
this[^] looks promising!
All the best,
Martin
|
|
|
|
|
There is no direct conversion.
First parse the decimal string into a numeric value. Example:
string dec = "123";<br />
int num = int.Parse(dec);
Then format the number into a string in hexadecimal format. Example:
string hex = num.ToString("x");
You can specify the number of digits you want in the hexadecimal number:
string hex = num.ToString("x4");
---
single minded; short sighted; long gone;
|
|
|
|
|
int value = 15;
string hex = string.Format("{0:x2}", value);
Console.WriteLine(hex);
Console.ReadKey();
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
My program needs to create a child process to execute some task in.
What should I use for the communication between the parent and child process?
Using .NET Remoting with TcpServerChannel displays a Windows Firewall warning. It is an requirement that no such warning is displayed. I get no warning if I use a TcpListener with LocalAddress=IPAddress.Loopback, but how can I use that TcpLiostener with remoting?
Optimal would be if I could use .NET remoting around a stream I create myself. I don't want the discovery / re-build lost connection / etc. features.
|
|
|
|
|
Hi Daniel,
Have you looked into named pipes? There is a codeproject article[^] (multiple parts) on it.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Named pipes just give me a stream like I get with TcpClient, but how can I use .NET Remoting on a stream?
|
|
|
|
|
There is an article on doing that here[^].
If you are not tied to .Net Remoting, you could also simply serialize the object you wish to send to an array of bytes, send the bytes over to the child process, and then deserialize the object. This would require that both the parent and child process have visibility (e.g. reference) to the object type. Where as with remoting a proxy object (that doesn't actually have any implementation) could be used by the child.
Let me know if this helps or not.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|