| Printing (5 replies) |
| ASPFriends.com 'winforms-cs' list |
| Can anyone recommend any good resources for figuring out how to print out an invoice or the like from a C# app please? I'm rewriting our company software that's done in Paradox and objectpal and am hitting a blank on how to simply print the invoice out when I'm done. I've seen a few examples and I think I can print text but its how to get boxes round things. The only other way I saw was an article... |
|
| Retrieving values from a form (4 replies) |
| ASPFriends.com 'winforms-cs' list |
| I'm sure this is must be mindbogglingly obvious because I can't find an example anywhere. I have a form which does several jobs, one of which needs some input from the user. When the user clicks a button to initiate a set of events it pops up another form, consisting of a text box and an ok button. How do I get the result of that textbox back to the main form? Thankyou Morkai |
|
| DateTimePicker focus problem (5 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi all, I have a problem with the DateTimePicker control, If I change the date not using the calendar and I enter the dateTimePicker control field, the text in it gets selected (which is good). However when i choose a date using the Calendar, the text in the control field doesn't get selected (focused), upon entering it. I also tried to use : dateTimePicker1.Focus(); dateTimePicker1.Select (); but... |
|
| Saving data from DataSet (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| I have a form with a DataSet containing 2 related tables, orders and orderlines related by the field OrderID. Orders are bound to fields in the form, orderlines to a DataGrid. The setup of the SqlCommands, DataAdapters, DataSet, DataGrid, and so forth is ok. Via the SelectCommand one order at a time with all related orderlines are read from an SQL 2000 Server database, wich means only one order (r... |
|
| KeyDown event in DataGrid handling "+" and "-" keys (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Is it a bug in .net that the " " and " " keys on the numeric keypad is not handled by the KeyDown event in a DataGrid? When pressing either of these keys, nothing happens... Med hilsen Per Erik Lorentzen SK Data as per.erik@skdata.no |
|
| Organisation of code (5 replies) |
| ASPFriends.com 'winforms-cs' list |
| The software I'm developing takes care of our purchasing, stock maintenance, customer maintenance, invoicing etc. Its going to be a big project and now I have some idea of what exactly it's going to involve I'd like to split it up just to make maintenance easier. The app is a mdi application so I created a blank solution called Sys2000. I then added a project called Main and in this I have the pri... |
|
| Insert empty column into datagrid (4 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi, I am creating a purchasing system. When goods come in the order is logged off the system by entering the quantity delivered of each item. If the qty ordered and the qty delivered don't match then the order is obviously incomplete and it is left in the system as an outstanding order. The form asks for the order no and the delivery note number then fills a datagrid with all the information about... |
|
| Question:What is behind button1_Click? (3 replies) |
| ASPFriends.com 'winforms-cs' list |
| Hi, I have a DataGrid control on my windows form. The control has two TextBox columns and two customer columns, which I got and modified from Scott Berry's GridCombo.zip. I then registered a MS message queue event. I added one row to the datatable associated to the DataGrid control in my event handler function and called dataGrid1.SetDataBinding(myDataSet,"Events")to show up the change. The proble... |
|
| CSS for Winforms? (2 replies) |
| ASPFriends.com 'winforms-cs' list |
| Moved from [aspngvs] to [winforms cs] by devin devinr@drone interactive.com How can I define styles in VS.NET / Winforms so that I can apply them to many buttons? (like in WebForms where you define a .css style sheet) Thanks, Edward Tanguay Over 200 free code examples: ASP.NET, C#, XML, XSL: http://www.tanguay.info Send and receive Hotmail on your mobile device: http://mobile.msn.com |
|
| deploying winforms with databases (4 replies) |
| ASPFriends.com 'winforms-cs' list |
| Moved from [aspngvs] to [winforms cs] by devin devinr@drone interactive.com I'm new to Winforms and am unclear how you would deploy a WinForms application which accesses an SQL database. You read often that C# applications are "Xcopy deployable" but what if your application uses a database. How does deployment work with databases? Thanks, Edward Tanguay Free ASP.NET / C# code examples: http://www.... |
|
| what is the C# return character for a TextBox? (2 replies, VIP) |
| ASPFriends.com 'winforms-cs' list |
| Moved from [aspngvs] to [winforms cs] by devin devinr@drone interactive.com I've got a TextBox on a WinForm and am filling it with a string of text that I want to break at the end of every line but none of these return characters work in C#: line "\n" (appears as a tiny box) line CrLf (error) line " br " (appears as is) line Chr(13) (error) line "\r" (appears as a tiny box) What's the correct one?... |
|
| New content on http://windowsforms.net (3 replies) |
| ASPFriends.com 'winforms-cs' list |
| This is a multi part message in MIME format. InterScan NT MIME Boundary Content Type: multipart/alternative; boundary " NextPart 001 01C1F701.133B1EC6" NextPart 001 01C1F701.133B1EC6 Content Type: text/plain; charset "US ASCII" Content Transfer Encoding: quoted printable http://windowsforms.net http://windowsforms.net/ has been updated. 20 We've got a new color scheme and a new samples section. We... |
|
| 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... |
|
| 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... |
|
| 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. |
|
| 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 |
|
| 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 |
|
| 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... |
|
| 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 |
|
| 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... |
|
| 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 |
|
| 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 |
|
| 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... |
|
| 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 ... |
|
| 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.... |
|