|
Yeah, what Eddy said. Plus Grids are horrible anyway -- not very user-friendly.
|
|
|
|
|
usually I use grid to show data only, and above the grid I have insert,update,delete buttons.I guess now it's user friendly,Isn't that?
|
|
|
|
|
Better create a server which talks to the database. And all your clients connect to the server. Because all changes have to go thru the server now, the server can generate appropriate events.
|
|
|
|
|
may you give example or link to sample, I feel your solution will be the best...
thanks in advance....
Actually I don't know what do you mean by createing a server
modified 28-Aug-12 3:37am.
|
|
|
|
|
The "server" s another application running on a different computer (I recommend to use the same machine as with the SQL server). That applciation is often a Windows service, without any user interface.
The client applications connect to that server. You can use e.g. .Net Remoting, or more modern WCF.
When you start learning these things, they may look complicated, and it may take some time to get familiar with the concepts. But it's worth learning.
|
|
|
|
|
Eng Bernhard Hiller, I really appreciate your help and you really give me new solutions cause till now I have just two choices (timer which I dislike AND SqlDependecy).
what I understood from your post that Through WCF I will get notified when database changes occurred.Is that right big brother?.do you think it will be better than using SqlDependecy ?.
(actually i'm entirely new to WCF,I didn't use windows service before and I can't imagine how it will work)
thanks for your help and wish to get your suggestions and advises.
|
|
|
|
|
Dear frnds i need code for , How to upload videos and images with class
|
|
|
|
|
|
Please read the top message on this board ("How to ask a question") otherwise people will down-vote your question, I note this has already happened once. Asking for code like this is unlikely to get a response as we are pretty much all volunteers here. Everyone will assume you have tried nothing even if, in reality, you have spent hours figuring it out - we can't tell.
It is better to ask a specific question, outlining what you have tried to achieve, or, what the exact problem is you are having getting started.
|
|
|
|
|
shubahm saxena wrote: frnds
At least have the decency to spell something out. Text speak crap only irritates people. The look at the tip how to post a forum question as the other poster has mentioned.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
i have deployed a web project in IIS Express using the below coding.
Process process;
IISExpress(string args)
{
this.process = new Process();
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = @"C:\Program Files (x86)\IIS Express\iisexpress";
psi.Arguments = args;
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
process.StartInfo = psi;
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.StartInfo.CreateNoWindow = true;
process.Start();
}
public static IISExpress Start(string args)
{
return new IISExpress(args);
}
After deployment of my project in IIS Express, i want to run the project in the browser using the link generated in IIS Express(say http://localhost:13356) using c# coding. i have tried the following code. but no use.
IISExpress sample = IISExpress.Start("/bindings.[protocol='http',bindingInformation='*:8063:localhost'] ");
How to run the samples in browser using IIS Express(in c# code only not by manually click the link in the system tray).
Also, i can able to run the samples in browser even after close the visual studio.
can any one help on this.
|
|
|
|
|
I've got an icon of application in a tray. I need to duplicate this icon context menu into taskbar application context menu (menu has type ContextMenuStrip). The only way I found is this:
protected override void WndProc(ref Message message)
{
const int WMessageRightClickTaskbar = 0x313;
if (message.Msg == WMessageRightClickTaskbar)
{
this.AdapterClientCtxtMenu.Show(Control.MousePosition);
}
base.WndProc(ref message);
}
This method doesn't work unfortunately. I run the application, it comes into WndProc, but message.Msg never takes the value of WMessageRightClickTaskbar = 0x313. I got to know, that 0x313 code is acceptable for windows not younger than xp. In vista and above it means shift+right click. Now the task is to find out the code for right click in taskbar menu for vista and above.
I need to get a modified menu, the similar as in the picture, using only .NET 2.0 environment.
|
|
|
|
|
hello , i think my qustion is very simple .
i have one Mdiparent and one childform or simple form . i have one button on the mdiparent form .
what do i need to do is that when im opening my form in my mdiparent i want the button come before the form (childform) .
i have used the sendtoback method but it's hiding the button instead of send it back to the form .
and to know what im using .
private void MDIParent1_Load(object sender, EventArgs e)
{
form1 form = new form1();
form.mdiparent = this;
form.show();
//
button1.sendtoback();
}
|
|
|
|
|
Because of the way forms work in general and MDI forms work in specific, this cannot be done. MDI Forms display MDI Child forms in what is called client area where other controls in the MDI Form cannot be shown.
|
|
|
|
|
so , do you have any other idea (related to my qustion) , but plz if you have another idea . just let the mdiparent be part of it .
any suggestion can help me . ty
|
|
|
|
|
mohammadkaab wrote: i want the button come before the form (childform)
In that case, the button should be ON the child-form.
mohammadkaab wrote: i have used the sendtoback method but it's hiding the button instead of send it back to the form .
SendToBack[^] works with the Z-order of the controls-collection of the form, not over "all" forms. You need to add the button to Form1 if you want it in front, or display it on another location where it is not obscured by Form1.
private void MDIParent1_Load(object sender, EventArgs e)
{
using (var formInstance = new form1())
{
formInstance.mdiparent = this;
formInstance.ShowDialog(this);
Button newButton = new Button() { Location = new Point(0,0) };
formInstance.Controls.Add(newButton);
}
}
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
im sorry , when im start my program i want to see this button on the mdiparent , not on the childform .
the childform has another controls. and it's not related to mdiparent.
this not the ans im looking for
|
|
|
|
|
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
|
|
|
|