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

Software Development Network >> Windows Forms

Windows Forms

New Question

Extending DataGridViewTextBoxColumn to DataGridViewHtmlColumn
function will not fire
Unable to use Image editor tools
UNC/URL path from OpenDialogForm
Insert a Resourse to textbox?
ComboBox In DataGridView Event. SelectedIndexChange
How To => Open Form / Set Up A Skin ?
Updating public value via pop-up dialog
Databinding to textboxes on form using SQLExpress
DataGridView, Transparent Selected row color

Top Answerers

Wilk06
Juan64
Donaghy
ONEWORKNGRL
mohd-tmn
Jim Fafrak
V.E
Jorge125
southp
ckcampbell
sitemap
Only Title

Answer Questions

  • Syed Junaid switch (listBox1.SelectedItem.ToString()) {} & video lesson #5

    I entered this coding as instructed, ran the program and did not select an item so the program had an unhandled exception and hung! System.NullReferenceException was unhandled Message="Object reference not set to an instance of an object." Source="lesson05" StackTrace: at lesson05.Form1.button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\DOSrelic\Local Settings\Application Data\Temporary Projects\lesson05\Form1.cs:line 51 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) a ...Show All

  • Gouranga1 How to enable a control from the parent form when the child form is closed?

    This is the code I have but havent found a way to compile it Private Sub Form2_FormClosed( ByVal sender As System.Object, ByVal e As System.Windows.Forms.FormClosedEventArgs) Handles MyBase .FormClosed Dim myForm As Form1 Dim btn As Button Dim myControl As System.Windows.Forms.Control myControl = myForm.Controls.Find( "Button1" , True ) btn = CType (myControl, Button) btn.Enabled = True End Sub Tks Rather than making a new instance of Form1, you need to get a reference to the already existing parent Form1. Changing your first line to the following may help solve your problem: Dim myForm As Form1 = Me.Parent If this does not work, you may need to cr ...Show All

  • Warren LaFrance Jr String to int, Visual C# 2005

    Hey, How do you make the value of this: pictureBox1.Width = (maskedTextBox1.Text); pictureBox1.Height = (maskedTextBox2.Text); an integer becuase I get an error saying can not convert string to int...     Thanks :) Hi, Yeah, I can reproduce the problem and it does say that it's FormatException problem. The reason you got the error is that you forgot to use the try... catch ... in the radiobutton5_checkedchanged event handler. Besides, this event fires when you CHECK the radiobutton5 and UNCHECK it. That is to say, when you check the radiobutton4, the radiobutton5_checkedchanged event fires as well as the readiobutton4_checkedchanged event fires. Therefore you should check if the current state is che ...Show All

  • Mario M. Can Deployment Project Automatically increment build #?

    Is there a way to increment the setup version (Product Code is recommended also) automatically with each deplyment project build I've found that this is the only way RemovePreviousVersion will work. Of course, there's probably a way to edit the .vdproj file using a script during the nightly build. I'm looking for something more built into VS. Any comments are welcome. Thanks, Dave Hello, May you have already written this script Or perhaps may you direct me where I could learn to write it myself Best regards, BB Here are the regular expressions to Replace the existing ProductVersion, ProductCode, and PackageCode with values that allow this installer to replace the prior version ...Show All

  • borice seting date to Null

    The scenario is a textbox bound to a dateTime column in a datatable in a dataset. When the user enters a normal date, everything works fine. But if the user selects the date and clicks the delete key to remove the date, the system restores the previous date when the focus is moved to another control. I have tried forcing a null date using ds.myTable(index).Birthday = Nothing Checking the table immediatly afterwards shows a value of #12:00:00 am# which is not Null and it is not a valid date either. SQL sees that as 01/01/0001 12:00:00am which is not a valid smalldatetime. I have also tried setting nillable = true in the table .xml but that didn't seem to make any difference. What's going on here Try ds.myTable(index ...Show All

  • IExplorer Blues ToolStripTextBox does not displays as multi-line.

    Hello, I cannot set a ToolStripTextBox to display a multi-line text, whether programmatically or by drawing it by mouse. Whenever i try to change its Size to a bigger size, it still displays only one line, whereas a TextBox can display multiple lines. Also, there is no .Dock properties to do what I expect. At last resort I could use ToolStripControlHost but it would be be pretty useless because the only thing I want to do is to display a multi-line text, I don't need to expose any methods or properties. Do you have any ideas   Thanks a lot Hi, Sorry but it just does the same thing again, I think I'll have to work out with ToolStripControlHost but I'm currently having pro ...Show All

  • seco printpreviewcontrol

    The people at microsoft are strange aren't they I have just started work on something where I'm using the printpreviewcontrol for the first time and I was looking for the method that would cause the control to refresh it's contents, after the page settings of the document had been changed. Foolishly I had some expectation that it might be called refresh but no; apparently on this control you have to call invalidatePreview. Hey thanks guys I love spending all my time wading through the mire of your documentation just to find out something like this. You're not talking to MSFT on this forum. If you want to *** at MSFT programmers, do so through Product Feedback . Not much hope for this forum when ...Show All

  • tyler000 how to determine which activex control has a license issue

    I have a winform's application that uses mostly controls from the .net toolbox and two additional purchased controls. I am using the click one deployment model and have the controls isolated. All was working fine until all of a sudden my application would no longer deploy and run on my test machine (no development tools, fresh install of windows xp etc..). I got an error message from the click once "engine" saying there was a problem and did I want to send a report to microsoft. No indication of what the problem was. When I run the application on a test box that has vs2005 installed I can click the debug button. An error message in the debugger tells me that there is an activex control that is not licensed. But I can't figure ...Show All

  • BioSlayer Sending email in vb.net 2005(using vb) not with smtp but the users outlook (mapi)??

    I have an application that I need to send mulitiple emails from. There are about 10 users who will have permission. However my IT Group has locked down the smtp server and will not allow "Applications" use the smtp method. I remember in vb6 I used mapi to send emails using outlook that was on the users computer thus giving my IT folks traceability of who is sending what and not having to set up 10 people on the smtp permissions. Can this still be done using outlook(mapi) It's going to be a lost cause if your IT dept only allows certain IP addresses to connect to the SMTP server. There is no way (well, few ways) to fake the IP address. Tell those losers that the guy on the Micro ...Show All

  • Dotnetter03 How to access a form behind ModelForm( dailog window)

    I am using .NET 2003 framework 1.1 From one main MDIForm I opened an static Instance of a window(Say window1) and hide it after initialing some properties of this window(window1). Now I want this window to be shown from different child windows of MDI parent on clicking of some buttons. Problem is coming when 1] I open the first window(Static Instance of Window1) and minimize it. 2] I open one MDI child window which is a Model window( this is it is shown as showDialog). 3] From this window if I try to unhide/show that Instance of first window(window1) first window is not accessible as the second window is opened as Model. please help me. thanks in advance. This is some sample code for the utility class: Public Sha ...Show All

  • woodpecker0127 Handling events at runtime

    Hi I work on a windows forms App. I add events at runtime to many of my controls using AddHandler and removing them using RemoveHandler my question is : How I can know that this control has an already handled event Or NOT e.g: before adding FormClosing event to my form , I want to know that this form already has this event added or NOt please provide me with any VB.NET sample Thanks Mohamed If your event is defined in your own class, this is easy, e.g. if(MyEvent == null). If not, like FormClosing, the best thing you can do is use reflection. Hi, You have to keep track manually of whether you added the handler or not. For example: Public Class Form1 ...Show All

  • My Vizai Install On Demand trigger

    Starting my program is triggering Windows Installer to launch but I do not use .MSI files for redistribution. I am inclined to think that my program shortcut or perhaps the executable path is stored in the registry as an Advertised component that triggers someone else's installation. What is the trigger for associating Windows Installer in relation to a shortcut or program Thanks in advance. The likely issue is that something that was installed by MSI is broken. The event log should tell you the details. The repair entrypoints are typically use of MSI-installed shortcuts, any shared COM activation or file associations and (I think) some GAC assembly activity. If you are not MSI-based and you're not us ...Show All

  • soni_ace DataBinding Using MySQL native connector, problem with server explorer

    Hello everyone, I have downloaded the native MySQL connector from the following link: http://dev.mysql.com/downloads/connector/net/1.0.html My goal is to create typed dataset using drag and drop from the server explorer, and eventually bind the datasets to various controls and implementing insert, update and delete. The problem I am facing is I cant get the database listed in the server explorer. Can anybody suggest me anything Hello Ken, Thanks again for your answer. I have already tried to do that using odbc. But my problem is, it does not generate any update method. The advantage of the native connector is, i can do insert, update and delete operation using the dataset.update method. Is this also possible ...Show All

  • DavidR100 How to .Save(...) a Bitmap Object in 16-bit?

    Hi all, not sure if this is the right place to post this question, couldn't find a more suitable category (GDI+ ) i have the following piece of code: Bitmap bitmap = new Bitmap(640, 480, PixelFormat.Format16bppRgb555); bitmap.Save("test.bmp"); bitmap.Dispose(); but when i looked at the properties of test.bmp (using Windows Explorer), it says "Bit Depth - 32". Also, when i re-opened the bitmap programmatically to check the PixelFormat, i.e., Bitmap bitmap = new Bitmap("test.bmp"); Console.WriteLine(bitmap.PixelFormat); bitmap.Dispose(); It says: "Format32bppArgb". How can i force the bitmap to be saved in 16-bit, i.e. "Format16bppRgb555" TIA and Regards, Edwin ...Show All

  • Sumit_Dagar_8eba6d ClickOnce update to deployment manifest

    Hi all, I have a Smart Client app that uses the Composite UI block. There are multiple "modules" that the application uses that are not directly referenced by the main .exe project. As a result, the publishing process does not recognize these as dependencies. Since I cannot directly manage (i.e. add) the dependencies in the project properties, it appears that I have to create a post build event or work through the "AfterBuild" and "AfterPublish" targets to update the manifests once accurate dependency list is present in the publishing directory -- they will be copied after they are built. I have tried a couple of permutations of the following code by either calling targets out of Microsoft.Common.Targets or ...Show All

67891011121314151617181920212223

©2008 Software Development Network

powered by phorum