ASPFriends.com 'winforms-cs' list
Up to: Discussion Lists

  • RSS Syndication
  • Latest Discussions Archive
    More Graphics from an SQL-Server table column (4 replies)
    ASPFriends.com 'winforms-cs' list
    I've implemented the following code: In the Form Load: Binding imageBind 3D new Binding("Image", DataClass. dataSet.Tables[DataClass.TableName], "Drawing"); // Column "Drawing" contains the images imageBind.Format 3D new ConvertEventHandler(FormatImageData); this.pictureBox1.DataBindings.Add(imageBind); private void FormatImageData(object sender, ConvertEventArgs e) { if (e.DesiredType 3D 3D typeo...
    MICROSOFT : Required Designer Attributes ... (3 replies)
    ASPFriends.com 'winforms-cs' list
    Ok, i know its gonna sound stupid, but i need to know what to add as attributes for a subclassed button to show in the ToolBox. If i create a UserControl its showing there, but not if i subclass from Button. What is the trick, cuz the docs dont show me what i need to do. Here is the sample: Full Class Code using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms;...
    TabControl - shifting tabIndex IDs doesn't work (6 replies)
    ASPFriends.com 'winforms-cs' list
    I'm pulling my hair out over this one. Seems like a bug, but I'm hoping for a workaround. I've got a TabControl that has 7 tabs. Depending on the type of form I'm displaying, I hide 2 of these tabs all the time, so there's always 5 visible tabs at run time. I noticed today that the wrong tabs were getting hidden, so I started digging. Turns out, my TabIndexes were out of sync with what they had be...
    Assign Event handlers dynamically? (4 replies)
    ASPFriends.com 'winforms-cs' list
    I'm trying to convert an existing app, and for some reason the original app uses a menuing system that is stored in a database. Probably works great for the existing app, but in the .NET/C# app that I'm doing, I have a problem. Basically in the database, all the menu items are stored, along with a parent item, caption, and what to do on the Click event (this is FoxPro). I've turned this into a SQL...
    DataGrid update (3 replies)
    ASPFriends.com 'winforms-cs' list
    How does one update a database after a program user has updated some information in a datagrid? The datagrid has been bound to a dataset. Do I have to update the dataset from the datagrid, then save the dataset to the database? Thomas
    problem related to datagrid (4 replies)
    ASPFriends.com 'winforms-cs' list
    Hi all , i am having a datagrid with delete button , which when pressed removes the data from database , now i need to implement a an event handler in between which confirms deletion before event occurence . My present code is given underneath , here i am creating an object of that button type and equating it equal to existing button and second line should actually serve my purpose but it's not do...
    How can i merge multiple rows in DataGrid (3 replies)
    ASPFriends.com 'winforms-cs' list
    Can i merge rows that contain same value in DataGrid Control?
    Hiding a Columns in a DataGrid (4 replies)
    ASPFriends.com 'winforms-cs' list
    I have a DataSet that is returned from a WebService that has five data fields in it. The client is a Windows Form and the code is all in C#. The table that is in the Dataset has these data columns: TaskID, ProjectID, TaskDesc, Hours, Date. Just binding that to a DataGrid works fine. BUT... I don't want the TaskID and ProjectID columns to be displayed on the DataGrid at all. In ASP.NET I was told I...
    PropertyGrid question (3 replies)
    ASPFriends.com 'winforms-cs' list
    Hi All, I'm using a propertyGrid and I wonder, is it possible to change a property to be 'ReadOnly' in runtime ? Like : public String Name { get { return name; } } but, sometimes i want the 'Name' to be editable (it depends on some validations), so i need the 'set' as well. does anyone has an idea to how to solve it ? thanx, Shalhevet.
    Selecting a Path (2 replies)
    ASPFriends.com 'winforms-cs' list
    Moved from [aspngfreeforall] to [winforms cs] by Let the good times roll bbilbro@hotmail.com I want to allow my users to select a path on their hard drive in which to save files (by default). I've looked at both the OpenFileDialog class and the SaveFileDialog class, but those both look like they operate on files and not on directories alone. Does anyone know of a built in dialog that allows the us...
    Win App will not close (3 replies)
    ASPFriends.com 'winforms-cs' list
    Copied from [winforms vb] to [winforms cs] by Tony Stark IronMan@aspelite.com (Note: Could this be placed into the C# winforms forum also could not fi nd the forum email address) Hello I have a windows app inwhich I am creating the controls dynamically as need ed onto a content panel. As the user flips from page to page, I clear the c ontrols, then add new controls to this panel using the code bel...
    RichTextBox Properties Misbehaving (3 replies, VIP)
    ASPFriends.com 'winforms-cs' list
    Hi All, 20 I am working with the RichTextBox control on a project, and some of its properties don't seem to have the desired effect. These problems occur in both VB & C#. 20 20 In the following code, the horizontal scrollbar does not appear, even though the ScrollBars property is set to ForcedBoth, and the AutoWordSelection does not seem to have any effect whatsoever. 20 Am I missing something or ...
    C# Win APP Distribution requirement (3 replies)
    ASPFriends.com 'winforms-cs' list
    Moved from [aspngfreeforall] to [winforms cs] by Marcie Jones marciejones@yahoo.com HI, We have developed a Windows based software using C#,ADO.NET and Crystal.Net some of our client still using windows 95, 98 ,NT and also 2000n operating system we would to know if my app will work in all above OS and what are things needs to inculde in setup kit Thanks for help Thanks Rashid Shaikh Off 201 872 32...
    =?us-ascii?Q?=3F=3F=2C=3F:_=5Bwinforms-cs=5D_Re:_Installation_Size?= (2 replies)
    ASPFriends.com 'winforms-cs' list
    SSBoYWQgcmVhZCB0aGF0IHRoZXJlIHdpbGwgYmUgYSB0b29sIGZyb20gTVMgdG8gZW5hYmxlIHlv dSB0byBjb252ZXJ0IHlvdXIgLk5FVCBhcHAgdG8gdHJhZGl0aW9uYWwgYmluYXJ5LWNvZGVkIGV4 ZSBmaWxlLiB5b3UgY2FuIHNlYXJjaCB0aGUgYXJpdGNsZSBhYm91dCB0aGF0IG9uIE1TRE4NCndl YnNpdGUuICBhbmQgaWYgeW91IGRvIHNvLCB5b3UgYXBwIGNhbiBvbmx5IHJ1biBvbiBzcGVjaWZp YyBwbGF0Zm9ybSwgdGhvdWdoIGl0IHdpbGwgcnVuIGZhc3Rlci4NCg0KLS0tLS0/Pz8/LS0tLS0N Cj8/PzogYm91bmN...
    Installation Size (4 replies)
    ASPFriends.com 'winforms-cs' list
    I have been asked to create a simple desktop address book App for reading data from a small MS Access database. As an ASP.net developer this is a little new to me, but I don't think is beyond my development skills. Ignoring the actual size of the executable and database, what sort of size should I expect the installation program to be? I am slightly worried that the users are going to have to inst...
    ImageList Strange Behavior (7 replies)
    ASPFriends.com 'winforms-cs' list
    (Sorry for the duplicate post. I first sent it accidentally without a title.) 20 I have a small WinForms program which adds several images to an ImageList. The form has several controls which then display one of the images, with a NumericUpDown control to select which image to display on the controls. One of the images in the original ImageList is replaced by a different image. 20 This all works f...
    UserControls:WebRequests2 (6 replies, VIP)
    ASPFriends.com 'winforms-cs' list
    To any who are interested. Can't connect to OleDB or Access via client side ... don't know how to ? Connection string doesn't take url ? Don't care really but any help here welcome? As previously stated the default security only allows access to the same IP, so straight connections to a SQLServer at a different IP is out. I am not up on web services yet but I have tested it and it failed getting d...
    Custom Controls (2 replies)
    ASPFriends.com 'winforms-cs' list
    Has anyone got any examples on custom controls in WinForms, nothing sopectacular, just something that gives the basics. There is currently a nice knob control ( ahem, ahem) at CSharpCorner.com. I haven't looked at it yet but am about to, it should be helpful. That one is obviously going to be fully owner drawn. The measly single example (the one I can find) in the VS net help don't really do anyth...
    how to add controls to a datagrid (3 replies)
    ASPFriends.com 'winforms-cs' list
    Dear all, I want to add controls to a datagrid within a winforms form. I am able to do this in webforms can anyone help me to do the same in winforms. with regards, m.b
    While were on the subject (3 replies)
    ASPFriends.com 'winforms-cs' list
    I know this should go it the romoting list but no one ever goes there judging on how many emails are in there. So I'm going to ask here. This is new to me. But I have played with winform examples of client/server apps. My only question which has been niggling me in the back of my mind is this : The server of the relationshiopo has to be runing for the client to connect. How can I execute the serve...
    User Control Questions (13 replies)
    ASPFriends.com 'winforms-cs' list
    Hi, I created a user control derived from System.Windows.Forms.UserControl. I embedded a DataGrid control to my user control. My user control showed up on a IE successfully. However my user control will not show up in either of the following cases. 1. I add the following line of code to the constructor of my control TcpClient client new TcpClient("164.90.243.60", 6868); 2. I add a customer column ...
    DataGrid Components (4 replies)
    ASPFriends.com 'winforms-cs' list
    Can anyone please suggest me a very good Datagrid control to use on my WinForms. I especially would like to do database related operations through the grid. I found that building this kind of Datagrid in WinForms is much harder than in ASP.Net. Any kind of suggestion or help would be awesome. Thanks in advance, SG.
    DateTimePicker Control issues (2 replies)
    ASPFriends.com 'winforms-cs' list
    I just got a call from a tester who said that it really annoyed her that she couldn't just enter a date string into the text portion of the DateTimePicker control. anybody seen that problem before? any solution? Andy Smith Chief Code Monkey
    DatePicker - checked property? (2 replies)
    ASPFriends.com 'winforms-cs' list
    I'm trying to use the DatePicker control for an ExpirationDate value for my application, and the ExpirationDate is optional. So if the user unchecks the box, then I want to record an empty value for this field in the database. Now, I've avoided any NULL/DateTime value issues by assigning the empty value to "01/01/1900", so that works fine. The issue I'm having is in trying to set the .Checked prop...
    Word Automation. (7 replies)
    ASPFriends.com 'winforms-cs' list
    Hi all ... What I'm after is this :: I can make an app to automate Word ( though the VB macros created in Word are not as useful as I had hoped). My question is this :: What I want to do is convert that app to a control and run it client side in a web page i.e. a dotNEt applet. Now I have been playing and have got dll's that reference other dll's that reference other dll's to download into the cac...
    MDIChild MinSize (3 replies)
    ASPFriends.com 'winforms-cs' list
    Regardless of what I set for the MinimumSize of an MDI Child form, the user can still change the size to the minimum size of any form. My setting is totally ignored. Any way to change that? Andy Smith Chief Code Monkey
    Graphics from an SQL-Server table (8 replies)
    ASPFriends.com 'winforms-cs' list
    I have an SQL Server table, with a column with DataType 3DImage. Now, I would like to bind this column, the image that is, to a control's property in a WinForm. How??? Any help would be most appreciated! Med hilsen Per Erik Lorentzen SK Data as per.erik@skdata.no
    visual form control TabIndex manager? (5 replies)
    ASPFriends.com 'winforms-cs' list
    Back in vb6 I had a neat little addin tool that let me visually set the tab order of the controls on the form by moving them up and down a list. Is that functionality built in now? anybody know an addin that does it? going thru each control manually to set the tabindex on each one is a huge waste of time. Andy Smith Chief Code Monkey
    FolderBrowser control (4 replies)
    ASPFriends.com 'winforms-cs' list
    A common thing asked for is a folderbrowser control for winforms ( curse microsoft for not including one ), and a common answer is to use the 20 System.Windows.Forms.Design.FolderNameEditor.FolderBrowser Class. However, I was just thinking... when somebody installs the framework with that small distributable instead of the sdk, do they even get the design dll where that resides? 20 Andy Smith 20 C...
    The scroll event of datagrid control (2 replies)
    ASPFriends.com 'winforms-cs' list
    Hi, I have a datagrid control embedded to a Windows form. I double clicked the scroll event of the datagrid property window. VS added the following code: this.dataGrid1.Scroll new System.EventHandler(this.dataGrid1 Scroll); private void dataGrid1 Scroll(object sender, System.EventArgs e) { } I added some code to the handler and set up a breakpoint at the beginning of the handler. Then I run the ap...
    tab control (4 replies)
    ASPFriends.com 'winforms-cs' list
    hi all, I have a tab control on a winform. How do you programmatically switch between tabs? If I do something like tabPage1.BringToFront(); tabPage1.Focus(); tabPage1.Show(); The contents of the tab will show, but the tabstrip itself doesn't switch to the correct tab. What is the correct method to switch between tabs? Thanks,. dave
    Spash Screen With Winforms (5 replies)
    ASPFriends.com 'winforms-cs' list
    Does any body know how to put a SPLASH Screen on a Winforms Application (Kinda the same way you used to be able to put A SPLASH on your Visual C MFC based Application). My main problem is, when RUNNING MY WINFORM APP for the First Time (since the pc has been booted) it takes QUITE A WHILE For the 1 Form to Appear (I gues its LOADING the .net framework stuff, because if I just close it down a run i...
    SendMessage (2 replies)
    ASPFriends.com 'winforms-cs' list
    Y'all : I think there have been posts on this before but I can't find them : What is the Winforms construct that is analogous to the SendMessage (hwnd, msg, wparam, lparam) and PostMessage (...) that we all came to know and love in standard windows. It would also be nice to be able to define user messages. Actually, are there any good references about the Windows message queue interfaces ?? I also...
    MessageBox Position (4 replies)
    ASPFriends.com 'winforms-cs' list
    Hi all, I'm using the System.Windows.Forms.MessageBox.Show static method to show a MessageBox, but unfortunately it's shown in the center of the screen instead of in the center of my Form. Is there any way to do it? Cheers, xico Tracking #: 50E3C19E9679BD4A9948D5C8480C8979A2505589
    trapping Ctrl-A (2 replies, VIP)
    ASPFriends.com 'winforms-cs' list
    hi all, I have a multi line text box, and I would like to offer the user the capability of using the Ctrl A shortcut to select all the text. How do I trap the Ctrl A keypress? Thanks, Dave
    WinForm: Removing Controls from a WinForm (3 replies)
    ASPFriends.com 'winforms-cs' list
    Moved from [aspngfreeforall] to [winforms cs] by Alex Lowe webmaster@asp grandrapids.net Hello Currently trying to remove textbox and label controls from a winform Panel using: Form1.Controls.Clear(); (Form1 the Content Panel) This works to remove the controls and allow me to re create new ones, but unfortunately this makes the 'x' close button on the window not operate properly. (Need to Ctrl Alt...
    Short-cuts for ToolBar buttons (2 replies)
    ASPFriends.com 'winforms-cs' list
    I have some toolbar buttons to navigate in records. These should be accessed through the short cuts Ctrl Insert (new), Ctrl Delete (delete), Ctrl Home (first), Ctrl PageDown (next), Ctrl PageUp (previous) and Ctrl End (last). 20 I can't find that these shortcut keys can be assigned at design time, so does anyone know how this might be acchieved? Med hilsen Per Erik Lorentzen SK Data as per.erik@sk...
    Related DataGrids (4 replies)
    ASPFriends.com 'winforms-cs' list
    A main table has a related child table, 1 many, and this child table again has a related child table, 1 many. The dataset with relations, the dataadapters & the SQL stored procedures are all a ok! I bind the main table to controls in a form. I bind the first child to a datagrid. So far everything is also a ok... Moving the current row in the main table causes datagrid1 to show all related records....
    Type or Namespace 'Windows' does not exist (6 replies)
    ASPFriends.com 'winforms-cs' list
    In the book .NET Windows Forms Custom Controls, page 47, it says to add a control (IconButton.cs) with "Add Existing Item" into a self made sub directory. I did that, then tried to compile and it gets 14 errors which say they can't recognize any classes, e.g.: Type or Namespace 'Windows' does not exist It is the same code of a control that works in another project. What do I have to do to make it ...
    saving settings (8 replies)
    ASPFriends.com 'winforms-cs' list
    hi all, I have a winform application that will allow the user to save their settings. The settings are basically 10 15 different textboxes on a form. This will allow them to enter different default settings and create different profiles. What is the best way to save these settings? I'm assuming a xml .config file but what is the quickest way of reading\writing xml files out? Every xml example i've...
    launching default browser (2 replies, VIP)
    ASPFriends.com 'winforms-cs' list
    hi all, I have a textbox that has HTML in it. I would like to have a button on my winform that launches the system's default browser, and displays that html in the browser. I realize I may have to save the html to a temporary file, before I display it... so I guess the real hurdle is launching the default browser. Does anyone know how to do that? Thanks, dave
    winform newbie (3 replies)
    ASPFriends.com 'winforms-cs' list
    hi all, I have a large multi line text box. I need to load the contents of a file into the text box. I'd like to have a browse to button, that you click, and it will show the file common dialog window about browsing to a text file. Does anyone have any examples for something like that? Can someone point me in the right direction? thanks, dave
    Authentication (4 replies)
    ASPFriends.com 'winforms-cs' list
    Can you use windows authentication in winforms like you can in webforms? Basically depending on who the logged in user is hide/view certain parts of a form. For instance on a stock information form, I would like to make the form an all in one job so it can be used for editing. A button would put it in 'edit/create new' mode and perhaps an extra couple of tab pages for setting additional informatio...
    how to continually check online file? (8 replies)
    ASPFriends.com 'winforms-cs' list
    I would like my WinForms application to read in an online XML file every 5 seconds in order to create a real time chat client. How can I fire the event without the user doing anything? Thanks, Edward Tanguay http://www.tanguay.info Join the world s largest e mail service with MSN Hotmail. http://www.hotmail.com
    Simple Question (8 replies)
    ASPFriends.com 'winforms-cs' list
    I have a MainMenu on a form, and it has a Help About MenuItem. I'd like the click event for this to bring up my About form. How do I do that in .NET? Steve Steven Smith, MCSE Internet, Microsoft MVP: ASP.NET ssmith@aspalliance.com President, ASPAlliance.com http://aspalliance.com The #1 ASP.NET Community http://aspsmith.com ASP.NET Training for ASP Developers Learning ASP.NET? Get My Book: ASP.NET...
    Simple but I left my book in the office (2 replies)
    ASPFriends.com 'winforms-cs' list
    Moved from [aspngfreeforall] to [winforms cs] by Marcie Jones marciejones@yahoo.com How do I display the current date (i.e., May 12, 2002) in a textbook on a C# windows form? Thanks, Jon
    Header text in a datagrid (3 replies)
    ASPFriends.com 'winforms-cs' list
    Hi, By default, the column header text of a DataGrid is displayed at the top left corner of the column header cell. How to make it appear in the central area of the column header cell? Thanks. Wenfeng
    TreeView control Events (2 replies)
    ASPFriends.com 'winforms-cs' list
    Hi, Is there an event that raises when the TreeView structure changes, for example when adding a Node to the tree or removing one ? Shalhevet.
    markup in TextBox? (2 replies)
    ASPFriends.com 'winforms-cs' list
    How can I format/markup text added to a TextBox? e.g. how do I make this text bold: textBox1.Text " b Executable path of application /b : " Application.ExecutablePath "'\r\n"; Or how does one markup programatically in WinForms as in WebForms, if I am creating reports with an unknown length that I want to have formatted nicely and have the user be able to scroll (e.g. not a Label)? Thanks, Edward T...
    MSN Messenger-like application and connection string (3 replies)
    ASPFriends.com 'winforms-cs' list
    I want to build an MSN like application which people can download from my site and enter and view data from an online SQL Server Database. In order to do this, the SQL connection string must in the application on their machine. And I remember from my CLR course that IL decompiled and the connection string can be seen in plain text (oh my!). So I thought the best way would be to create a very secur...
    Visit the archive for messages from this site.
  • May 2001 (1 item)
  • July 2001 (5 items)
  • August 2001 (6 items)
  • September 2001 (6 items)
  • October 2001 (61 items)
  • November 2001 (8 items)
  • December 2001 (10 items)
  • January 2002 (13 items)
  • February 2002 (24 items)
  • March 2002 (24 items)
  • April 2002 (8 items)
  • May 2002 (28 items)
  • June 2002 (19 items)
  • July 2002 (6 items)
  • August 2002 (4 items)
  • April 2004 (1 item)
  • June 2004 (3 items)
  • August 2004 (1 item)
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com