I have created C# application, which creates a image file on Desktop. It works fine on XP and Vista (admin account) but it fails to create image file on Desktop in Vista (standard account). Whether i have to include manifest file to the application to work properly? If i add manifest, will it work on XP without any problems? Sorry if it is lame question. Thanks in advance.
Try
Posts
-
vista and xp -
opacity problemThank you. Thanks a lot for your time and support. I am grateful to you.
-
opacity problemThank you very much for your help, but i am not getting the result. Will you please elaborate? Have you set panel dock to fill?
-
opacity problemHi All, I am using C#. I have a empty Form. When i move mouse on the Form, i am displaying the x and y position of mouse using DrawString() method. Graphics grx = e.Graphics; string xy = "X: " + cursorPos.X.ToString() + "\nY: " + cursorPos.Y.ToString(); grx.DrawString(xy, font, brush, cursorPos.X, cursorPos.Y); The above code snippet is in Paint event. Hence the x and y values move along with cursor. My problem, When i change the opacity of Form from 100% to 10%, the Form becomes transparent. Even x and y values (displayed using DrawString) becomes transparent (faint). I want the x and y values to be displayed clearly even if Form is transparent. How can i achieve it? Thanks in advance.
-
which API to use?Hi All, I was using "FTPWebRequest" API to upload file to ftp server. Now the requirement has changed the host server can be ftp, http or anything. which API should i use for my client app (to upload file). Please help me. Thanks.
-
equivalentWhich technology in .Net is equivalent to EJB?
-
Auto Run ApplicationGoto Start>Programs>Startup right click on Startup and select "Explore". Startup folder will open. Copy your application to Startup folder. Done.
-
primary keyI will update a field (Say fieldName)in the application. A trigger is executed outside the application in oracle, which changes the value of another field (Say fieldNumber=1, Now changed to fieldNumber=2 after trigger). The method i follow after field update is : 1. Update (fieldName) to database 2. Refresh the updated value and trigger changed value (fieldNumber=2) to text box. I am doing refresh using select statement .. where ... (select * from tbl where fieldNumber=1) Since the trigger changes value outside application, my select statement's where clause have old value (fieldNumber=1). It fails. Hence i want to know the primary key of the table and use refresh using select statement (only primary key)..
-
primary keyHow to determine which field in a database table is the primary key (in OLEDB or ODBC) using MFC (VC++ 2005)? Thanks in advance..
-
GetProfileIntThank you..
-
GetProfileIntI created the .ini file manually in C:\ drive and added following [Section] a=1 b=2
CWinApp *pApp = AfxGetApp(); free((void*)pApp->m_pszProfileName); pApp->m_pszProfileName = _tcsdup("C:\\myfile.ini"); pApp->GetProfileInt("Section", "a", 0);
But GetProfileInt() returns 0 instead of 1. I went through the registry. There was NO entry of ini section and entry, since i have created ini file manually. Whether GetProfileInt reads only registry or both registry and ini file? -
primary key fieldHi All, I am using VC++ 2003 and Oracle 10. I have created a table in Oracle. The table has ten fields including a primary key (field). Is there any function in VC++ to know the extracted field (from database) is primary key? I am using ODBC..
-
How to resize rectangle?Hi All, I am drawing rectangle on the form. (VC#) I am able to resize the rectangle when rectangle is at zero degrees. For example, if i want to resize top right: rect.Y = mousepoint.Y; rect.Height += OriginalRect.Top - mousepoint.Y; rect.Width += mousepoint.X - OriginalRect.Right; whereas 'rect' is rectangle after resize, 'mousepoint' is mouse pointer while mouse move. But When i rotate rectangle at, say 30 degrees, I have the problem, the above code won't work. I need to change x, y, width and height. How to do it? I just want a clue. I want to make sure that i am using Visual Studio 2005. This app is NOT WPF. Thanks in advance.
-
embed cursorI got the answer. http://www.codeprof.com/dev-archive/37/9-31-373566.shtm Thank you.
-
embed cursorIt does NOT work.. Thanks for your reply.
-
embed cursorI need to embed a cursor file into the application. How to do it? The procedure what i have followed is: * I added a existing cursor file into project. * Changed the "Build Action" to "Embedded Resources". * Code: Cursor newCur = new Cursor("xyz.cur"); this.Cursor = newCur; But it is throwing exception "Could not find file C:\App\rotate.cur". I want to embed the cursor in my application.
-
which is best option?Thank you very much.
-
which is best option?I have 10 different classes in an application. I need to access a constant (int value = 125;) in all ten classes. Which is better way of following two options? 1. Declaring int value = 125; in all classes or 2. creating static class public static class Constants { public static int value = 125; } using it as Constants.value in all classes. Any other best option? Thank you in advance..
-
resize rectangle [modified]Oh! I am sorry. I am actually using VC#. I have edited the post.. Confusion...
-
resize rectangle [modified]I am using VC# GDI+ When i click on the form, a rectangle with Tracker (with resize and rotate options) is added. I can resize rectangle by dragging the corners of the rectangle (tracker). I can rotate it too. When the rectangle does not have any rotation, if i drag the topleft corner, the logic is moving Rectangle's X and Y position and modifying the width and height, then it works fine. But the question is that after i have rotated the rectangle (ex:30 degrees), the TopLeft corner dragging will take something wrong with the Top/Left moving and width/Height modifying logic. How can I correctly resize the element which has been rotated? or how can I correctly calculate the Top/Left displacement through the TopLeft corner dragging? Thank you in advance.
modified on Thursday, January 31, 2008 8:16:40 AM