ASPFriends.com 'winforms-cs' list Archive - October 2001
Messages
Page: 123
How can I add sound to C# apps? (4 replies)
ASPFriends.com 'winforms-cs' list
Moved from [aspngcs] to [winforms cs] by darthcarroll@asplists.com Hi: How can I add sound (or mpeg video) to my C# app? Thanks very much in advance, Patrick
Hosting shdocvw (2 replies)
ASPFriends.com 'winforms-cs' list
We want to share code between a desktop and an ASP.Net version of our application. To simplify matters, we would like to host shdocvw on a winform as part of the UI there being no native web browser control in the .Net Framework as far as I can see. Has anyone tried this? It is a huge ActiveX control and likely to stress the interop. We'd also like to use the Mshtml editing features, which are ina...
MDI Application (2 replies)
ASPFriends.com 'winforms-cs' list
Hi All I ran into this very small problem which I am not able to figure the way out. I have an MDI application, which contains a menu like: File Child1 Child2 Child1 and Child2 are 2 different winforms. In the click event of each of the menuItems the code I wrote is File/Child1 Click frmChild1 frmch1 new frmChild1(); frmch1.show(); File/Child2 Click frmChild2 frmch2 new frmChild2(); frmch2.show();...
Host MSHtml in a winform (2 replies)
ASPFriends.com 'winforms-cs' list
hey list, Abridged version of my question: How do I host MSHtml.dll in a .net winform? I've found lots of info on how to do it from c ( which doesn't help me to much, I never learned it ) and vb6 ( which helps a little more ) with COM, but how do I ( or is it possible to ) make it a control in my vs.net toolbox that I can drag onto a form and hook into events and whatnot? I'm not neccessarily look...
Windows XP and Themes ... (2 replies, VIP)
ASPFriends.com 'winforms-cs' list
i just read a quote from MSDN that says this about Windows XP Visual Styles: "A theme developer's kit will not be available with Windows XP." I was wondering if this means that we will never be able to create themes or if it means that the theme developer's kit will not come WITH windows XP but will be available in some other way. Regards, Michel C. *c# programmer. *webmaster *.NET lover
Threads/Controls (5 replies)
ASPFriends.com 'winforms-cs' list
Hi, I have a main form which has a thread running in the background. When a certain event happens within the thread, I would like to add a TreeNode to my TreeView on my main form. I am not allowed to do this from within the background thread. Could somebody please quickly explain how to do this properly with Contol.Invoke ? Thanks, Ryan Duffield
Help on MessageBox (3 replies)
ASPFriends.com 'winforms-cs' list
This message, which was originally sent to "aspngibuyspy", has been moved to "winforms cs" mailing list by the List Master Hi, I've done some programming in Beta 1, and since last week have started off on Beta 2. I've come up with a strange problem in C#. I'm not able to get the Messagebox to appear even though I used the "System.Windows.Forms" namespace. The command I gave was MessageBox.Show("HI...
Quickstart Examples aren't localised? (2 replies, VIP)
ASPFriends.com 'winforms-cs' list
FWIW, the quickstart SimpleBinding example won't run on my machine because of localisation issues with date parsing. In my neck of the woods, the following code... DateTime.Parse("3/25/1942"); ...is interpreted as the 3rd day of the 25th month. Uh oh. Exception time. :) Dan Green [ http://dotnetdan.com putting the dan in .net ]
Binding bits 'n pieces questions (2 replies, VIP)
ASPFriends.com 'winforms-cs' list
Three more naive questions: * Is DataGrid.SetDataBinding just a method version of setting DataSource and DataMember properties or is there more to it than that? The help seems to mention something about run time resets but I don't know what that means. * Why don't I have to mess with a DataBindings property with a DataGrid? What's happening behind the scenes? Or is a CurrencyManager not involved w...
Minimize to Tray (5 replies, VIP)
ASPFriends.com 'winforms-cs' list
Hey all, Is there an overridable method for the Close button in a form's control box? If not, is there some Event that I'm overlooking that I can handle when that button is clicked? I basically want to set Form.ShowInTaskBar to false, and Form.WindowState to FormWindowState.Minimized when that button is clicked. Thanks, Ryan Duffield
SHBrowseForFolder (5 replies)
ASPFriends.com 'winforms-cs' list
Hey all, Could someone please point me to some C# code that can access the API to browse for a folder (not files), since that control isn't in beta2? Thanks, Ryan Duffield
addition (7 replies)
ASPFriends.com 'winforms-cs' list
Respected Sir I have a problem. I have developed a form using visual c#. I have dropped three text boxes and one button. I have double clicked on button, now click event for button is open here I wrote code textBox3.Text textBox2.Text textBox1.Text; Here I m getting an error then I wrote textBox3.value textBox2.value textBox1.Text; Here I got an error Pls. tell me what is right sol. Of this proble...
Focus (5 replies)
ASPFriends.com 'winforms-cs' list
Hey all, I have a TreeView with a DoubleClick event. The DoubleClick event basically just pops up another form. My problem is that the new form doesn't get focus. The focus remains on the form with the TreeView. Even after explictly telling it to focus on the new form, it doesn't. Has anybody else noticed this behaviour?? Thanks, Ryan Duffield
Tray Control. (5 replies)
ASPFriends.com 'winforms-cs' list
This message, which was originally sent to "aspngvs", has been moved to "winforms cs" mailing list by the List Master Wot happened to the Tray Control that was in VS.NET beta 1?? I liked that control, twas soooo handy... now I have to make me own :( Regards Richard Smith Web Systems Administrator Web Application Engineer 20 A: CN Group New Media | New Media House | Hartness Road A: Gilwilly Ind. E...
Formatting data bound items (10 replies)
ASPFriends.com 'winforms-cs' list
I'm data binding a win forms listbox to a DataTable and I want to format each item for display (eg. strip off some tail characters). How do I best go about it? Dan Green [ http://dotnetdan.com putting the dan in .net ]
Grouping Radio Buttons (5 replies)
ASPFriends.com 'winforms-cs' list
Hello, In VS.NET (Beta 2) the documentation says that to group radio buttons one must set the Group property of the first button to true. But in the property window for the radio button, I do not see a Group property. Does anybody know where the Group property is or how to group radio buttons?
Default Pushbutton (2 replies)
ASPFriends.com 'winforms-cs' list
Hello, I have not found anything in the documentation of Beta 2 about how to designate a button as the Default Pushbutton. The closest I have come is the IsDefault property of ButtonBase, but that is protected. Is it necessary for me to define a subclass of Button in order to make a Default Pushbutton? The same question can also apply to making a button be the cancel button (operated also by the e...
HTTP page reader code (3 replies, VIP)
ASPFriends.com 'winforms-cs' list
I have this code working so well thanks to Alex Lowe and Steve Smith (and probably some others), and it does just fine in an ASPx page, but when I use it in a VS.net Winform project and try to compile, I get "An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll Additional information: Non negative number required." All the namespaces are there, and I'm hitti...
Adding items to a data source (3 replies)
ASPFriends.com 'winforms-cs' list
Let's say I have a combo box that I assign a "States" ArrayList data source to: comboBox1.DataSource States; comboBox1.DisplayMember "LongName"; comboBox1.ValueMember "ShortName"; Let's also assume that the States ArrayList is initially empty. It is only at some later point in the application's life cycle that an item is added to it: States.Add(new State("Alabama", "AL")); Should the comboBox duti...
Help with displaying data in a datagrid (5 replies)
ASPFriends.com 'winforms-cs' list
All I need some very basic help with datagrids on a Winform app. I have written a simple console app in C# that searches Active Directory to return names, phone numbers, etc. What I want to do is now convert that app to a simple WinForm, GUI based one. What I'm trying to figure out is the best way to present the search results. the AD Searcher classes return the results as a collection with one el...
Newbie question (6 replies)
ASPFriends.com 'winforms-cs' list
I need to write a very basic web service and consume it with a winform app. I am not sure of the differences between SOAP or MSMQ to deliver the messages. In the long run of things, I need to "guarantee" the message was delivered to the webservice and if at all possible, encrypted results. Since I am new and need to crawl before I walk, I just need a GOOD example of a very basic webservice and how...
ScrollBars on RichTextBox (3 replies)
ASPFriends.com 'winforms-cs' list
Hoping that I'm missing something. I've got a RichTextBox that I keep AppendingText too. The problem is, that it does not auto scroll to keep up with the text, and I cannot figure out how to force the scroll. There is a ScrollBars propery which returns an enum. There is also a ScrollToCaret method, but my TextBox is readonly so that doesnt make sense, and I cant see how to set the Caret's position...
DataGrid updating (7 replies)
ASPFriends.com 'winforms-cs' list
Hi group, I have created a form with a datagrid, my requirement is that when the user clicks "F5" I want to update a certain column with the current time. I defined a DataGridTableStyle and a DataGridTextBoxColumn object. I attached an event handler to the DataGridTextBoxColumn.TextBox.KeyUp property. So now when I hit "F5" the column is updated, but alas, as soon as I navigate to a different line...
hWND in WinForms (2 replies)
ASPFriends.com 'winforms-cs' list
Moved from [aspngcs] to [winforms cs] by darthcarroll@asplists.com Hi guyz, Could someone help me out plz...in Visual Basic 6 we had something called hWND which used to hold the value for a handle of a form..whats the equivalent in C# and WinForms?!?!? Original Message From: Brian Boyce [mailto:BBoyce@alphatec.net] Sent: Thursday, September 06, 2001 7:34 PM To: aspngcs Cc: aspngcs Subject: [aspngc...
Could not transform licenses file error (3 replies)
ASPFriends.com 'winforms-cs' list
I'm using VS.NET and have a UserControl contained within the same assembly as the Form that uses it. I'm occasionally having to stuff about in order to get my compile to work because I receive "Could not transform licenses file 'file' into a binary resource" errors. Should I be housing the UserControl in a separate assembly? I'm currently not doing this because I want to deliver the end product as...
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