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

Software Development Network >> Windows Forms

Windows Forms

New Question

Datagrid Validation
TableLayoutPanel Question
AutoResizeColumns gives operation exception
save an image
problem of update an item from a listView,urgent, need help!!
Paiting on the Whole Clip
DataGrid with multiple row selection
oledb and datagridview help needed![URGENT]
ListBox and MultiThreading
Drag Drop Button

Top Answerers

NewbieK
AlexDcosta
wakawaka54
TimmayB
Bilal Haidar - MVP
Gage
HemantKulkarni
mu2
Kristian Jörgensen
CACARTER
sitemap
Only Title

Answer Questions

  • Pankaj11 How to show a notify window?

    Hello, I have created a new type of window, a NotifyWindow (derived from System.Windows.Forms). In order for the window to display without gaining the focus (that is no activation), I have used the following code: public void Notify() { Rectangle wrkarea = Screen.PrimaryScreen.WorkingArea; SetWindowPos(Handle, (IntPtr)HWND_TOPMOST, wrkarea.Width - Width - 10, wrkarea.Height - Height - 10, 0, 0, SWP_NOACTIVATE | SWP_NOSIZE); ShowWindow(Handle, SW_SHOWNOACTIVATE); } This function is intended to be used as a replacement for Show(), which also would activate it, which is not the way I want it. I have tested it with this code: NotifyWindow wnd = null; private void NewOne() { if (wnd == null) { ...Show All

  • funkyduck Databound combobox

    hi all i'm trying to databind a combobox to a dataset ive set the datasource to the bindingsource1 and the display member to the to the part no column in the form load event ive set the dataset to fill and filter the results Me.Work_partsTableAdapter.FillBy1(Me.Workshop_partsDataSet1.work_parts, "Oil Filter") this works fine except now i wish to add a second combobox that is filtered by "Fuel Filter" does anyone have any suggestions thanks tim Hi, would it be acceptable for you if you filled your dataset with all work parts (this might not be appropriate when there are a lot lot of them) You could then create a separate BindingSource (or DataView) for each of the comboboxes and set the filter there. ...Show All

  • Matthew Power Cannot add table adapter to datatable

    If I have a dataset in my project, and I've added a datatable to it, when I right click on it the option to add a tableadapter is greyed out. It seems as though I have to add a tableadapter to get a datatable with tableadapter connected to it. What if you already have a datatable in your project and want to add a tableadapter to it I had a recommendation to install SP1, and I did, but it did not fix the problem. No response since then. Well, you can always use the DataAdapter instead of the TableAdapter. It amounts to the same thing basically and is not specifically tied-in to your DataTable (which I think is preferable anyway ... I don't believe that a DataSet should know anything about where the data c ...Show All

  • hendrik swanepoel ItemMouseHover

    I want a form to popup when an item in a listview is hovered over, the problem is I want the form to go away after the mouse is moved away from the item. Something like Netflix does when the mouse hovers over a movie name. Any help would be appreciated. Thanks does anybody have any ideas. thanks You can do it, but there are some details that needs clarifying. When the new form is poped up, will the focus be transfered to the new one If so, the listview will not get the 'leave away' message. If just some simple text message needs to be showed, I'm afraid the ToolTip control is good choice. A picture and text messsage will be shown and the new form doesn't need to hav ...Show All

  • Ogulcank VB2005 Set focus to cell in new row in datagridview

    Hello, How do I set the focus to a curtain cell in the NEW row in a datagridview Thanks in advance... Me.theDataGridView.Rows(Me.theDataGridView.NewRowIndex).Cells( ColumnName ).Selected = true ...Show All

  • Any ole Joe Extending DataGridViewTextBoxColumn to DataGridViewHtmlColumn

    I'm tring to create a better way to present data in data columns. I've decided to extend the d.g.v.TextBoxColumn, although perhaps I should be using a higher level base class. The fist thing I've decided to support are newlines or [br] ( breaks ). this done, Im not sure the best way to calculate row height, or how to effectively set it. I've tried inside the overridden Paint method to set [ this.DataGridView.Rows[ index ].Height ], but it doesnt seem to be affecting anything perhaps I have to change a related flag so the problem, is that I now have a multiline text column that is cutting off the text because the row height is not appropriatly set. any help is greatly appreciated! -stellar ...Show All

  • HCMJ Form Load

    Hi, How can I confirm that a specific form was loaded I have some ComboBox events controls that are fired when I fill the combo (SelectedIndexChanged), and I want o prevent this. Thanks, Pedro thanks... You could register the events for your controls in the Form.Shown event. private void Form_Shown( object sender, EventArgs e) { // Your code here. } ...Show All

  • Xi0N Get variable value from Main form

    How can I get Main varialbe's value from another form. for example: get menu item's text, or get program caption's text, etc. thanks Edward you would need a reference to the other form/object and then access its properties however you need to make the properties/methods you wish to access public so this class can see it. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=729974&SiteID=1 take a look at the link above, it shows you on passing the object from one class to another and accessing it from this other class You could give your dialog form a new public property of type MainForm. Before you call ShowDialog on the dialog form set that property to the current MainForm which you ca ...Show All

  • EMShahram Loading font of difrent language

    Hi, I have a window application, in which I want user to be able to type in diffrent language according to the translation he choosen. I have a multiline text box showing the text, which has to be converted in to a diffrent language. In the second multiline text box I want that particular language font to be set in which the text is to be converted. I got the destination language name dynamically. Help me out.. You can enumerate the installed fonts by obtaining an object of the InstalledFontCollection class InstalledFontCollection installedFontCollection = new InstalledFontCollection(); The new collection will have a property called Families which includes all installed Font ...Show All

  • fabianus Child forms

    1) form1 : ismdicontainer = true 2) from form1 calling form2 (form2.MdiParent = form1) all ok 3) from form2 calling form3 And here is the question: How I can get that form3 be form1 child (form3.MdiParent = form1) Thanks Perfect!! Thank you very much Victor Hi, This is quite easy to accomplish. Simply set objForm3.MdiParent = this .MdiParent; where o bjForm3 is the instance of Form3 within Form2. Since the MdiParent of Form2 is Form1, your Form3's parent will also be assigned to Form1. Hope that answers your question. -Mamta ...Show All

  • Deepa7476 XSD DataSet and compilation

    i have a project in Visual basic 2005 expres i add a XSD DataSet1 to the project , i use this dataset in a class i try to compile the class with vbc.exe , but how i include the XSD Dataset i have errror in imports dataset1.tableadapters thanks ...Show All

  • Ltayef custom column which converts an enter in the textbox to a tab

    hi Private Sub DataGridView1_CellValueChanged( ByVal sender As Object , ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellValueChanged 'Usually after editing, the enter key is pressed and the current in th dgv goes to next row, 'how do i make it go to next column instead. i have the code to make it go to next column. it is 'going to next row automatically. End Sub I made a custom column which converts an enter in the textbox to a tab Imports System.Data.SqlClient Public Class Form1 Dim WithEvents dg As New DGV Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dg.Dock = DockStyle.Fil ...Show All

  • SucceedEgg Treeview node cropping

    Does anyone know how to prevent a Windows.Forms.Treeview node's text being cropped if the node's font size is increased or changed to bold The text seems to be cut off roughly where the text would have displayed to if it were in the treeview's font - the final letter is often chopped off part-way through, even though there is plenty of space following. The only work-around I have found is to set the Treeview's font to bold (or larger) and then set the font of all the other nodes (the ones I don't want emphasized) to the regular/smaller font. The problem with this is that the nodes' tooltips display in the treeview's font (ie bold/larger). You nearly had it there. But here's the crazy thing - your fix only works on the first call. ...Show All

  • ToddGibbs go back in graphics

    how can i go back to previous state when i draw graphics shaps such as ctrl+z key Please see the following link. This may be useful to you http://www.marcclifton.com/Articles/DesignAndArchitecture/UndoRedoBuffer/tabid/100/Default.aspx If you simpley want to get the previous state..clone the object before changing the shape and store it in a temporary variable.Or else if you are you looking to implement Undo mechanism,you can implement Gof Momento Design Pattern thank you : but how can i implement Gof Momento Design Pattern ...Show All

  • Peter Pallos Data Table problem

    key not valid for use in specificed state I have DataSet which is created by other user, I used it normaly since windows ask me for my new account password, so i change id, now I can't open dataset, I made new svn check out, and nothing, but windows don' alow me to put old password, because that password is in 24 last password, this is original error One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Key not valid for use in specified state. Hide at Microsoft.VisualStudio.Data.DataProtection.DecryptString(String s) at Microsoft.VSDesigner.VSDesignerPackage.AppSe ...Show All

464748495051525354555657585960616263

©2008 Software Development Network

powered by phorum