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

Software Development Network >> Windows Forms

Windows Forms

New Question

What is the best way to build applications databinded
String.Format() problem
clear all values of databound components
TableAdapter Problem.
help needed on how to create a spinning wheel using MS VS.NET2003 in vb
Stored Procedure Syntax Error
What if I do not need my own class?
how to minimize a form
Question about messageBox
Access Web through Excel?

Top Answerers

mnavkum
ILV
stronc
Tryin2Bgood
IceAngel89
redshock
IvanVC
Stephen_Sbh
Greg Allen
cmolinap
Extreme Optimization
Only Title

Answer Questions

  • lfnovo Loading Image (Visual C# 2005)

    Hey, I after these lines of code what should I put to make it load the image into a PictureBox openFileDialog1.DefaultExt = "*.gif" ; openFileDialog1.Filter = "Gif Images (*.gif)|*.gif|JPG Images (*.jpg)|*.jpg|TIF Images (*.tif), (*.tiff)|*.tif|PNG Images (*.png)|*.png|BMP Images (*.bmp)|*.bmp" ; openFileDialog1.InitialDirectory = "MyDocuments" ; openFileDialog1.CheckFileExists = true ; openFileDialog1.CheckPathExists = true ; Thanks :) oh, thats why, it is Visual basic code... hmmm...I will try to convert it in my head...lol..hmmm   oh, C# right there..ok     thanks guys I will try it   EDIT: error: 'System.Windows.Forms.PictureBox' does not contain a defini ...Show All

  • Seth Livingston Background image for datagrid

    I need to set a backgroung image to my datagridView object. I am aware that there is no such property , but however i desperately want it. Does any other 3rd party GridView , provide this property Yes, the DataGridView has this property: http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.backgroundimage.aspx But only because it derives from Control, which has the property. If you read down on that page, it mentions that "This property is not relevant for this control." I do not think you can place a background image on the DataGridView, at least not easily. I wouldn't even begin to dream of owner-drawing the thing, either, it is so complex. Depending on your needs there ...Show All

  • chris6804 How can I make a default value for my DataGridViewCombobox

    Hi guys, Greetings! I setup a datagridviewcombobox programmatically, my problem is how to set a default value for my combo box, how will I do this Thanks, I've been researching this combobox cell control for 2 days now and cannot figure out how to set the selected index. Hi guys, I'm using this code, please help where should I include the SelectedIndex // Inventory - Inventory IN private void btnInventoryInventoryIn_Click( object sender, EventArgs e) { // call function to populate the suppliers name PopulateSupplierName(); // show the Inventory In panel this .panelInventoryIn.Visible = true ; } private ...Show All

  • SDavis7813 problem with show dataGridView

    I have small problem with dataGridView. this is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Karta; using System.Threading; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } public void przel() { while (!nowa.IsCardInserted()) { } dataGridView1.Visible = true; while (nowa.IsCardInserted()) { } dataGridView1.Visible = false; } private void Form1_Shown(object sender, EventArgs e) { while (1 == 1) { przel(); } } } } I know that this check ...Show All

  • pfd Help needed on using FindBy method

      Hi all,first sorry if my english in bad  I'm working on a small project for university and I'm using C#.net with sql server 2005(I'm pretty new with both of them ) .creating database and adding data was ok, BUT I've got stuck in "finding and editing" section I'm using MSDN help and walkthroughs. I used tabaleAdapter for adding rows and for locating and editing I tried to use FindBy method and as I mentioned its not working, heres the problem:  I used this tutorial   (I'm having the first situation!) and tried to do like whats said in there! so heres my code: 0: 1:csmDataSet.T_MemberRow membersRow1 = csmDataSet1.T_Member.FindByID(1212); 2:membersRow1.F_Name = ("john"); the first error occured in the fir ...Show All

  • cheston Open internal html file located in data directory with WebBrowser?

    Hi, I know you can set the home page in the WebBrowser property URL. However, what is the syntax to access an html file that is located in the data directory I am already using the following to access some pdf files: System.Deployment.Application.ApplicationDeployment.CurrentDeployment.DataDirectory + "\TestFile.pdf" Can you do this in the URL property or must you execute this elsewhere If not where would you use this and what would the syntax be Thanks very much, Daniel Pardon my ignorance but how and where do I use the navigate() method to give the location of the html file to display first thing Do I create a private sub for it. If so how do I declare it I tried using: Private Sub WebBr ...Show All

  • Jabs Handling control non-client area in the designer

    I have created a control derived from UserControl, where I am drawing a border in the non-client area. The designer for this control is derived from ControlDesigner. I have two problems when dragging/moving this control around the design surface. 1) I don't receive any WM_NCPAINT message while the control is being dragged, so my border is not painted. 2) When the mouse down to start the drag is in the non-client area, it is ignored by the designer. Is there any way to get around these problems other than re-implementing dragging in the designer or moving my border into the client area Ken and Joey, Your comments have been very useful for helping me understand how this all works. In ...Show All

  • lushdog ODBC Connection String

    I'm just getting started with Dot Net and plan to be using several data sources. The ODBC Connection string seems to be the way to connect to data. Up to now - I have relied on someone else to give me a connection string that works in my circumstance. My question is: Where can I go to get up to date info on how to create connection strings - in general Thanx! Angelo Have you tried google ConnectionStrings.com ...Show All

  • Michael Pritchard selectedtext changed event

    Hi, vb6 offered for the Textbox control the event SelectedTextChanged. How is this done in .net Cheers, Frank for the textbox, there is a textchanged event. Simply select the textbox in question in designer view, view its properties, select the events icon (lightning symbol) and scroll down to the "TextChanged" event, double click it to create the event this event will fire everytime the text has been changed in some way in the textbox does this help is this what you are after a textbox is enough. I added two eventhandlers to the code, KeyUp and MouseUp. This gives me the possibilty to check whether or not the user selected some text in the textbox. Cheers, ...Show All

  • Larry Surat looping through components in a form

    Hi there I know how to loop through all the controls in a form or another control by looping through the Controls collection. But how can I also loop through all the components that I put in my form that are non visual. For example, a timer, or and SQL Adapter or any other custom component that I have created and dragged it into the form in design-time and it appears in the lower part of the design area (because it is not graphic). Which object or collections do store these components that they can be available dynamically at runtime Hi, Based on my research, the this.componets.Components collection will include some kinds of component. You can view the code of the Desinger. For the ...Show All

  • Sachin J New whitepapers for building DataGridView custom cells and columns

    Hi all, We just posted two new whitepapers about building custom cells and columns for the DataGridView control: Building a custom RadioButton cell and column for the DataGridView control ( Source and Sample Code ) Building a custom NumericUpDown cell and column for the DataGridView control ( Source and Sample Code ) The docs, source code and sample code are under http://www.windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=13&Cat=Controls&tabindex=5 Enjoy! -Regis Microsoft Windows Forms team This post is provided "as-is" I think I have the same problem. I’ve tried incorporating the NumeicUpDown column in a solution. The first ...Show All

  • BALA SINGAM - My DataGridView resize?

    I have a DataGridView which I want to be user resizeable. I can make the colums etc inside the control resizeable, but cant figure out how to make the entire control resizeable. This control is on a page and there is space on the page. Can this be done How do I do It Any advise will be appreciated. you can use the Dock and Anchor property of the control to resize the control depending upon the form size. ...Show All

  • chubbysilk "the path is not of a legal form" error

    Hi, I made a control, and when I try to add it to a form, it shows me the error "the path is not of a legal form". How can I solve it Thanks. Beware that the code in your control may run while the form designer is using it. For example, the Paint event will run as will your constructors. Does your control do anything with file paths Suppress code execution while the designer is using it by checking the DesignMode property. I'd put the test before the code that uses filepaths... can you give us more detail than that any code Where does the error come from how did you make the control But I didn't add any other reference especially for it, so it shouldn' ...Show All

  • Qkyrie openFileDialog filename problem

       In my application, Users can uplaod picture. Therefore I used openfileDialog.  And also in my database I have two fields imageName and imageLocaiton. When I use openFileDialog I get the imageLocation and sent to the database. But I can't get imageName.  Does anybody know that how i can get imageName     private void Form6_Load( object sender, EventArgs e) { this .uploadbindingSource.EndEdit(); this .uploadbindingSource.AllowNew = true ; this .uploadbindingSource.AddNew(); } private void browse_Click( object sender, EventArgs e) { this .openFileDialog1.Filter = "JPG files(*.jpg)|*.jpg|All files(*.*)|*.*" ; this .openFileDialog1. ...Show All

  • Johnny Raved Getting the xp styles to work on windows 2000

    Hi Is it posibble to somehow getting the windows xp control styles (buttons tabcontrol etc.) implemented in windows 2000 I dont know if you can do something in the compilation so that the controls are compiled also. My program is made in vb2005 with a ot of the xp styles, and it looks really crappy in windows 2000. It's not easy to sell if every buyer has to upgrade to windows xp when they still have to pay full price even if they have a full windows 2000 license.. I myself is not a fan of windows 2000, but some of my potential buyers only have windows 2000, because it is expencive to change OS. no its not possible since Windows 2000 was developed before Windows XP, the features etc... are XP ...Show All

8788899091929394959697989901234

©2008 Software Development Network

powered by phorum