Answer Questions
Franco22 Windows Installer Deployment
I have developed an application in VB.Net and I now want to deploy it using the Windows installer. I have everything working except that I would like the user to be able to define their own folder in the Start/Programs menu. I have a default and have looked through the File System and User Interface editors. I have included a Usser Interface Text Dialog box to my installation script so the user can define their Program Menu folder or just select the default. I cannot get this to work. I have attempted to use the System folder properties with the custom folder in the File System section of my deployment project but all the install attempts to do is look for a network folder with the name entered by the user. If someone knows how to do ...Show All
chrisryche IComponentChangeService.ComponentChanged doesn't fire
Hey. We have a little problem regarding <subj>: we have a DesignerSurface and a propertyGrid to show the data on a selectedObject (IComponents, as the case may be). Upon changing a property value in the PropGrid - the IComponentChangeService.ComponentChanged event fires, but when changing a property normally in code (either from glyphs or from "external" code) - the event doesn't fire. Is this by design I saw in the reflector that normal (internal) glyphs do not change properties directly but call on a PropertyDescriptor.SetValue(). Is this the only way to get this to work (I should mention that I talk about properties of existing classes, and I cannot add the RefreshPropertiesAttribute hardcoded, or (as it ...Show All
easlern List Of Objects As DataSource for DataGridView and DataGridViewComboBoxColumn
Hi all, I have a DataGridViewComboBoxColumn: Dim cbCol As New DataGridViewComboBoxColumn With cbCol .DataSource = myCatalogoPOS.SubMenus() ' Private _submenus As New List( Of SubMenu) .ValueMember = "Clave" .DisplayMember = "Nombre" End With ------------------------------------------------------------------------------------------------------------------ The DataSource for cbCol is a List of this Class Public Class SubMenu # Region "Miembros Privados" Private _clave As Integer Private _nombre As String ----------------------------------------------------------------------------------------------------------------- Also I have ...Show All
rectis Help in implementation of a magnifying glass
I have an image viewer application which I want to apply a magnifying glass effect on certain area of the image. The problem I've run into is that when I slowly dragged the magnifying glass across (when left mouse down) the magnifying glass window didn't move smoothly. I believe it has something to do with drawing the graphics of the original image on the background. May someone please help me solve this issue Thanks. You are giving us preciously little information to help you. A code fragment would help. Forced to guess: I assume you use a Bitmap buffer to store the area to be magnified. Be sure to create that buffer with PixelFormat32PArgb, anything else is deadly slow. View panel. That's the ...Show All
harveyk MSI installer issue (Soz if this is the wrong place)
I have VS 2005 SP1 for vista beta. I don't have experience making MSI files, so sorry. I can't find the option int he menus/property pages to change the name on the setup file. As in the setup is named "Setup1" and installs to the application folder DefaultCompanyName\. Where are these settings I really tried to look everywhere I could think of. Cheers. hehe yeah. I was working at about 3:30/4am and I wasn't quite thinking straight at the time. Plus I have the vista version of 2005 and the properties box wasn't showing properly. I found it, but thank you anyway for answering my question. Select the setup project in solution explorer, then use View->Properties Window (maybe F4 hotkey). ...Show All
Catalin Zima using mousewheel in treeview
I want to use the mousewheel to scroll trough nodes in a Treeview, selecting und unselecting each in turn as I scroll. This will displays display certain related information about the selected treenode. My problem is that this also scrolls the entire treeveiw display up or down, often hiding the node I am trying to select with the mouswheel. I dont want the nousewheel to scroll the treeview. Essentially I want the mousewheel all to myself after pressing the middle mouse button to start the process. How can I acheive this Also, I cant quite figure how to determine how many mousewheel click occured. (e.delta always seem to be either +120 or - 120, but relative to what ). In practice the user might want to click down several nodes, b ...Show All
Kevin Feasey Redirecting Console Standard Input
I am trying to redirect input from a textbox to a console FTP program. I wish to have the output remain in the native console window. The code below seems to hang, why using System; using System.Diagnostics; using System.Windows.Forms; using System.IO; namespace WindowsApplication { public class FTPForm : Form { private TextBox textBox = new System.Windows.Forms.TextBox(); private Process process; public FTPForm() { textBox.Multiline = true; textBox.Dock = DockStyle.Fill; textBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress); ClientSize = new System.Drawing.Size(500, 400); Controls.Add(this.textBox); Text = "Form"; pro ...Show All
TNinMT how to print chart
hi i want to print chart. iam using mschart control. so that i used the following code. Clipboard.Clear() mchart1.EditCopy() Dim chartcapture As Bitmap Dim iData As IDataObject iData=Clipboard.GetDataObject If iData.GetDataPresent(DataFormats.Bitmap) Then chartcapture = CType(iData, Bitmap) End If e.Graphics.DrawImage(chartcapture, 8, 80) i just copy the chart into clipboard and then convert it into bitmap and then i printed that bitmap. This is working in vs.net 2003 but it is not working in vs.net 2005 one fatal error is coming. The error is The runtime has encountered a fatal error. The address of the error was at 0x7a005c3d, on thread 0x988. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or no ...Show All
Seppe001 Color Management
I'm developing a winforms application in VS2005 that displays a slideshow of images, but I want the display to make use of the icm profile for the monitor/projector. Although i can see that there appears to be something in existence called Windows Color System, I can't find any details about how to use the API, and where I find it (which dlls..). Ideally I want this to work with .net 2.0, although its clear 3.0 has more to offer in the System.Media namespace. Is there a straightforward API available (free!) for a C# program to perform profile transformations of images Or even some DllImport functions I can use. brian smith Hope the following link will help you http://msdn.microsoft.com/library/default.asp url=/library/en-us/dna ...Show All
Hans1982 Flicker using doublebuffer
I created a UserControl which contains a Panel. I created an eventhandler for this Panel's Paint event. In this handler I draw a grid for the background and the a line which links to squares the user can move. Every time the squares are moved the panel is invalidated, in order to redraw the link. Repainting gives a lot of flicker. As in other controls I made, I tried to use doublebuffering in both ways, through SetStyle and the DoubleBufferd property. Flicker remains. I also tried to use one transparent panel over the panel with the grid. The grid needs to be painted only once, while the links are often repainted. So I tried to put squares and links in the transparent panel, but the grid panel is still repainted every time the transparent ...Show All
CCJJ Building the application package.
If I'm using SQL Server Express in my application (MDF) file. I then build the application package to install the application on another PC. Will the installation package install all the required files for SQL Server Express or does SQL Server Express need to be installed as well Cheers!!! Gary Sql Express must be installed on that machine prevously. You can set a prerequisity for SQL Express as a property in Setup project, you can check many prerequisities like .NET 2.0 and also this one. This will help user to download and istall them directly from microsoft all required components. When he start setup.exe it will show the messages for all missing components and a link from where to d ...Show All
tr_sreedhar Run application after installation.
Hi all. How I can run my application after press Exit button in installation wizard I`ve made Install class with overriding OnCommited method, custom action in setup project with CustomActionData = "/path="[TARGETDIR]\" /runAdmin=[RUNADMIN]" (in custom action -> commit folder), additional wizard's dialog with one checkbox (CheckBox1Property = "RUNADMIN") If checkbox is checked my application starts fine BUT (!) before pressing Exit button in installation wizard (after last dialog window appears). What I should do to run my app after wizard's closing/exiting Sorry for my english... There are no features in Visual Studio to tie a custom acti ...Show All
Yash Purohit \r\n problems with textbox
Hi All, I'm making a program which has a textbox, when I try to set the text of that textbox it seems to not allow \r\n to work, a small square box appears in the text instead of a new line being started. I've set the properties of the textbox so that multiline = true and scrollbars = true Does anyone know how I can resolve this please Any help would be gratefully received. Many thanks in advance and kind regards, Rich I just tried this with a TextBox, and just doing: textBox1.Text = "Hello\r\nWorld"; works fine. Thanks guys, you've given me a heads up on where to look. Many thanks and kind regards, Rich it should work. Be ...Show All
Adam Miles User Control Binding
I have Three user control in my form, this get Binding to one table which have three column.In change mode i reterive value and without changing any value in the user control and click on save button the RowState get Change. BindingContext(dBindSet.Tables(intTables)).EndCurrentEdit() Please Help me.. ...Show All
mcrisf SplitContainer Panel MinSize Defect?
I have a vertical split SplitContainer inside the top panel of a horizontal split SplitContainer and am trying to set the panel2 min size for it. I'm getting the following designer error: SplitterDistance must be between Panel1MinSize and Width - Panel2MinSize. This is somewhat confusing first of all, since the change was made in the designer. In the first instance therefore, I'm assuming this is a bug in the designer. The logic of the error message is that SplitterDistance should be between 0 and 560 minus 243 i.e. 317 which at 311 it is. Has anyone else come across this or have a workaround // // splitContainer2 // this .splitContainer2.Dock = System.Windows.Forms. DockStyle .Fill; this .splitC ...Show All
