Answer Questions
dream pro designer Windows does not recongize that i just insatlled a new program.
I'm writing up a setup application, and when I install the exe file, Windows does not reconginze that I just installed a new program. Do I need to create a registry file If I do, does anyone know how to create one and what do I need to put in there in order for Windows to reconginze that a new program has been installed. Thanks, Brandon Do you know where i can start, articles.... Thank you... I wrote the code myself...Do I need a registry script to install this program Thank you for responding. B I'm afraid I don't know. If I find anything I will be sure to post. Take a look at this, it *may* help: http://en.wikipedia.org/wiki/Windows_registry I would also suggest looking at standard applicati ...Show All
tackett Handle use in vb.net
Hi All, I've to copy clipborad information to metafile and I've to pass handle to win32 dlls to work it out but I dont know How to intialize a handle as I never used Hanldes. can anyone throw light on how to intialize handle in vb.net Thanks in advance, Hi Rama, Could you be more specific about what API do you want to use If you mean you have the problem with P/Invoke, here is a reference. http://msdn2.microsoft.com/en-us/library/42b9ea93.aspx ...Show All
Salim Hemdani Change cursor problem
Hi, i got problem when i tried to build and run this: this .Cursor = new Cursor (GetType(), "pen.cur" ); or this .Cursor = new Cursor (GetType(), "Resources/pen.cur" ); I got thrown by NullReferenceException I have embed it under resources, change its Build Action properties to Embedded Resource . And it is under Resources folder that i have created. What's happenning Okay i got it... Aaron, what you means is the Debug option on Project Properties rite i tried by putting this to Command Line Arguments field: /res:pen.cur,namespace.pen.cur Still no cure... Is it really we can't use the cursor type to set as a cursor, and have to use icon type image Followed Msd ...Show All
Tariq Mehmood pdf
How do i write to a pdf file in C# I usually use the open source SharpPdf library to create an pdf. ...Show All
bloodCLASSIQUE datagridview parent relation selection changed event?
I have 2 dataGridView's using the parent/child and datarelation technique. when a row is changed in the parent, the child's data rows update to reflect the newly selected key. I need to know which event fires when the child's dgv data is updated ( as a result of the parent's row selection being changed ). Can anyone help, I appreciate it very much.... thanks, -stellar The bindingsource's listchanged event will fire Public Class Form1 Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load Dim strConn As String = _ "Server = .\sqlexpress;Database = NorthWind;" & _ "Integrated Security = SSPI;" Dim ...Show All
GetCode Reading from XML and bound to DatagridView : Adding rows dynamically
Hi All, .NET 2.0, Win Forms, C#.NET, DataGridView control, XML datasource. I am using XML as a Data Source and try to bind the source into the DataGridView control in WIN forms. I have the XML source which has something like this... < EventsGroups > < Event > < EventName > Event </ EventName > < EventDescription > Event description </ EventDescription > </ Event > </ EventsGroups > The description should bound to the Description column which i defined in the datagridview control...how to do that ... moreover i want to CREATE ROWS with description reading from the XML dynamically .... It would be great ...if anyone help me in this regard.... you please share t ...Show All
Frederick_France How to get pixel color from the screen?
Hi,, I'm new to C# and I'd like to create a "Eyedropper" tool e.g. I want to be able to pick a color from anywhere on the screen, based on cursor's position. I found couple examples using "gdi32.dll" for VB (for example: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=74273&SiteID=1 ) but I wasn't able to transform the code to C#. Can anyone help me with this please thanks a lot wyktor maybe this would be of some help http://www.bobpowell.net/eyedropper.htm Thread moved to the appropriate forum Thanks very much, this is exaclty what I was looking for:) glad I could help! ...Show All
Xiao Feng Tab through Tree nodes
Hi, How to tab through tree nodes in windows form Thanks Balamurugan Check my answer in the other thread you started with the same question. Hi Mark Dawson, Thank you for your information --- Balamurugan Hi, you may get more answers asking this in the Windows Forms forum: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=8&SiteID=1 Mark. This was harder than I thought - so I have blogged how to do this, take a peek http://blog.the-dargans.co.uk/2007/01/navigate-treeview-with-tab-key.html Ross Dargan ...Show All
mumle .NET app checks for original install location before running?
It appears that when I install/deploy my .NET 2.0 app using a Deployment Project within my app solution, the first time my app runs it checks the the MyApp.MSI in the location from where the install was originated. Is there any way to prevent this behavior My app is NOT deployed as a ClickOnce app and is not published so I don't understand why this check is happening My deployment files are: Setup.EXE MyApp.MSI CRRedist2005_x86.MSI What I usually do is combine these three files in a single WinZip self extracting to produce an end result of MyAppSetup.EXE. This all works fine with ONE exception, WinZip self extractor will remove the above 3 files from the temp folder it creates. This becomes a problem because when I click on th ...Show All
MartinHN Scrolling a panel containing graphics
I actually call this form from another form. When it loads I see it flicker as it paints, but then it just shows up blank. If I click on the form, then it actually redraws the graphics. The main problem I am having is in the scrolling of the panel. When I scroll it ends up a big mess and doesn't work as needed. I know it has something to do with the AutoScrollPosition.X and .Y, but I've added it to the DrawLine methods in the x1, x2, y1, y2 points and still doesn't work the way I am expecting. I just need it to scroll smoothly. Maybe I don't understand the scroll, but I thought I am still technically drawing at zero even if the scrollbar is all the way down and I have to use the scrollbar position to draw the images so it appears as if it ...Show All
Tobey79 dialog window looses modal state when the main form is resized
Hi everyone! I have this main form in maximised state from which various dialog windows are launched in modal state. Unfortunately when the main form gets resized (due to the taskbar being resized for example) while one of these modal dialogs is displayed the dialog looses its modality. I discovered this the other day and it is very annoying. Does anyone know a remedy Cheers george Thanks for the reply Peter. This is an example of how i am calling a dialog window. By the way i am using VC++ with .NET 2003 'mainForm' is the application's main form which is always maximized and has a main menu with a member called 'menuItemSimltrs'. 'mainForm' also has an event handler for handling clicks of 'menuItemSiml ...Show All
LSS Override schema with tag attribute?
This doesn't seem to work, but maybe it should....i want to override the schema's label MaxLength setting within one label tag, giving the tag an attribute of MaxLength = "400". Should that work How about an attribute for the label of PercentWidth = "100" Mark, it's hard to understand what are you taling about. Try to better express your ptoblem. I want to be sure the form width of a witd fits on a screen smaller than my dev screen. But if i set the maxlength or fixedwidth to say, 400, the form still stretches as wide as the larger screen. I also would like to know how to be sure the form is never hidden behind Team Explorer. Thanks for asking. Mark - Can you provide more detail about what you tryi ...Show All
Ralf_from_Europe Insert Query Failed Schema
I am trying to run an insert query through the table adapter and I go into query builder and create the insert query, I click execute query and it works, but, when I try to save the query I get an error message with a yellow exclamation point under the search criteria builder saying 'failed to get schema for this query'. The two tables are identical. All I want to do is send the data from one table to another table. I don't get it. Here is the code. INSERT INTO [Test Input] (Name, Chart) SELECT Name, Chart FROM Test WHERE (Name = '1') Let me know if someone knows what I am doing wrong StringBuilder sb = new StringBuilder(); sb.Append("INSERT INTO [Test Input ...Show All
daijun How do I verify if a file exists before I try to open it (csv) for writing openmode...
I have a program the writes to a cvs file but I need to kill(c:\\file.cvs) before I open it, but if the file does not exist i get an error how can i validate the file.cvs exist before I try to kill it IE if file.cvs exist then kill(c:\file.cvs) end if I would suggest creating a new instance of the FileInfo class and use its Exists method to determine if the file exists. Using it in your app might looks something like this: Dim file As New System.IO.FileInfo("c:\artists.gif") If file.Exists Then 'Validate File 'Delete File End If 'Create new file Does this work for you If system . IO . ...Show All
ender&#35; How to create a shortcut (ENTER hotkey)
Hi all, I want to assign a specific shortcut to a button. I cannot see this property in VSTS so I understand is needs to be done in the code. Does anybody have a C# sample to do it Thanks, Bertrand No, a better solution is to set the Forms AcceptButton property to your button. It will now show up as default, and Enter anywhere on the form (except in controls which handle Enter) will press it. Thanks Sean, very nice feature. What if I want to set up ENTER as the hotkey This is correct, but in my case I actually need to perform the ENTER only when the focus is on a particular text box. But I will be more the ninterested to see the Form.AcceptButton code, do you have an example Actually, no c ...Show All
