Software Development Network Logo
  • IE Development
  • SQL Server
  • Visual Basic
  • Smart Devicet
  • Windows Forms
  • Game Technologies
  • Visual C++
  • Visual C#
  • Visual Studio
  • VS Team System
  • Audio and Video
  • Windows Vista
  • SharePoint Products
  • Microsoft ISV
  • .NET Development

Software Development Network >> Windows Forms

Windows Forms

New Question

using for each
Focus mystery
Adding DataSets To DataSource Pane
RichTextBox events firing order
Constructur arguments for a TypeConverter-derived class
Control values do not refresh
Quick search in datagridview !?
How to change the icon beside a filename in windows explorer?
Form does not refresh if It loses and regains focus
Too Many Handles - Do would YOU code it ?

Top Answerers

JBartz
enric vives
efarook
Andreas Isler
papadi
kanna215
Daniel_Bowen
jesy51
.net sukbir
moerderin
Zyberland I/S
Only Title

Answer Questions

  • EDV Gradl Problem with DateTimePicker and CustomFormat

    I defined an invalid date for my DateTimePicker (1/1/2007) and whenever this date is selected to be displayed on the DateTimePicker, it shows "Undefined date" instead. I did this using CustomFormat. The problem I have is that, whenever I select 1/1/2007 from the dropdown-calender, the calender doesn't close. The DateTimePicker shows "Undefined date" as desired, but the dropdown-calender doesn't disappear as it's supposed to do. I can still select different dates from the dropdown-calender but the DateTimePicker's value won't change anymore. I have to 'manually' close the drowdown-calender using the dropdown-button. When I reopen the calender to select a different date, it won't close again. Only after selecting a 'valid' date and m ...Show All

  • AFTAB Tooltip

    I am using the following code to dynamically create buttons and set a tooltip. But the tooltip does not appear. Any idea what's wrong I am using .NET 1.1. Button b = new Button(); b.Text = sButtonText; b.Resize += new System.EventHandler( this .button_Resize); b.Tag = tag; b.Click += new EventHandler(button_Click); b.Parent = panel1; ToolTip t = new System.Windows.Forms.ToolTip( this .components); t.ShowAlways = true ; t.AutoPopDelay = 5000; t.InitialDelay = 1000; t.ReshowDelay = 500; t.SetToolTip(b, "APPLE"); Thanks in advance. this code works for me: ToolTip t = new ToolTip(); t.SetToolTip(this.theButton, "Test" ...Show All

  • JTB1 How can I Export Data From DataGrid to HTML file?

    Hi, May anybody help me I do not think there is a direct way to do this. But what you could do is to export underlying DataTable/DataSet into HTML. In this case you will loose formatting. You could loop through the records and construct HTML or you could persist data from the DataTable/DataSet into XML and transform into HTML using XSL. I do not think creating HTML will be hard to do for you. Code should be pretty simple. Basically you need to create HTML table. There is much choice - you write your own code, find some code on a Web or use some third-party component for it. With thanks for your answer, I have thought about this way before, I think this a the last way, i want to search for other ways if any. if i co ...Show All

  • Purple Frog Problem compiling Windows Form into a DLL

    I created a Windows Forms Application and I need to compile it into a DLL so I can access the forms from the DLL. I want to do this because I want to have a DLL for EACH form in my main application. The problem is, when I change the project configuration type to DLL, I get a cpmiler errer: Error 1 fatal error LNK1306: DLL entry point "int __clrcall main(cli::array<class System::String ^ >^)" ( main@@$$HYMHP$01AP$AAVString@System@@@Z) cannot be managed; compile to native xAcsLib.obj I have a DLL I compiled yesterday that I made using this same method and it worked fine. So how can I fix this If you need more details, please ask and I will be happy to post them. Project -> Project Properties -> Configuration Properties -& ...Show All

  • raghu_grdr GridView basics

    I'm a .Net newbie and having some problems. Boss wants me using code instead of all of the control features of GridView In my GridView, I have a ButtonField to make row selectable followed by 3 visible BoundFields, followed by 1 hidden BoundField. < asp : ButtonField CommandName ="SelectRow" DataTextField ="Description" Visible ="True" HeaderText ="Description" SortExpression ="Description" /> < asp : BoundField DataField ="Display" HeaderText ="Display" SortExpression ="Display" /> < asp : BoundField DataField ="UpdateDate" HeaderText ="Update Date" SortExpression ="UpdateDate&qu ...Show All

  • Adminanup VB2005 Check for changes in dataset

    Hello, When I close my form I want to check for changes in the dataset. If there are changes I want a msgbox to appear wich asks for the changed data to be saved. Hello, Thanks. The code works accept for the following. When I edit a textbox and I close the form I get no Messagebox. When I edit a textbox and I switch between records and then I close the for I do get a message. How can I solve this Thanks guys. It worked perfectly with haschanged. Private Sub Form3_FormClosing( ByVal sender As Object , ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me .FormClosing Dim ...Show All

  • sbni Webbrowser Help needed

    This Script i found on msdn site is meant to update the url in the textbox u put a url in to i got it to work in visual basic but it won't work in c# and its the right code  update: also the enter button when pressed is mean to take u to the url but dosen't work either. [code] // Navigates to the URL in the address box when // the ENTER key is pressed while the ToolStripTextBox has focus. private void txtURL_KeyDown( object sender, KeyEventArgs e) { if (e.KeyCode == Keys .Enter) { Navigate(txtURL.Text); } } // Navigates to the URL in the address box when // the Go button is clicked. private void cmdGo_Click( object sender, EventArgs e) { Navigate(txtURL.Text); ...Show All

  • RubenPieters mouse over events in toolbar

    i have a toolbar, i have some buttons in the tool bar, i want to change the image for the toolbar when the mouse is over a button, but there is no event for this. the mouse enter the toobar, doesnt give coordinates so can go down that route, there doesnt seem to be any functionality provided for this. also, can the i set the background image of a toolbar ...Show All

  • Speedie Unable to update the dependencies of the project AKA vsdeploy.chm:2300 - Information Not Found

    I have installed VS 2005 Pro on a workstation for a contract job. I installed all of MSDN. I was having no problems for the first 10+ days with a solution that consists of a VB project and a deploy project that includes the one .exe and 2 Crystal Reports DLLs. Monday, I was prompted to install a critical MS XP update that turned out to be Genuine Advantage Verification. I installed it and rebooted my system as instructed. Since then, whenever I try to build/rebuild the solution or the deploy project, I get an error message "Unable to update the dependencies of the project." When I right click on this description, then select "Open Error", I get a help screen with the heading "Information Not Found" with sug ...Show All

  • Matevz Gacnik DataGridView and Update/Insert/Delete data in MS Access

    Hello, I have an application (Windows Forms) that populates a table from an *.mdb file to a DataGridView . Is there any tutorial available which shows how to implement Update/Delete of current data, or Adding(Insert) new data using the DataGridView   Thank you in advaned. well firstly make sure that you do not set the database in the solution explorer to copy to output -> always copy otherwise it will overwrite the database. secondly, do you get any errors when performing the update yes, change it to never. I don't know why it would not update the database. feel free to send me the project including the database via email (which is in my profile) and ill ...Show All

  • programmer01 DataGridViewImageColumn refresh issues

    Howdy ladies and gents, I was working on a .NET module today that creates a DataGridView at runtime, docked at the top of the parent form, and populates it with a mix of Image columns (containing Icons rather than Images), TextBox columns, and Link columns, and I noticed that when the form is redrawn, the icons aren't rendered properly. The masked space from the "transparent" portions of the Icons are being rendered with whatever data was present in the previous frame. I've set the background color of the cells individually, in addition to setting it in the template for new records. Possible tip: if I minimize and then restore the parent window, the "transparent" portions of the Icons are painted in the normal ...Show All

  • Flavia Lemes IFRAME

    Hi, I have 2 Iframes whithin a frame... I want to refer to the main frame from the Iframe but I don't know how... This code doesn't work: window.document.frames['main'].location.href="../PrepareNewCorpus.do action=New"; Any ideas thanks Have you tried something like this document.getElementById("frame1").location.href = "..."; document.getElementById("frame2").location.href = "..."; You first need to set the ID tag of both IFrames to the respective IDs you are going to search on (for example, to "frame1" and "frame2" as in my code sample above) I haven't written any web code in a while, so I'm not 100% sure ...Show All

  • yaron-ct MDI Forms

    Hi When you create a mdi application. You will have your mdi parent. Then you have the child forms. But when you maximize the child form it sort of merges/overlaps with the toolstrip on the mdi parent. is there a way to make sure that the mdi child dmaximum size is the size of that available dark space in the mdi parent. Not to merge or overlap the toolstrip!! Thanks in advance Hi Luckly, Here is better, although still not perfect version of the above. Please read the comments as they describe certain problems that you should be aware of. Regards [DllImport("user32.dll")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); //I tried to Import GetWindowLon ...Show All

  • jibotang DataGridViewComboBoxColumn selection

    Hi, I am developing a C# application in VS2005 and I've added a DataGridViewComboBoxColumn to a DataGridView in a form and set its DataSource, DisplayMembers and ValueMembers properties. When the form is loaded, the grid shows all bind and unbound columns data and it also fills the combo box with correct data, but the problem is that no item is selected in combobox. I have to click on the combo box to select an item. I'd be thankful if anybody guide me to solve this problem: How can I select an item in the combo box in the dataGridview programmatically Thanks in advance, Saeideh private void Form1_Load( object sender, EventArgs e) { this .currenciesTableAdapter. ...Show All

  • mEt Current Value From DataGrid Cell

    I know i can get the Row number and the Column Number of a datagrid...but how do i get the actual value in the row in a particualar column Like if i have a column names ID and a row with 12 in that row....how do i go about getting that 12 out of that row within my ID Column Maybe one of these will help. C# example VB example using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms; namespace CSDataGrid { public partial class Form1 : Form { public Form1() { InitializeComponent(); } DataSet ds = new DataSet(); private void Form1_Load( object sender, ...Show All

444546474849505152535455565758596061

©2008 Software Development Network

powered by phorum