|
Roger Wright wrote: After fiddling
Roger Wright wrote: I no longer have the listboxes populated when I run the code.
Roger Wright wrote: What the heck am I missing here?
No way to know without being there. A general observation is that this is a good example of how software development requires understanding. Meaning it takes more than just following a set of instructions. Trying to skip ahead to finish without understanding all the individual technologies, constructs and concepts that one uses is a form of Technical Debt[^]. And when the debt comes due, it can be at a far greater interest rate than your typical credit card.
led mike
|
|
|
|
|
led mike wrote: software development requires understanding
Obviously. And understanding arises from study, practice, and feedback. Having studied, and practiced, the notable lack of feedback is unenlightening. No errors, no messages, no nothing...
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
All your changes may be cumulative and somewhere in there is a problem that is screwing your display of combos. Now that your forms are navigating try and delete the combos from the form and add them again with different names (This is somewhat like making sure your tounge is pointed the correct way and the wind is blowing from the east). Rebind the combos
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
That's essentially what I did late last night, though it was with listboxes, rather than comboboxes. To be thorough, I also removed the data source from the project, then re-added it and bound the target table to the controls as I added them back into the dialog. That made it work properly, except that although the listbox AllowDropdown property is True, they don't drop down at runtime. Oh well, that was enough progress for one night. I need to get a reference I can study that includes details of all the properties of the .Net controls and how to correctly use them.
I then studied the code changes and found an autogenerated line that called the TableAdapter.Fill method, which I must have inadvertently deleted earlier in my experimenting with navigation. I had searched the source code several times previously trying to find where the data was loaded and never located it. Now I know why, and how to fix it in the future.
Two things I'm finding difficult to deal with are the design philosophy of VS and MSDN. The separation of code using a partial class to maintain a master file and a designer file makes life easier in some ways (especially for Wizard designers), but makes understanding the code more difficult. Having all the code in one place makes it cluttered, but I find it much easier to grasp the whole and analyze my mistakes. Relying on MSDN as my main source of learning is crippling, as it tends to be focused on step-by-step procedures - many incomplete or just plain wrong - and leaves out the conceptual material needed to fully grasp the meaning of each step. It doesn't help that, no matter what filters I select, a search always returns far more unrelated content than useful material.
Thanks for the guidance!
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Roger Wright wrote: Relying on MSDN as my main source of learning is crippling, as it tends to be focused on step-by-step procedures
Yes. That is documentation, very rich by comparison to other vendors, but still just documentation. What you seem to be missing is Design. You seem to be missing Design aspects like Model-View-Controller[^], more commonly referred to as Design Patterns. This is what I was talking about in my first reply to this thread. Object Oriented Principles, Best Practices, OO Design and Design Patterns are things that one needs to study and understand so they can be leveraged to simplify the complex, to the degree that it can be simplified of course. Studying these aspects of Software Development is not comparable to reading documentation.
led mike
|
|
|
|
|
I have a C# Windows Forms app in which there are a number of Panels containing standard controls like PictureBox'es, Buttons and Labels. At runtime, I allow the user to drag-and-move the panels to reposition them where he/she likes. I programmed my own drag-around logic using MouseDown, MouseMove, and MouseUp.
While the user drags the Panels around, there is considerable unpleasant flickering.
Where does the flickering come from? Anything I can do to eliminate it?
THANKS!
Mark
|
|
|
|
|
|
Also try using Suspend/ResumeLayout() on the panel at the start/end of the drag operation. These are native .NET APIs (on Control ).
Hope this helps.
/ravi
|
|
|
|
|
Try setting the form's DoubleBuffered property to true.
Brandon
|
|
|
|
|
This isn't actually a programming question, more of a development question, so sorry if I have got the wrong board.
Im developing a small chat application, and I wish to display a nice list/menu of users currently online.
I have searched and searched, and I have gone through many articles on this site but I just cant find anything that works well.
I was wondering if anyone could recommend any nice controls that they may have seen or used in the past?
I really liked the, Vista Style Menu[^]
But in use, it doesnt scroll when i have more list items then the forms height, and it doesn't dock to fill.
Andy
|
|
|
|
|
I've used infragistics[^] in the past. They are pretty good, and very flexible, although can be quite complex in some areas. (But their forums are pretty good too if you need support).
If your looking for free/open source stuff, you do have to be prepared to modify the code and make some changes to it. That's just life, the open source controls tend to be a bit less customisable, you have to customise it by modifying the code yourself.
If that vista style menu is what you are looking for, read the code and work out how to make it scroll and dock. That sounds like it shouldn't be too hard.
(DevExpress do some free controls, but I've never used them)
Simon
|
|
|
|
|
The Krypton Toolkit from Component Factory[^] is a free library. You might find there what you're looking for.
|
|
|
|
|
Hey guys Thanks, Ill check out http://www.infragistics.com/[^].
I already do use the Krypton Toolkit, and it does have a customized listbox, but its just the normal listbox with their own themes applied.
|
|
|
|
|
I have an Access application (don't ask) which uses a .Net component to connect to our web service. Some of the people trying to use the program are on corporate networks and have proxies that require authroisation. I have modified the component to specify the address and port number of the proxy and have tried to get it to pass through the Windows credentials, see code:
WebProxy prox = new System.Net.WebProxy(_proxy);
prox.Credentials = CredentialCache.DefaultCredentials;
service.Proxy = prox;
It connects to the proxy ok but is still showing as an annonymous connection. Any idea how I get it to pass through the credentials of the current logged on user?
Many thanks
modified on Thursday, November 27, 2008 9:05 AM
|
|
|
|
|
Hi
Please a need to create an arabic setup project for a VB.net application.
Thanks.
Mohammad Al Hoss
Development To Me Is A Pleasure more than a Job
|
|
|
|
|
please how can design windows forms shape and animated shape inside and outside
my Email Id _: pattikankamrajeshwar@gmail.com
pattikankam_rajeshwar
|
|
|
|
|
please tell me
how can design windows forms shape and any books are available in market and site
my email id _: pattikankamrajehwar@yahoo.com & kurela@zapak.com
pattikankam_rajeshwar
|
|
|
|
|
I am essentially running an application that creates a thread to run a Form, say Form1 by calling...
Application.Run(new Form1());
Then, the application runs another process. This creates a Form, say Form2 in the same way that Form1 was created, by calling Application.Run(). The problem is that Form1 is on top of Form2, even though right before the Application.Run() call of Form2, I call BringToFront(), which is supposed to place it at the front of the z-order. Why is Form1 on top of Form2 even though Form2 was created afterwards, and explicitly brought to the front? I would like to do this without having to call SendToBack() on Form1, since I don't want to send it all the way back, I just want it to be behind Form2.
|
|
|
|
|
Can you post what you are exactly trying to do? Do you want to just create 2 forms?
|
|
|
|
|
Create one form with one process. Then, when the second form is created, have it be on top of the form created by the first process. I don't know why that's not happening.
Process1 -> Creates new thread -> Runs first form on new thread
-> Executes another process "Process2" (completely independent of Process1) -> Runs second form
|
|
|
|
|
Why are you using Application.Run(Form2). This will create 2 discreet applications and they have nothing to do with each other - I think.
Z order is for controls on a form and will have no effect between forms.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Well, that's the point -- they shouldn't have anything to do with each other, however, the second application's form should still be on top of the first application's form, right? I thought that this would happen by default, since when you open up a new application, it should be the new application we're looking at, and as such, shouldn't be hidden by something that already existed.
For example, if I open up notepad. Then I open up Firefox, I won't be able to see notepad anymore. I want to do the same thing here. The only difference is that the first application's form is covering up the second application's form when the second application's form is loaded.
|
|
|
|
|
I guess there is a good design reason for what you are attempting but it seems really weird to me. I'm sure you are going to run into domain issues (obviously you are already).
Your example of opening 2 DIFFERENT applications is not valid. You are attempting to launch 2 forms as applications from the same stub. Even if you are opening 2 copies of notepad they are copies not the same exe. A closer example would be word where each document is treated as an application. How it's done I do not know.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Even if you are opening 2 copies of notepad they are copies not the same exe.
Yes, I understand that they are copies, even if you run the same executable twice.
What I don't understand, however, is what you mean by "2 forms as applications from the same stub". My first form is being launched from the process I double-clicked. That one's pretty simple to understand. My second form is being launched when I create another process, so from what I understand, it is completely separate, since I'm only using the first process to call the second process. Let me see if I can give an example of this... it would sort of be like cmd.exe. When you run it, a form pops up that's designed to be like a command prompt. Then, you enter some text into this command prompt, say "notepad.exe", and it opens up notepad as a new process, and the form of notepad is on top of the form for the command prompt.
If my example is not a good one, could you please elaborate further? What I just gave above seems to make logical sense to me...
|
|
|
|
|
Same issues applies, you are running cmd.exe to get the dos prompt and from there you want to run notepad.exe. You are hitting 2 different exe files.
Your application compiles into 1 exe and from that your want to run 2 applications. Do you want 2 apps or do you want 1 app with 2 threads.
Never underestimate the power of human stupidity
RAH
|
|
|
|