|
mohammadkaab wrote: this not the ans im looking for
I cannot change the technology to fit your requirements.
mohammadkaab wrote: when im start my program i want to see this button on the mdiparent , not on the childform .
Then use a <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa511500.aspx">ToolBar</a>[<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa511500.aspx" target="_blank" title="New Window">^</a>] , or any other container - if you block it from sight by putting a Window over it, it simply will not be visible. This works the same for all WinForms-applications, and you'll find that the toolbar[^], the ribbon and the mainmenu are the most used solutions.
Take a few pieces of paper from the printer. Draw a button on one. The papers are your Windows. Put a paper over the drawn button. It works that way on a technical level - it's a physical limitation. Other applications work around it by showing their buttons at the top of the window.
The MainMenu is an antique way to attach possible actions to a Window. A ToolBar is an always-visible version thereof, and the Ribbon being the newest thing in town.
..or confuse your users by floating the button on top on a transparent form.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
w'll ty for replay , i know what you telling me , i'm already using the Devcomponents and of course it has plenty of ribbon bars , but the problem is not me , this program that i'm working at its for someone else , and he don't like the bars , i can say he has allergy to the bars . for that i'm looking for button on the forms . that's it . ty
|
|
|
|
|
mohammadkaab wrote: i can say he has allergy to the bars
His users will recognize a ToolBar or a Ribbon, they know how to operate it. It's the audience expectations[^] that matter, not his personal preferences.
We're not picking colours while decorating a room, are we?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
yeah you right eddy . i'll tell him your ans maybe he changed his mind . ty otherwise , i don't know what supposed to do , but ty any way .
but eddy you'r programmer and you have more info and knowledge about programs , what do you do if the customer or the user persist to just making the program as his idea's not yours .
i mean the user telling you i need this program exactly to be like this i don't want to be like this .
and the user or the customer does't know there isn't such thing matching with his idea .
then ..
|
|
|
|
|
mohammadkaab wrote: but eddy you'r programmer and you have more info and knowledge about programs , what do you do if the customer or the user persist to just making the program as his idea's not yours .
i mean the user telling you i need this program exactly to be like this i don't want to be like this .
and the user or the customer does't know there isn't such thing matching with his idea .
then ..
There's no correct answer to that query.
I usually go for the coffee, getting the person to walk with me; then I try to calmly explain the implications of the decisions, usually with use-cases. Most people liked that approach, some did not appreciate the unsolicited advice. If you are dependent on the money, things become more complicated and you have to be careful not to loose a sale.
Joel Spolsky has a nice example of such use-cases[^]; you make up an imaginary user, and walk your client to a click & type description required to complete a task. He's got some brilliant pieces on UI-design, and some very good argumentation for it.
Mine is called "Bannie", after a fictional client from a former employee. She is 60 and has bad vision, but knows how to work with Windows and does the accounting on the machine. So, she should be able to use the software I write. It may sound ridiculous, but it worked for me. Including what Joel calls Hallway Usability-Testing[^], where you grab the nearest person and have them "be Bannie".
It ain't always that simple. Sometimes a client is unreasonable. Sometimes they're right, and come up with a decent alternative or a nice shortcut. If so, you'll know soon enough while describing the use-case. Sometimes people will assume that you protect them (from a too big malinvestment), sometimes they'll feel frustrated or restricted by technical limitations. And sometimes it's very hard to convince someone that you're trying to "help", simply because helping with that kind o' stuff is your job
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
ty eddy , but dont you think the programmer job it's a little diff from the Analyzer or there should be some one between the programmer and the costumer , describing the methods and events for the programmer and the reasons for the costumers , i think the programmer should not face the customer directly . but ty for any things
|
|
|
|
|
I have heard the line before, and it's an incorrect statement. It's only the programmer who can determine what the customer needs; the "analyzer" needs to be a versed programmer, not a non-tech or a manager.
Yes, I know the old idea that "programmers aren't good communicators". Doesn't mean that you can't learn it. Human speech is just another programming-language.
From a logical perspective, as a programmer, I know what the technical limitations are, what the audience expects, what the market uses. I know how long it takes to write something, I know the implications of the decisions. Putting the responsibility in the hands of a non-tech and have them communicate with the customer is asking for a lot of communication-problems and other disasters.
That goes so far that I am the one who determines the deadline. I don't care about the promises that the sales-department makes; they pick a random date in the hope that the client likes it more than the competitors date - I pick a realistic date that the client can count on.
Lot's of managers dislike my attitude. And they have the right to do so.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
eddy i think i have solve it some how , i didn't solve it i have tricked it , i have made a form and i put a button into this form (child form) then i choosed the dock property of the button to fill (this w'll adjust the button size to form) (button.size(100,20),form.size(100,20)) .then i called the child form in mdiparent (the form that's containing the button) . it works like a button and no one realized that the button is in a form. and its always behind the other child forms .
i hope you get what i mean
|
|
|
|
|
Whehe, aight, nice solution
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
In a C# 2010 application, I am working with data that is obtained from an excel spreadsheet 2007 or exccel 2010. I want to be
ae to see all the values in a particular row. In the code below I want to see all the values in the row called dt.Rows[j]. Basically I want to know how to obtain all the values for the column called [k] in the statement dt.Rows[j][k]
System.Data.DataTable dt = tt.GetExcelDataTable();
for (int j = 0; j < dt.Rows.Count; j++)
dt.Rows[j][k].ToString();
Can you tell me how I can see the values I am looking for?
|
|
|
|
|
This code will print your data one row in a line with data in each row comma separated
System.Data.DataTable dt = tt.GetExcelDataTable();
for (int j = 0; j < dt.Rows.Count; j++) {
string rowData = string.Empty;
for (int k = 0; k < dt.Columns.Count; k++) {
rowData += dt.Rows[j][k].ToString() + ", ";
}
Console.WriteLine(rowData);
}
modified 27-Aug-12 20:45pm.
|
|
|
|
|
I want to be able to see all the values while I am debugging the application. How would you accomplish this task?
|
|
|
|
|
The code I provided will print all the data one row in a line. However if you wish to see data in individual rows/columns, Visual Studio's debugging tools do a great job, just hover your mouse over the 'Rows' variable and Visual Studio will show you it's contents. Here[^] is a video that explains this feature.
|
|
|
|
|
You can keep the break point in line 1 of your code.
System.Data.DataTable dt = tt.GetExcelDataTable();
for (int j = 0; j < dt.Rows.Count; j++)
dt.Rows[j][k].ToString();
Now when the control reaches here, the line color changes to yellow. Press F10 now.
Now, place the mouse over dt , you'll find a search icon, near the tip of the cursor. Click on that. It opens up the table for viewing.
|
|
|
|
|
I think your second for loop should have been edited after you pasted it.
|
|
|
|
|
Edited. Thanks. You do have an eye for details.
|
|
|
|
|
i need more information and what is the uses of Candidate Key, any one can help with example?
Thanks,
Alagiri
|
|
|
|
|
This has nothing to do with C#, and the forum is not a school. Search for "Normalization", and get to know Codds laws. There are a lot of articles and books on the subject, I do not see the need for a personalized tutorial.
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Alagiri.periyasamy@merrillcorp.com wrote: Candidate Key
That is the special key that candidates are given so they can get into the special Candidates Executive Washroom so that they can be segregated from normal people.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Is that what they told you as they handed you the key?
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Well yeah that's what they said but when I used the key, it opened the doors to an empty elevator shaft. And when I continued through, I fell to my death. Not sure what the message was supposed to be...
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
This forum is a place for people to help you with specific technical problems. Do not expect to use it like a tutorial. Googling the term will give you tons of reference material.
|
|
|
|
|
Hi,
What is the primary key, super key, foreign key and candidate key in the DBMS?
|
|
|
|
|
What is GOOGLE[^]. 108,000 results await your perusal.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Hi everyone! I have an application that saves the profile of registered members onto a database. When creating member profiles, I need to capture members' photos in the process from a webcam.
Is there any way I can programmatically determine the presence of a webcam and start it? I will then need to send webcam images onto a form before and after the image has been captured for the user to view the captured image.
Any suggestions, please? Thanks in advance.
|
|
|
|