ASPFriends.com 'winforms-cs' list Archive - February 2002
Messages
Page: 1
Reflection Emit problem (4 replies, VIP)
ASPFriends.com 'winforms-cs' list
I want to create an assembly with code simmilar to public enum TestEnum : int { X 0, Y 1, Z 2 } I am using the following code...(see below), But for some reason the assembly is created with no types?! Can someone explain? using System; using System.Reflection; using System.Reflection.Emit; using System.Threading; public class Test { public static void Main() { AssemblyName an new AssemblyName(); a...
A real Windows Forms question for the list (9 replies)
ASPFriends.com 'winforms-cs' list
Moved from [winforms community] to [winforms cs] by Charles D. Carroll darthcarroll@asplists.com So, being that people aren't actually talking about Windows Forms on this list, I thought I'd throw one out to the crowd. I have a combo box on a form with data that is filled by a DataSet. I also have a function defined for SelectedIndexChanged. The problem is that this function fires when the data is...
MDI applications (2 replies)
ASPFriends.com 'winforms-cs' list
I have ploughed through a book on C# and also some documentation on the web. Is there any way for an MDI parent to tell which child should become active? I would like to program a TabControl to control childs similar to what's done in CuteHTML (www.cutehtml.com). Is this possible at all? Yours sincerely, Thomas Breivik
Empty Strings as NULLS (4 replies)
ASPFriends.com 'winforms-cs' list
Hi All I have this winforms Application which has a DataGrid control on it tied up to a table in the dataset. I have couple of columns which are NULLABLE columns. When I try to edit these columns data by making them empty strings or Add new Rows and do enter any values into these columns and hit Update, they are stored as EMPTY STRINGS back in the database which is not unusual. But my question is,...
Calling a method in Form1 from Form2 (4 replies)
ASPFriends.com 'winforms-cs' list
As I've stated in another entry of mine, I get a object reference error when I try to do this. I have two forms who share the same namespace. When I try to call a method in one Form from the other Form, I get the error. I do a simple NameSpace.Form#.MethodName(); call, yet no go. It is somewhat important for me to find out if this is possible or not, or if I'm doing something terribly wrong. With ...
Compiler Error CS0120 (6 replies)
ASPFriends.com 'winforms-cs' list
I have encountered a problem of type CS0120. It's an object reference type error. I have two forms, one MdiParent, one MdiChild. I'm trying to send a method call to the MdiParent from the MdiChild, but no luck. In MdiChild, I have a simple PPM.Form1.blahDiDa(); method call. blahDiDa() only has one statement, a simple statusBar1.Text "Blah!" call. Yet it doesn't work! If I put the blahDiDa method a...
Having one application trigger an event in a separate application (3 replies)
ASPFriends.com 'winforms-cs' list
Copied from [aspngstart] to [winforms cs] by Alex Lowe webmaster@asp grandrapids.net I have 2 windows applications (.exe's) which I have built in C#. I want the completion of a process in one app to trigger a process in the other app. I want this event driven, not polled. I could use a filewatcher and modify a file from the first app and then set an event in the second app that fires when modifica...
MdiList, possible to use this? (2 replies)
ASPFriends.com 'winforms-cs' list
Right, another question from the C# noob. Is it possible to use the MdiList used to display MdiChilds in a menu? It will be used to control the childs from elsewhere, and not using the menu. Is this possible at all? If not, is there a way of determining displayed childs and then set one of them to be visible? Med hilsen Per Erik Lorentzen SK Data as per.erik@skdata.no Original Message From: Per Er...
CS referencing question (2 replies)
ASPFriends.com 'winforms-cs' list
Greetings! Here is some code for which I have a question: /*****************************/ MyClass { String MyText "Hello"; } Hashtable myTable new HashTable(); myTable.Add("one", new MyClass() ); myTable.Add("two", new MyClass() ); /*******************************/ I would like to enable the MyClass object to be able to remove themselfs from the Hashtable without having to use the myTable.Remove()...
RichTextBox (3 replies)
ASPFriends.com 'winforms-cs' list
I'm trying to make a text editor that allows users to mark up content. When a user selects text and then clicks a mark up button I would like the textbox to put "tags" around the selected text. However I don't just want text tags... I'd like to throw images into the richtextbox, or something similar. I've seen a good example of what I want done in XML SPY's XSLT designer. I'm wondering if the RTBo...
Status Bar Alignment (2 replies)
ASPFriends.com 'winforms-cs' list
I have a third party outlook style control bar docked to the left side of my form. On the bottom of my form I have a status bar. The outlook bar extends to the bottom of the form. I would like the status bar to extend the width of the form and the outlook bar to extend to the top of the status bar. How would I accomplish this?
Learning C# (8 replies)
ASPFriends.com 'winforms-cs' list
Hi, I wanted to know how do I go about learning C# from the begining ? Tips would be highly appreciated. Thanks, Priya Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
DatagridBoolColumn (3 replies)
ASPFriends.com 'winforms-cs' list
Hi, I want to use a DatagridBoolColumn in a datagrid. I can see my checkbox in my grid, but all the checkboxes are default checked AND grayed out?? I can click on the checkboxes and change the value, but when the row loses the focus it jumps back to checked and grayed out. Has anyone a sollution? Tanx, Jan Disclaimer http://www.infosupport.com ******************************************************...
New Thraed && I've been talking too much - about ASP (2 replies)
ASPFriends.com 'winforms-cs' list
Hi all ... I am wondering about ASP's ( the app serv prov) types. I have written to a few and they say their model for the future ( they reckon 4 yrs approx before fully settled) is based on html i.e. jsp or asp.NET and browser based. Why ?? Since ages ago I have always fancied doing a whole website as a java applet ... but never did 'cos it looked horrible. WinForms lets you make it beautiful. Ev...
ListView and TreeView (5 replies)
ASPFriends.com 'winforms-cs' list
Hi list, Does anyone know of a control that allows hierarchal data (like TreeView) and allows multiple columns (like ListView)? TIA Chaim
combo boxes (3 replies)
ASPFriends.com 'winforms-cs' list
I'm posting this question for a friend who is a beginner and wants to know how to create combo boxes?? thank you, alex
REVISIT =>> Calling a method in Form1 from Form2 (4 replies)
ASPFriends.com 'winforms-cs' list
Please reread this thread if you have them on your pc. OK ... Calling a forms variables from another form. If we use the static method then we acess those variables using the type not the instance, and we can change those variables. Cool. But what if we wanted those variables specific to an instance of a form (i.e. non static variables) && still be able to change and access them. If we do this fro...
DataGridColumnStyle derived classes (2 replies)
ASPFriends.com 'winforms-cs' list
Hi! Can anyone offer any example of derived classes from DataGridColumnStyle (something like DataGridComboBoxColumn) thx
:: Firing Events (2 replies)
ASPFriends.com 'winforms-cs' list
Hi all ... I have picked up on Marc Boulters DataGridExtensions so that I can put Combos, LinkedLabel's, buttons and so forth into a datagrid ... however I also wish to play with the behaviour. So my question is this :: Events are fired by the system ... so that, for example the overridden method protected override void Edit ( CurrencyManager source, int rowNum, Rectangle bounds, bool readOnly, st...
DataGrid - Why? (4 replies)
ASPFriends.com 'winforms-cs' list
Hi group, I really dislike the design of the DataGrid. If you want to display an Image, ComboBox or any other control in a DataGrid, you need to first code an object that inherits from DataGridColumnStyle (i.e. DataGridImageColumnStyle for images). This is unessecary, since all Controls inherit from System.Windows.Forms.Control anyways. Wouldn't it make sense to have a generic ColumnStyle that cou...
TabPage Validating Event (6 replies)
ASPFriends.com 'winforms-cs' list
Hi all I have this application which uses tabControl with 3 tabPages in it. Each of the tabPages has a DataGrid tied to individual datasets and couple of buttons for Insert/Update/Delete. On the Form (I mean not on each of the tabPages) I have a Close button which when clicked closes the form. I am implementing the validating event of each of the tabPages and checking if there are any changes made...
Migrating a WinForms app from Beta2 to V1 (2 replies)
ASPFriends.com 'winforms-cs' list
When trying to re compile my application, I continually get errors stating that the .resx resource files are not in the required format. This is a WinForms application. Is there utility or documentation on how to correct these files?? Thanks Barry Akester Systems Analyst / Programmer Global Aerospace Phone: ( 905 ) 479 2244 x249 Fax: ( 905 ) 479 0751
Problems with Databinding in Windows Forms (2 replies)
ASPFriends.com 'winforms-cs' list
Hi, I am doing a simple form in which i am doing databinding to display/edit the records. The datasource is a dataset which is not filled from any database. It has two tables and there is a relationship between the two. actually it has a master detail relationship. During the load of the form, I bind the dataset fields to the control's (textbox & combobox) text property. I open an XML file and fil...
Close Button (3 replies)
ASPFriends.com 'winforms-cs' list
Hi all, I'm having trouble preventing my validation code from running when the user clicks the Close Button. I can prevent it on the Cancel button by setting CausesValidation to false. Anybody know how to make the Close button not cause validation? Sample code follows. To try it, compile with csc /t:winexe /r:System.Drawing.dll,System.Windows.Forms.dll examp.cs Click on the main form. Enter someth...
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