| non clickable TextBox (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| hello, my aim is to create an enabled text box with the behaviour of an disabled TextBox without greyed Text. i created a custom text box control and set the read only property to true and changed the background color. i overrided OnMouseDown and OnClick events, but the text is still selectable. any suggestions? |
|
| Non-Rectangular Form Question (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Hi, i have some questions about non rectangular forms 1) i build a form as a non rectangular by setting the form background to some bmp file and the transparenceyKey to the color which i want to make transparent and every thing ok BUT when i m replacing the bmp file i can see the new one in the form designer but when i m running the program i m getting the old bmp file. i tried to remove the backg... |
|
| NoNullAllowedException (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I using VB.NEt to connect to a Access Database. When I try to add a record to the customer table. It gives me this error. An unhandled exception of type 'System.Data.NoNullAllowedException' occurred in system.data.dll Additional information: Column 'WorkPhone' does not allow nulls. I verified how the data should be entered into the field and made sure that I enter it that way onthe Vb form but I s... |
|
| NOT ANSWERED BEFORE Wiring button events in code. (VIP replies) |
| ASPFriends.com 'aspngescalate' list |
| "I tried to ask this on [aspngfreeforall] and got no answer (posted 24/7 & 25/7). Now I need to get this answered because the other list is not providing me with valid answers. (no replies were posted at all)." Look at the code below: (You can see the code in action at http://ip1.cambro.net/v0 2/webform3.aspx ) I am trying to wire up the click event of button2, but only do it when button1 has been... |
|
| NOT ANSWERED BEFORE: validation firing on postback - repost (VIP replies) |
| ASPFriends.com 'aspng-validators' list |
| Is there a way to validate just a control or pane and not the whole page when you use page.validate? I have a second pane after a login pane, that displays a registration form, and all the fields have already been validated and are showing the 'required' message. I have to call validate.page because I am using an ontextchange event to submit. Thanks for any ideas on this. Original Message From: Br... |
|
| NOT ANSWERED: LinkButton Bug (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Resending this so that I can eventually move to escalate: I've noticed that the link button uses javascript to do postbacks but there is one problem with this. form.submit() doesn't call the form onSubmit code (if any is defined)....I have a user control that requires some processing when the form is submitted. But if the user control is used in page that uses linkbuttons (instead of normal submit... |
|
| notify to other control state change... (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, I have a web custom control that i drag and drop into a webform.aspx... Next to it, i made another web custom control and drag and drop the new one into the webform.aspx... I would like to know how could both webcontrols notify their changes in the state... For instance. If a webcontrol its a dropdownlist and the another webcontrol its a textbox... if i change the dropdownlist how could the dr... |
|
| NotifyIcon and SetForegroundWindow (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I use NotifyIcon to minimize my app to the system tray. I also check everytime my app runs for the previous instance, if it is running, call SetForegroundWindow to bring its window up front and exit the second instance. The problem is it doesn't bring the app out of the system tray. It works fine if the app is NOT in the system tray. How do I bring it out of the system tray and make it an active w... |
|
| NotifyIcon Bug, Application.EnableVisualStyles, Application.DoEvents, and Memory Leaks (VIP replies) |
| microsoft.public.dotnet.framework.clr |
| I've got a C# application that disables some application functionality, displays a form, and when the form is closed enables the functionality. I know there are several approaches to this, but I wanted something quick and relatively risk free. Therefore, I wrote the code like this: SetEnabled(false); MyForm NewMyForm new MyForm(); NewMyForm.Show(); while (NewMyForm.Visible) { Application.DoEvents(... |
|
| NotifyIcon program - Button exception (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| When I add a Button to my NotifyIcon program I get the following: An unhandled exception of type 'System.NullReferenceException' occurred in unknown module. Additional information: Object reference not set to an instance of an object. I suspect this is a common novice error but I haven't any idea what I need to do to get this to work. "Help" seems to be geared toward people who have been coding fo... |
|
| Null pointer exception for events in usercontrols (C#) (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I'm writing user controls with custom events. I have a parent custom event that exposes some abstract methods and some custom events. I have also created some new user controls that derive from the parent custom control and add some text boxes, labels, buttons etc... So, let's say I created a control with a button in it. I'd want that when I click on the button the button sends an event to the... |
|
| Null reference? (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi all.... I have in my global.asax page protected void Session Start(Object sender, EventArgs e) { Session["UsersDB"] "Provider Microsoft.Jet.OLEDB.4.0;Data Source " Server.MapPath("databases\\users.mdb"); } and then in my code when I try to reference Session["UsersDB"] I get the error "Value null was found when an instance of an object was required" Is there something I have to set in the web ap... |
|
| NullReference Exception - Why? (VIP replies) |
| microsoft.public.dotnet.general |
| I keep getting the following error with the code below: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Caused by this line: this.basicSearch.OnSomethingHappened new System.EventHandler(this.ShowResult); Here is some of my code: CODE private void ShowResult(object sender, System.EventArgs e) { this.results.searchData ((BasicSearch)sender).sea... |
|
| NullReferenceException in UnsafeNativeMethods.PeekMessage and multithreading concepts in general (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I'm developing a simple applications that extracts data from files, that can eventually become large. I have logic that scans a particular folder, and for each file in the folder instanciates a parser class and processes the specified file. I want to start a background thread with the main logic to not freeze the UI. I am new to windows forms, so i had to try some scenarios and I am wonder what is... |
|
| NullReferenceException with Image.Save (VIP replies) |
| microsoft.public.dotnet.framework |
| When calling the Save(filename, imageFormat) method of a System.Drawing.Image object, I get a NullReferenceException shown below. I get the exception if I create a new stream writer pointed to the file I want to save, and give the Image.Save method the BaseStream of the new stream writer, or if I use the overload of Image.Save with the string filename parameter. The exception does not occur every ... |
|
| Numbers in the rows in a grid (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi, In a grid I'd like to show a column with incremented numbers from 1 upwards. Like this: 1 MyName 2 Yourname 3 Hisname 4 Hername Any ideas? TIA /Kenneth |
|
| Numeric Textbox - getting warmer (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| The following control code only allows for the entry of numbers, backspace, and decimals (or periods). The problem lies in the last statement it allows multiple decimals or periods. How would I modify the code to only allow 1 decimal? In other words once a user entered one period no others could be entered? Private Overloads Sub TextBox1 TextChanged(ByVal sender As System.Object, ByVal e As System... |
|
| Numeric Textbox Code (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments and I'm definitely reading them all but I think I have a differing opinion of how I want to handle the 'user experience' in the application I'm creating. While I know I could allow the user to enter in number and alpha text in a text box and then tell them when the execuate ... |
|
| numeric textbox help (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| hi i have tis procedure for my text box Private Sub TextBox1 KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Char.IsDigit(e.KeyChar) Then e.Handled False Else e.Handled True End If End Sub and work fine but i cant use backspace to delete number if i mistake or cant use "," or "." for decimal numbers. Any sugestion? Please help Thanks... |
|
| NumericUpDown.Select problem (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Hello Everybody, I am having text selection problems with the NumericUpDown control. I'd simply like to highlight all text within the NumericUpDown control upon focus entry on the control. For instance, if somebody uses the 'Tab' key to jump from one control to the next, the entire number in the NumericUpDown should be highlighted, so that the first numeric text entry will replace the entire numbe... |
|
| Object Error (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I've read through the prevoius posts and coudln't find an answer. I'm getting a "Object reference not set to an instance of an object." and can't figure out why. My pageload sub is check for login true, then cookie to login, then bounce to login page. So I find if the user isn't logged in and there is no cookie I get this error. I have no drop downs within the "If Not IsPostBack Then". I have data... |
|
| Object initialization in C# thread - unexplained behaviour (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello all, I have a C# class (in this example, called A) that, in its constructor, starts a thread with a method of its own. That thread will be used to continuously check for one of its object's state and generate classe's A events "Connected" and "Disconnected". It looks something like this: " public class A { private AnotherObject an obj; private Thread thr; ... public event System.EventHandler... |
|
| Object Reference Error Before Running The Application (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I'm getting an Object Reference error before I even run my app, and I'm not sure where to look to find the cause. I'd appreciate your help. When I open my Windows Application project, the following Microsoft Development Environment error message displays: "Object reference not set to an instance of an object." Then when I access the design view of one of my forms, the controls on the form are hidd... |
|
| Object Reference Not Set to Session Dataset (VIP replies) |
| microsoft.public.vsnet.general |
| I'm getting Object Reference Not Set error on one computer but not another, with exactly same files. Files were copied from one computer wwwroot project to same location on other computer. Can't figure out why it works on one computer and not other. Both have Windows Server 2003 and VS.NET 2003. NOTE: Problem centers around getting dataset from Session variable. Error and code are below. I'd appre... |
|
| Object sender in VB.NET <-> C# (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Hi, if you use a server side function to display the id of an control that raised the event (function), in vb.net you could use: Sub MyChangeCode(objSender As Object, objArgs As EventArgs) divResult.InnerHtml "Change event detected for control '" & objSender.ID & "' br / " End Sub Now I wanted to convert this code in c# and tried out the following: public void MyChangeCode(object objSender, System... |
|