|
zaftblitz wrote: i want to display data that will keep changing the value by itself.
Wouldn't that be nice? Unfortunately, computers need a little help from we humans. If you need the data in a box to keep changing then you wll need to write some code to do it. The actual mechanism may depend on where the data is coming from, how long it is etc. Without much more detail it is difficult to know what would be the best method to achieve this. I would suggest you try searching among some of the articles here for a few ideas.
MVP 2010 - are they mad?
|
|
|
|
|
I have a windows application that is installed under ProgramFiles folder on Window7 based computer. During the launch of application some questions are asked to the user and written to the .exe.config file using ConfigurationManager.Save() method. This .exe.config file is also in ProgramFiles folder. When a user with Administrator priviledges launch application, everything works fine. But when a Standard User launch same application then application throws ConfigurationErrorsException saying that Access to path .exe.config is denied. It actually points to some .tmp file in same directiory. The name of this tmp file changes ever time user get this error but in the detail of exception always points to .exe.config file. What is the best way of addressing this problem? Remember this config file need to be accessed by all users who login and use this application.
TIA
|
|
|
|
|
The Program Files folder is about the worst place you can put global settings like that. If a normal user doesn't have an admin account, you're out of luck and have to move your settings to somewhere else that is writable by normal users. Think "CommonApplicationData", here[^].
If you're users do have an admin account, then you'd add a manifest file to your project and tell it that the app requires admin priv's to run. This is not the best way to do this since you're essentially forcing users to be an admin on the machine.
|
|
|
|
|
Appreciate your quick reply. So are you suggesting to store .exe.config into CommonApplicationData folder during the installation of project? Can this folder be referred in installed package?
|
|
|
|
|
You can do that or you can have your code create this file on first launch if it doesn't exist. It's up to you.
imak wrote: Can this folder be referred in installed package?
Sure. How you do that depends on which .MSI packaging software you're using. Myself, I use InnoSetup and Wise Package Studio. It don't use the Setup and Deployment stuff in Visual Studio.
|
|
|
|
|
Hello, in Windows XP 64 OS I have my quick launch bar above the taskbar.
When I hover over the quick launch icon I see the tip is behind the bar now that I have it twice as high as normal.
Is there a way to get the tip above the bar?
Thank you,
djj
|
|
|
|
|
How is this related to Windows forms?
BTW you might have set always on top to true for task bar. That should be the reason.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
d@nish wrote: How is this related to Windows forms?
Sorry about that. I saw windows and quit reading I guess.
|
|
|
|
|
I need a program in PHP which can extract the hidden biders from ebay.I will have to insert the item number and the program must show me all bidders of the auction and their emails.
Also the same program must extract the registered contact information for any specified bidder specially the email address
I will pay for this
If someone can help please contact me at totos_back@yahoo.com
Thanks
|
|
|
|
|
You're on the wrong site for that. Try RentACoder.com.
|
|
|
|
|
I have a vb.net that generates a print document with multiple A5 pages. i need to be able to pring two pages per sheet on A4 paper. I am unable to find a property for this in PrintDocument.DefaultPageSettings or anywhere in the PrintDialog settings. Does anyone know a way of acheiving this.
Regards,
Martin
|
|
|
|
|
Hi all
Adobe have an SDK for thier DNG file format which allows developers to code so that DNG file information can be read/written etc but the existing ones that I found where to be compiled for VS 2009, using C++ code
The other was for the MAC O/S
Does anyone know if an SDK for DNG is available for .NET windows forms programming please?
Many thanks in advance.
John
|
|
|
|
|
i want to ask...
can i do serial comunication by using normal window form application using VC++ 2008 because there has an icon in the toolbox show about serialPort..
how ican i do the communication in window form...
|
|
|
|
|
zaftblitz wrote: can i do serial comunication by using normal window form application
Yes
Clickety[^]
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
even if i dont use win32 still can do the serial commmunication??
|
|
|
|
|
Yes, the class I linked to is part of the .NET framework
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
could you give me some example or link to do serial COM just using normal window form application.
actually, what i want to o is to communnicate between PC and microcontroller.
|
|
|
|
|
there are many different kinds of applications and ways to communicate over RS232C or some other serial standard, and you did not provide a single detail.
So I suggest you pick a few from this list[^] and read what you like there.
Warning: if you haven't done it before, serial communication on Windows can be quite complex to get it right almost all of the time, it depends on how high the load is (needed throughput versus available throughput), and how well your messages are structured (assuming a message oriented protocol of some kind).
|
|
|
|
|
thanks
|
|
|
|
|
from the link that you been given before, there more to c# not c++
what i want to do is in VC++ 2008. could you or anyone help me.
PLEASE..................
|
|
|
|
|
Obviously you don't need .NET to access Windows serial ports, however I haven't done that in the last 10 years, and I don't keep any example around. I suggest you use Google (or maybe the CodeProject search facilities) to find relevant articles. IIRC you would need CreateFile (with a special filename), ReadFile, WriteFile and the like.
|
|
|
|
|
I can't find an example of this in any of my books, or the examples in the forum.
I am talking of course, about a menu item that shows an ellipsis, not the blocked in > sign, that must be clicked before the sub-menu appears.
|
|
|
|
|
Nigel Mackay wrote: I can't find an example of this in any of my books, or the examples in the forum.
Because it's non-standard behaviour. How would the user know that he/she needs to click the item, when the standard behaviour is hovering?
In other words, people are used to putting their car into reverse when they want to drive into that direction. Your "reverse" gear will work differently from what the user expects.
Nigel Mackay wrote: I am talking of course, about a menu item that shows an ellipsis, not the blocked in > sign, that must be clicked before the sub-menu appears.
Could be done by adding the sub-items in the click-event, but that might be interpreted as a "choice" and might hide the item alltogether.
I are Troll
|
|
|
|
|
You can simply add three periods to the text of the menu item, then handle the menu item click like you always do, with an event handler. The triple period normally indicates a dialog is to be expected, and a Cancel option will be given. So make your handler do that.
|
|
|
|
|
Of course - no sub-menu items to appear during mouse-pointer "hover"
|
|
|
|