|
Hello,
I have a database table with 2 fields, DepartmentCode, and DepartmentName. I want to add the values of these 2 fields into a combo box from the database. I can add one field, but how can you add 2 fields to the combox so that when the user clicks it, it will display all the departmentCode and Department name in 2 columns.
I can do this with just one field, but l am having trouble tying to display the extra field. Is this possible in a combox box?
Thanks in advance,
Steve
|
|
|
|
|
|
People are talking about this all the time.:::::
How do you design a data model for object oriented applications? Should the data model be designed first, or should it be derived from the object model?
*************************************************
I really do not aggree with this.OO is not the coolest thing to model the world.
The value and the pointer of the value should be seperated such as in adaptive object models where we can model the world with 4 classes.
entity entityType attribute and Attribuetype....(+ accountability by martin fowler if u like)
the reason the OO models fail as they are trying to model the world which is changing all the time.
|
|
|
|
|
And what do you want to tell us with that?
|
|
|
|
|
|
|
Please reply to the forum in future:
erdem sahin [xxxxxxxx@hotmail.com] to me
adaptive object modelling is ALL about design patterns.
u have to use 16 of the design patterns.it can be kind of complicated in the
beginning but what u end up with is a code that is adaptive where u dont
have to change your code with the new requirement.
Something has to change when the requirements change. If it isn't code then what is it?
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
the structure of traditional OO systems became immutable after deployement.
the abstraction levels in AOM systems have us leverage our infrastructure by not using TUPLE logic in the first place.
ForExample:
TUPLE LOGIC::: ID:126 Name:John LastName:smith WifeName:Mary
tuple logic is just so artifical,and do not represent the world.Think about a persons brain cells and the his memory do u think every thing is stored with only one pointer?
****************************************************************
AOM LOGIC::::
IDNAME:126 Name:John
IDLASTNAME:1256 LastName:smith
IDWIFENAME:34545 WifeName:Mary
every value has its own id.
AOM systems make a TUPLE only at runtime.
******************************************************************
|
|
|
|
|
seperate the metadata and apply all the patterns u know.
:=)
|
|
|
|
|
|
u should put the metadata in the database and use a builder pattern to build your objects.if u want relationships u should use martin fowlers accountability pattern and if u want a singleton on your metadata u must use flyweight pattern.
it seems like u got to use many patterns.The fact is when it comes to modify your program u only change the metadata than everything is fine.
u should visit www.adaptiveobjectmodel.com and also Chris lasater in this forum is taşking about this topic which might help u.
PS:Also in vs 2005 have look at domain specific languages.
|
|
|
|
|
What I am getting at is the idea of not having to change the "code" when the requirements change is a false one. You would still have to change some sort of meta data in order to satisfy the changing requirements. At the end of the process the possibilities for introducing bugs and not delivering what the client actually wants is more or less the same.
It is not a silver bullet solution.
|
|
|
|
|
This is true, Colin. But what adaptive solutions do offer us is a way to make applications more configurable (regarding workflow) to the end users. To my knowledge there is no end-to-end solution that meets all needs, simply because those needs are more directly defined by the business requirements. However, since business requirements change frequently, making immutable code flow logic leaves very short lives for code. Even the online industry is feeling the need to configure dynamically: if you are a subscriber to most web portals like Yahoo or MSN you have a user configurable home page where you can decide which items of interest you would like to display on your page. Most portal technologies are indirectly pointing us to a more adaptive model, simply because they are configurable by end-users or power-users.
I see adaptive technologies like Adaptive Object Modeling in the same light as a web portal: some functionality is needed to be coded by developers, like database and business logic, but where and when this logic is implemented should be (following business trends) decided upon by business experts, not you and I as developers. Some adaptive models incorporate the non-meta-data into thier models tightly coupled with thier meta-data, which is one way to do it, but I prefer to let the EUD(end user developer) have the hand in how business data is handled, and simply allow the AOM framework to give the actual implementation of when and where back to business experts (which most developers don't have the bandwidth to be).
Chris Lasater
http://www.geocities.com/lasaterconsult
|
|
|
|
|
|
I have written an Outlook Add-In that has a number of buttons on it as well as a popup menu and the strangest thing is happening.
When debugging the Add-In with Outlook loaded as the debugging application, the buttons load and all of their respective click handlers work. For now each has a "Hello world" type message when it is clicked.
If I leave Outlook running for a few minutes all of the handlers except one stop working!!!
Anyone got a bright idea why this would happen?
|
|
|
|
|
Wild guess, but maybe, just maybe, there is some remoting going on and the server object's lease gets expired? I don't know how you can control that though.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi.
I am new to the .NET Framework and to the Enterprise Library. I was wondering if the Enterprise Library facilitates developers in implementing different acces levels, e.g.: an administrator will be able to view usernames&passwords, while a customer in the development department will not have such access.
Thank you,
Elena
|
|
|
|
|
I might have misunderstood how to use the enum, but this is what i want to do. I would like to have a Font class with an enum in it for different fonts, so all you would have to do to access the font would be to type MyFont.Fonts.CoolFont;
Now when I try to do this enum I can't get around the fact that it needs to be of a certain type.
But I'm pretty sure that you can store any object in the enum. So how do I do this?
|
|
|
|
|
No thats not possible with an enum. Enums can only contain certain numeric values. To do something like you want you will need a class with some static fields/properties:
public class MyFonts {
public static Font CoolFont = new Font("Blubb", 10);
public static Font NastyFont = new Font("Courier", 14);
}
This is only a sample. Instead of public fields you should make properties with some kind of factory behind them (instantiate them when you need them).
|
|
|
|
|
I found an articles:
http://www.codeproject.com/csharp/DocumentatorMacros.asp
It really cool by providing mechanism to faster the code writing process.
But I want more: when you type some characters, it will suggest some keywords that might fit your need.
For example, type "p", so it show a list of "public, private, protected, ..."
So how do I get start?
By the way, can it be done in C#?
|
|
|
|
|
I'm trying to measure a string for printing on a printer using System.Drawing.Printing. Because I need to adjust the layout dynamically, I need to measure strings to calculate the page sizes and such before I actually get to printing the pages.
Here's the catch: I don't have a Graphics object to measure the string with until I'm actually processing a page for printing!
Is there any way to measure strings without a Graphics object, or a way to get a Graphics object (at least temporarily) for printing, before the PrintPage events?
Thanks in advance.
|
|
|
|
|
I just found something really cool!
PrintDocument.PrinterSettings.CreateMeasurementGraphics() does EXACTLY what I need!
|
|
|
|
|
Helo
Need Help,Iam new to c#,
How can i merge columns and rows in Data Grid Same like Vb6. flex grid.
|
|
|
|
|
I need a way to create a hook that moniters both the mouse and keyboard input globally. Any ideas.
Using C#
I have seen some other articles, but they are much more complex than I need.
All I really need the program to report is the mouse's coordinates(x,y) and ANY key that is pressed, including Ctrl+S or whatever.
Thanks for any help or guidance.
|
|
|
|
|
What about This. It hook the keyboard, and mouse event as well.
|
|
|
|