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

Software Development Network >> Windows Forms

Windows Forms

New Question

Datagrid
Recordset problem
How to loop through an unselected CheckedListBox ?
Transfering info with Class file
Launching Another App
drag and drop in FlowLayoutPanel
DataGridViewCell BackColor Setting
items list in combobox
alert a user "To Save changes or ignore changes" when editing records in VB 2005
Export DataGridView to Excel

Top Answerers

rsd_za
scoobystuck
Luke Yang
Kevin Dente
Silencer#1
XBTester
gafferuk
quantumboy
dczraptor
Loki1982
LiteSpeed for
Only Title

Answer Questions

  • Tomas Galvez WinINet.dll dependency

    I have created a setup project using VS .Net 2003 for one of my MFC applications. I am using WinInet API in that application and hence the setup project automatically picked up WinInet.dll as a dependency. But I am not sure if I really need to package it in the MSI. Can I safely exclude WinInet.dll and assume that it will be available in the target machines This will reduce the size of the build by 600K. I am targeting only XP and 2000 machines. If it can be excluded, what precautions need to be taken during installation Any help would be appreciated. Thanks Thanks Phil. I will take that as a "yes, you can safely exclude wininet.dll from the setup project". Thanks again. It's been part of the OS since Windows 2000, ...Show All

  • Blkbird Datagridview unbound computed on bound...which event to use?

    Okay, I've spent the day trying to get this right, and not quite there yet. So much for rapid application development. Please advise My datagridview control has bound columns and unbound columns. I want the unbound columns values set based on a computation against the bound columns. Say my boundcolumn value is a date Sep 20 2006, so I want my unboundcolumn value to be assigned "Wednesday". I can do that fine in various events, but not immediately after the initial databinding...my unboundcolumns are remaining blank until my user starts selecting cells because I haven't solved which event when the datagridview is first loaded to use to calculate the unboundcolumns. Any ideas I've tried after the rowsadded and databindco ...Show All

  • tiomeg fire function in another form

    hi Please help me to sort out the below problem I have 2 windows forms 1) view form with a Show button. Double clicking will call a procedure to load a dataset and bind it to datagrid. 2) Edit form - This is loaded on double cliking the view form, user may change values and update the table. My requirement - On closing Edit form, the function to load dataset has to be fired and the datagrid in View form should be updated. But i cannot access any functions of View form from Edit form... so how to refresh the view form once user changed the data in edit form Thanks in advance Raju Sreenivasan Call editform with EditForm. ShowDialog . method. the control will return back to next line only after the EditForm is clo ...Show All

  • Sean_Sinclair68127 how to find in dataGridView

    I have fill a dataGrid with records using following code now i want to search a record and change color of whole line System.Data. DataSet ds = new System.Data. DataSet (); System.Data.SqlClient. SqlDataAdapter ad = new System.Data.SqlClient. SqlDataAdapter (Query, ConnectionToDatabase); ad.Fill(ds, DataMemeberName); DataGridName.DataSource = ds; DataGridName.DataMember = DataMemeberName; use filter. DataGrid.DefaultView.RowFilter = "FirstName like 'myname'"; Then u can Change Color if you want but this won't show all the rows .! to setup your custom cell style: System.Windows.Forms.DataGridViewCellStyle DGVCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); DGVCellStyle1 .BackColor ...Show All

  • ieatskunk DataGridView in windows application

    Hey all I"m new to c# win app, eventhough I wrote some projects for asp.net using c#. My question is about DataGridView. I have added this control to my application and binded it to my access database. I run my application, added some rows to the grid and made some modifications to existing rows but when I exit my program the changes and addition of the new rows is not saved in my access database. How do I make these changes saved  Is there any "autosave changes" property :) Thanks in adavance :) See the FAQ pinned to the top of this forum My database isn't being updated, but no errors occurred in my application and follow its steps and let us know i ...Show All

  • grumbs FillByParameter - using parameters with the Select Statement

    Hi, I want to open a new form (form2) and have it load only the data for an item chosen from a datagridview in form1. In the constructor, I'm passing the ID of the record chosen to the constructor of the form2 in the field mID. Form2's data is in a master-detail relationship. So I have created a dataset, dsSermons21, that contains the 4 other child tables. In dsSermons21, I have created a new parameterized Select query call FillBySermonID. Now, If I understand this correctly, I use the following to fill the Sermons table of the dataset: DsSermons21.Sermons.FindBySermonID(mID) I do not know where it got FindBySermonID from, then name of the new query is FillBySermonID, but that is what came up in intellisense. If this is ...Show All

  • pompöös Get the parent Control object... solved! -- with User Controls

    I have a non-visual class like (avalible in the toolbox) public class MyClass: Component { public MyClass() {...} } In this class I have some asyncronus external events that needs to be syncronized with the "main - gui - thread" that consumes events from "MyClass"... Before I made a "toolbox" component of "MyClass" I hade a constructor like public class MyClass: Component { public MyClass(Control parent) {...} } This way I had the "parent" object to sync with... But using MyClass as a component in the "toolbox" forces me to have a constructor without any parameters... I need to get hold of the parents "Control - object" inside of "MyClass". How ca ...Show All

  • Adminanup array assigning problem

    i want to assign the value 500 in this position and else 8 Dim arr() As Integer = {70, 71, 72, 73, 74, 111, 113, 114, 116, 117, 119, 120, 122, 123, 125, 126, 128, 129, 131, 132, 134, 135, 137, 138, 140, 141, 143, 144, 146, 147, 149, 150, 152, 153, 155, 156, 158, 159, 161, 162, 164, 165, 167, 168, 170, 336, 424} the total array size is 554 arr2(554) how can i do this arr2(0)=8 arr2(70)=500 note 70 is the 0 element of the arr() thanks Hi, As mentionned,your problem description is a bit vague, but from what I can understand, you will need 2 arrays. The first array is your array with 554 elements, the other one is your array with the "secial indices". When you want to assign, simp ...Show All

  • deltaspecops99 Update fields upon saving

    What would be the best way to update an editor and edit date column upon saving so that only rows that were changed would have those columns updated after the save. You may try the use the Controls collection to get a certain cell and set it value. Or if you bind the datagridview to a datasource, you can also change the value in datasource. Help this is helpful Is there a command that allows a specific cell in a datagridview to be set to a certain value. ...Show All

  • Jeff54 Should I use DataGrid or develop my own control?

    Greetings! 1) Can you advice me any article/tutorial about DataGrid usage to read Some powerful tutorial :) 2) I want to develop something similar to daily timesheet in Outlook calendar. (where in the panel at the left there is a column with time with step in 1 hour, and to its right there are one-column rows colored in orange; don't know how to describe it beter:)). Can I use DataGrid Or it's not so powerful for this and I should develop my own control Thanks, truetype Hi, http://windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=13&Cat=Controls&tabindex=5 http://msdn.microsoft.com/vstudio/default.aspx pull=/library/en-us/dnvsdev05/html/vs05a9.asp hope those two links ...Show All

  • C.Melançon Mimic Windows Screen Identify

    Hi, How can I mimic Windows screen identify function in C# In a multiple monitor setup there is an Identify option which throws up big numbers 1, 2, 3 etc for every screen. How can I achieve that in C# Thanks in advance. ok this almost worked, of course customize it the way you want. Basically I made a new form, added a label to it. Then modified the forms constructor: private int theScreenNumber = -1; public FrmScreen(int screenNumber) { this.theScreenNumber = screenNumber; InitializeComponent(); } Then on the other form (main form), added a button and did this: for ( int counter = 0;counter < Screen .AllScreens.Length; counter++) { FrmScreen theScre ...Show All

  • zquad WebBrowser control in Winforms

    i am creating a winform and i want to display several tables in html. I have read up and the webbrowser seems to be the way to do this. I have managed to print out the tables once, however, the second time i try to update the webbrowser it just goes blank. The html in the webbrowser changes on the event of a combo box. I dont understand why it works the first time, but not the second and why are there no errors I would be grateful for any feedback, thankyou, Simon Graham Code: private void workoutPrintCombo_SelectedIndexChanged( object sender, EventArgs e) { object empty = System.Reflection. Missing .Value; axWebBrowser1.Navigate( "about:blank" , ref empty, ref empty, ref empty, ref empty); m ...Show All

  • EtherealSky How do I detect if one of the combobox has value in a panel grouped with 8 combobox?

    Hi Please somebody help. I am using vb.net or vb 2005 I have 8 combobox in a panel (Panel1) and have textbox1 outside of the panel1. If textbox1 is 2 or 3, one of the combobox in the panel1 must be completed. So if the user 'levave' the 'tabpage' whithout completing one of the combobox in the panel1, the message should display and the focus should be in the panel1. If textbox1 is 2 or 3 and one of the combox (not all the combobox) is completed, then the event should not fire. Advance thanks Something to start with: Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click For Each c As Control In Me .Panel1.Controls If TypeOf (c) ...Show All

  • pblecha VS2005 MyApplication_Shutdown not getting fired.

    We are developing windows application in VS2005 (VB.Net). I have placed resource clearing and audit entry in the "MyApplication_Shutdown" event. But this event is not getting fired when our application exits. When I tired with the sample application, in our system it works fine. I don't know whether I have disabled any setting so that this event does get fired. Note: I have checked application framework checkbox in application settings. I followed the sample and had no problems hitting Shutdown. Is your event handler really in the partial MyApplication class of your vb project Does the function declaration end on Handler Me.Shutdown -- SvenC Looking at the WindowsFormsApplicatio ...Show All

  • troy2 How to hide form from Alt-Tab dialog

    Hi, I'm creating a borderless form by setting this.FormBorderStyle = FormBorderStyle.None When I show the form, if users press Alt-Tab to switch among applications, they can still see it. How can I disable it Thanks a lot. Do I dare ask a) why and b) what FormBorderStyle has to do whether the application shows up in the Alt tab window The property ShowInTaskbar  would have a greater possibility of controlling whether the application shows inthe Alt-Tab menu long before a borderstyle does. I believe The reason that it shows in the taskbar is because of a trick that .NET uses to do the SysTray. I've noticed that if you set the show in taskbar to false and set the ...Show All

272829303132333435363738394041424344

©2008 Software Development Network

powered by phorum