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

Software Development Network >> Windows Forms

Windows Forms

New Question

Applying WinXP to all app controls independent from Windows theme
How to focus on a textbox
.msi file for project was deleted. How do I re-generate it ?
DataGridViewComboBox dropdown list issue
dataset.merg() New to C#
User who does not have folder redirection in the active directory gets error message when run the application.
Tabpage navigation
Inexplicable design-time exception
Copy & Paste into Rich Text Box that is in Tab Page
Enabling/Disabling ToolStripMenuItem objects

Top Answerers

bishoycom
laboremus
Giedrius Banaitis
singam
uanmi
Mehdi Mahdloo
younger
Dan Waters [MSFT]
Chongkai
WRBehning
CodeWarrior
Only Title

Answer Questions

  • harveyk How to Raise and handle Events

    I have searched every server connected to the internet and msdn help but they returned no answers to my question Heres what i want to do I have a switch connected to my parallel port and i need to write an event to make textbox1.visible = true when it is pushed Please note i have every thing to do with the parport under control please help dav sorry i forgot to mention everything was in vb (express) Here is an MSDN entry on how to publish, subscribe and raise a custom event. http://msdn2.microsoft.com/en-us/library/w369ty8x.aspx In addition, I found this article explaining how to program with parallel port in an interesting way and learned a lot, though you have everything to do with the parport ...Show All

  • manuel0081 mshtml not returning results

    I am working on creating a CCW, but am testing my code in a Visual Basic .NET 2005 with .NET 2.0 windows application. I am trying to get all of the href attributes from a web page. I have been looking around, and have found very helpful stuff that has gotten me to where I am, but now I am stuck. In my code I try to get the links from the links collection, and roll them out in a text box, but it is saying there are no links in the collection, but I know there is because if I use the webbrowser control it returns many of them (I can't use the webbrowser control in this circumstance though). Here is my code: [CODE] Imports mshtml Imports System.Runtime.InteropServices <ComVisible( True ), ComImport(), Guid( "7FD5 ...Show All

  • BrettColeman winform datagrid error

    --------------------------- Object reference not set to an instance of an object. --------------------------- at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.IsOriginalVersion(I nt32 index) at System.Data.DataRowView.GetColumnValue(D ataColumn column) at System.Data.DataColumnPropertyDescriptor .GetValue( Object component) at System.Windows.Forms.DataGridColumnStyle .GetColumn ValueAtRow (CurrencyM anager source, Int32 rowNum) at System.Windows.Forms.DataGridTextBoxColu mn.Paint(G raphics g, Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush, Brush foreBrush, Boolean alignToRight) at System.Windows.Forms.DataGridRelationshi pRow.Paint CellConten ts(Graphic s g, Rectangle cellBo ...Show All

  • ACG Bitmap Images

    Hi there! I am making images out of data arrays, and then displaying them in a form inside a picture box. The thing is, the display seems to be interpolating between pixel values in order to smooth out the image, to make it look better I guess. But I actually want a purely pixelated image, so that each pixel looks like a square block of a single colour (gray scale actually). I havent been able to find any setting or methods in the bitmap class to change the interpolation method, so if anyone can help me out that'd be great! Thanks a lot Joe Tried setting graphics.smoothingmode to none InterpolationMode Sorry I'm to busy right now to fire up a test project... Ahhhh Dude!!!! Yep you can do it ...Show All

  • Matt Lin Is it just me :o(

    Hi, I have been trying to find an answer, even a hint, but despite posting the following question on various forums i haven't even had a single reply for nearly two weeks :o(. "Why do treeview tooltips flash if the main form has its transparencykey set " Could a couple of people please try this (its a 67 second job) just so i know it isn't just my PC :o) You can replicate this behaviour really easily by (c# VS2003) 1) creating a new c# windows application 2) set Form1.TransparencyKey to the same as Form1.BackColor 3) Add a treeview to the form 4) Add a node to TreeView1 whose text is too long to display (i used 'whyisthishappeningwhyisthishappeningwhyisthishappeningwhywhywhy') 5) run the application and hover your ...Show All

  • Muzaffar_Ali99 Form In SplitContainerPanel Not Closing

    I have a form that opens in a SplitContainerPanel via a button click on the main form. How can I get this new form to close Neither the Closing, Deactivated, or Leave events for this form are even firing. Here is the code to load the form: namespace USM2 { public partial class frmParentMain : Form { public frmProcedure m_fProc = new frmProcedure(); public void loadProcedureForm() { frmProcedure m_fProc = new frmProcedure(); this.splitContainer1.Panel2.Controls.Clear(); m_fProc.TopLevel = false; m_fProc.ShowInTaskbar = false; m_fProc.FormBorderStyle = FormBorderStyle.None; m_fProc.ControlBox = false; m_fProc.Visible = true; m_fProc.Text = ""; ...Show All

  • knuckle05 ErrorProvider - Allow Loss of Focus of Validated Control

    I like how the new error provider stuff works. However, I don't like that when you focus on a field that is required, don't enter anything and then try to leave. It won't let you leave until you enter something. Is there a way around this Thanks In Advance, David Gottlieb Microsoft MVP ASP.NET Member ASPInsiders Hi David, try setting the form's AutoValidate property to EnableAllowFocusChange. Andrej ...Show All

  • WineNCheese Multiple DataSources per DataTable?

    I would like to host a unique DataGridView control for each TabPage that I allow the user to create. Each DataGridView is then bound to a unique BindingSource which are all bound to the same DataTable. Then, the user can apply different filters to each view of the DataTable (which I implement using BindSource.Filter()). So far so good. However, A Filter applied to one DataGridView results in the same filter being applied to all DataGridViews, presumably because the DataTable has been modified. ( ) But that can't be right. The whole point of the BindingSource is to Filter DataTable records without modifying the DataTable, correct So what am I missing I am playing with the RaiseListChangeEvents property of the BindingSource in order to ...Show All

  • Mirza Ashraf Authenticating an SMTP Client.

    I have a section of code that allows a user to send an email to me. (I am using MSN's SMTP server). It returns an error: Mailbox unavailable. The server response was: 5.7.3 Requested action aborted; user not authenticated How do I authenticate my user I don't know of any other SMTP servers. I would set my STMP server back up, but I don't have the time to do it while I have to update my website, develop applications, and do school work. And yeah, this was for a WinForm App, but I think the best solution for me now is just to use my old PHP Emailer Script. Thanks for the help though. :) I am pretty sure that after fiddling around that MSN does not allow SMTP to be used with my application. Even with the correct credentials set, ...Show All

  • AntonioMaia1 Closing multiple forms

    I assume there is a relatively simple answer to this but I'm relatively new to programming and can't quite figure out how to do this. I've got a main form which is opened automatically when the application is opened. I then make a choice (by selecting a radio button) and click on a button to open another form, hiding the original form. I then make another choice and open another form again hiding the previous form. I now want various options :- to close a form and show the previous form to close all forms and close the applications to close two forms in the chain and go back to the main form I'm not looking for a solution but examples of how to pass references to the previous form would be appreciated. There are sev ...Show All

  • buster2001 Alternating between two images every 3 seconds using a timer

    Hello! I am quite new to C sharp and want to write a small program. I use an Mdi form with several child forms. I want to have a little picture box in a corner, possibly the Mdi form, that alternates every few seconds or so between two images continuously even while I switch between the various child forms. Is this even possible in Visual Studio 2005, and if so how Many thanks, Boombastic Just to ensure we are clear ... You can add the timer to the MDI parent. This would allow the event to be generated regardless of what is going on with the child forms. However, I don't know how you would *display* it on the MDI child form. Unless you wanted to put it as a background image of the MDI pare ...Show All

  • Kursat Konak Windows::Forms::Timer doesn't re-enable

    I assume this is a threading problem but new to .NET development so I'm not sure what's tripping up. My app (C++/CLI) watches a directory. When a file is created the path/name gets added to a collection class, which in turn fires an event. The UI receives the event, adds the data to an add queue then enables a timer. When the timer tick event occurs I update the UI then stop the timer. Meanwhile, the worker thread processes the file. When finished the worker thread removes the file from the collection class, which in turn fires an event. The UI recieves the event, adds the file path to a remove queue then enables a timer. However the timer never ticks again so the UI is never updated. This is where I'm scratching my head going hmmmm. ...Show All

  • Suren... Resource Files

    I am creating an application for drilling math in visual C# 2005 Express. It all works great and I can publish and it istalls on another computer just fine. However... Now I want to add something and I cannot get this to work. I had previously made a powerpoint slide show that shows how to do certain things and I want to let the student open these slideshows. I put them in the project as a resource and then could open them when I build the project on my machine. To open it I used : "System.Diagnostics. Process .Start( @"C:\Documents and Settings\HP_Administrator\My Documents\Visual Studio 2005\Projects\PointerTest\PointerTest\Resources\AdditionWith10s.pps" );" However when I published the project and put it on ...Show All

  • Tryin2Bgood Tabbed Documents & AutoHide in Runtime

    Visual Studio Design time provides tabbed documents in the main container. How we can achieve the same thing at runtime. Same way how we can achieve the Auto Hide feature of Solution Explorer, properties window etc. Maybe there is some free tools for this, but i use these comercial ones: -for tabbed behavior of my forms i use TabStrip control of Devcomponents -for docking posibilities i use SandDockManager from Devcomponents Well, you are basically desiring to use Visual Studio liek interface for your application. Actually, the answer more or less lies in re-inventing the wheel (the case is not like setting any property etc.). That's what I did in one of my projects -- Fx. 1.1 Studio 2003 ...Show All

  • bevis61 Problem With retrieving data from SQL Express

    Hi all... I am using SQL Express Db in my VB .NET Application, the DB is in the Application folder... The Problem is : When I insert a new row in any table, the row do not appear in the application until I close it and run it again. Discribtion : After the insert Statement completed you can find the new row in the DB, but when I call a form to display Data in the table using Grid or List Controls which is binded to the table, the new rows do not appear until I close the application and run it again. Note : Controls are binded to the table using Wizard (Dataset, Adapter, DataSource) Do you know how to solve or go around this problem Thank you very much Adding to what Ken said, you can also get this functionality for ...Show All

303132333435363738394041424344454647

©2008 Software Development Network

powered by phorum