Answer Questions
George_G How to register custom file type
What would be the best way to go about registering a custom file type (with custom icon) and associating it with the application being installed in a Windows Installer project You can use the File Types dialog. You can display by doing the following: In Solution Explorer , right-click on your Setup project and choose View -> File Types . ...Show All
Carlos Magalhaes Disable the X
Is there anyway that i can disable the X close button but i still want to have maximize and minimize. I just want X to be either gone or X to be grayed out so it can't be used. Dim frm as new FormX frm.controlbox = false hi, I tried out this coding. but i am getting this error. 'User.CreateParams': no suitable method found to override Can u suggest some solution for this. Tha ...Show All
normschaef Some problem about columns of DataGrid
who know How to add/insert a column to datagrid How to lock a column in datagrid like MS Excel How to hide/show a column please The DataGrid itself does not have rows or columns. It only shows the rows and columns of the da ...Show All
Pedro J. Molina Only Allow 2 decimal places in a textbox.
I have a textbox which contains interest rate. (e.g. 89.56, 100.00 etc) How do I disallow user type in more than 2 decimal places. (user cannot type in 89.5678 or 80.876876967896) Thanks! private void textBox1_Validating(object sender, CancelEventArgs e) { try { Double val = Double.Parse((sender as TextBox).Text); (sender as TextBox).Text = val.ToString("N2"); } catch { errorProvider1 ...Show All
Deano05 Invalid Command Line Argument
Hi, I am using the bootstrap to run my msi project as well as install windows installer if necessary. Everything is fine and dandy in my VC6 but in VC8 I can't get it to run silently. If you look at the command line parameters of the bootstrap "setup.exe", any argument not recognized should be passed on. This does not seem to be the case. If I run my msi project directly from a cmd prompt it works fine, if I run it using msiexec it ...Show All
DeepScratch How to change the backcolor or set backgroud image for tabcontrol
Anybody know that or bug thank in advance Thank you very much . your information is very wonderful. wangjin I don't know the answer to your question but you might want to take a look at this TabControl FAQ: http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c93c.aspx if place a tabcontrol in a panel with white backcolor , add a tabpage with white backcolor, you will see all is white&n ...Show All
Andrew Stopford Browsable attribute breaking change?
There seems to be either a bug or a breaking change with the Browsable attribute. With V1.1 of the Framework, we could mark properties with Browsable(false) and they would not be displayed in a PropertyGrid. Worked great. Now, with V2.0 of the Framework, nothing can bind to a property that's marked with Browsable(false). An exception is thrown from BindToObject.CheckBinding (see below). The exception and stack trace is exactly what you ge ...Show All
Mike Blaszczak TextBox-Invisible at runtime inspite of "visible=true.".Windows 2003
Hello All. I am having a weird problem with my application.I have 2 machines both are windows 2003,installed with .Net Framework.I have a application that had a DataGrid and couple of buttons and some textbox.Every component is set =true for visible. But for ...Show All
FHeNuS capicom error when trying to publish winapp onto local IIS
i have win xp sp2, vs2005 RTM, and i have a simple win form app. it compiles ok, but when trying to publish it into my local IIS i get those errors: 1. Cannot publish because a project failed to build. 1 1 WindowsApplication1 2. SignTool reported an error 'Failed to sign bin\Debug\WindowsApplication1.publish\\setup.exe. SignTool Error: Signtool requires CAPICOM version 2.1.0.1 or higher. Please copy the ...Show All
MyRavi This is like playing labyrinth
When we view any document in print preview dialog, where does it save the document such that when me move to next/previous page where it reads the information from . If a heavy document like RTF file having images and large number of page ...Show All
rhalpin Get Color of a Pixel
Hi im new in this forum , i have problem , i want to get the color of a pixel how can i do For example in a picturebox PD:im using vbnet ! Thanks for your answers! thanks, the problem is that i was trying to get the color of a pixel from a Graphics and not from a bitmap ! that is easier. Thanks a lot. If all you need is the colour of one pixel then the getPixel() and setPixel ...Show All
DaedMajaz What is the AddNew method of BindingContext???
I need to try this question again: Does anyone know what the AddNew method of BindingContext Class is It is not documented in the Class Members. Here is the code that generated this question. This code is found on a form displaying one ...Show All
S Tonstad DataFormatString in GridView
I wonder if someone else is suffering the same problem. I found DataFormatString in GridView not work very well when I try to display currency. In VS 2005 Beta version, it works fine, but after I use stardard version, it never display correct. For example: integer 3 always display like 3.0000 but in the beta version, it display like $3.00 which is what I would like. By the way, I assigned datasource, dataadapter and sqlcommand manually, everythi ...Show All
95se5m Creating a Bindable Control
I've been searching and can't find anything on the subject. I'd like to make a control that has a DataSource, ValueMember & DisplayMember just like all the regular WindowsForms Controls. Is there a standard way of doing this Any links&n ...Show All
Gary Smith Howto - Unbound DataGridView
VB2005 Beta 2 From most of the DataGridView(DGV) unbound grid examples: Me.Controls.Add(dataGridView1) dataGridView1.ColumnCount = 5 This doesn't make sense to me. Why do I have to add the DGV to the controls collection if it is already on the form And why is the example messing with the DGV name, size, and location - aren't those set already I tried just adding a DGV control to a form in the IDE then setting the Colu ...Show All
