The textchanged event is triggered by any changes to the property text. The changes can be made from the UI as well as from any code.
Maybe you should try and attacht the eventhandler at a later moment.
It would be helpfull if you could post some example code, demonstrating the problem.
And...
I also looked it up and textchanged is an event. It's triggered as soon as the text property is changed. To see if any changes are made you should write an eventhandler for this event (simply double-click the event in the designer to generate the handler) and then maintain a boolean variable...
Personally I tried VB.NET for about a week and then concluded that I had to write to much code. I could do the same thing a lot faster in C# and C# was to me a lot easier to learn.
Before .NET I've done mostly Delphi and VB6. I know my VB6, but still I had to learn in .NET, so I choose to do...
I've made a small testprogram, but in there it does work, so there's a problem with my code somewhere.
Will keep you informed.
And then silence smacks right in there...
... And it is loud!
Sorry for the scares information, but my code is spread throughout several classes.
Fill is called everytime the form opens, also when there is no data.
You're saying I shouldn't call fill when there is no data?
And then silence smacks right in there...
... And it is loud!
You could change your SQL to generate a single field with all the values that you want to display and then use this field in displaymember.
You can use a SELECT CASE to do this.
And then silence smacks right in there...
... And it is loud!
I have this form wich contians a dataset that can be empty in certain conditions. When I add the first record to this dataset it doesn't show this record in the bound controls on the form (I know for shure, cause the values differ from the values initialized in the new record).
I tried calling...
B.F doesn't override A.F. B.F hides A.F. If you cast a reference to an object from B to A, then A.F is going to called, because it doesn't "know" about hiding.
And then silence smacks right in there...
... And it is loud!
In a windows application I open a form on top of the application, to allow for some input. Normaly I want the focus to be on the first control, so I put the tabindex on that control to 0 and number up from there.
In one particular situation I want to focus on another control in the form. I tried...
Wow! I found the problem and I'm shocked!
It appears that I didn't setup some default values to correct values for the dataset. It's fine that stuff failes when used incorrectly.
I'm just very surprised I didn't get any errors. It appears that somewhere along the line exceptions in this area are...
I didn't give the complete information in the first post. Sorry.
I actually do the databiding on a usercontrol. Then the control is docked onto a panel and it works. But the control where it isn't working is actually placed on a wrapper form at design time and then the form is shown on top of...
The official way to go is, render XML and just setup differnt XSLT's for every group, but I assume this is not what you wanted to hear. ;)
You could look into subclassing an ASP page into separate ASP pages for each group.
And then silence smacks right in there...
... And it is loud!
How are you prompted for username and password? Is this trough a form, http authentication box or maybe some other method?
And then silence smacks right in there...
... And it is loud!
I'm affraid the above questions do not apply to this problem. What you could do is create a new ASP page that actually streams the requested field with the right META Type to the client.
You can than use this page as you would a normal picture on the filesystem.
And then silence smacks right in...
In fact you could just go to the class source of the datatable and change it. I'm not shure if that's a good idea, cause it might be internal for a reason, but it's worth the try, I guess.
(To get to the class source, just look up the declaration of the datatable in your form source and then...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.