|
Hi,
I have developed a custom control with 4 link labels and 2 labels.
i have been able to write delegates and events for this control.
i have written a eventtype event to navigate to the correct link label clicked.
But my problem is that whenever i click the link label it should set the pagenum to the required number.I am not able to figure out as to how or where i should call the eventhandler for the pagenum to be set correctly. Can anybody give me an idea as to how this can be done.
|
|
|
|
|
Hello all,
I am trying to find ways to implement the following:
1. Be able to select(left click & drag) text from IE or other browsers / apps and then drag it into a icon docked on the taskbar.
2.The application should take that text as input and do something else with it.
Is there a way to accomplish this in XP & vista world? How do I go about programming this?
Thanks in advance
Venkat
|
|
|
|
|
You would have to create an extension of the program itself through a plugin (good luck in .NET), or create a WinAPI listener that will interact with generic applications and the program you specify (good luck even more in .NET). The best way would be through C++, but theoretically it is still possible in .NET.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Thomas Stockwell wrote: good luck even more in .NET
Yep. I second that. Can be done, but is a real tall order.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Thanks a lot for your valuable insight. Can you tell me any good resources ( tutorials or books ) that can get me started into developing a plugin whether in C++ or .NET. Or even for a WinAPI listener. Thanks again.
Venkat
|
|
|
|
|
I have never explored too much into what you are asking, but I have stumbled upon some articles in Google and the CodeProject. I would not suggest creating an extension of particular programs since it sounds like you want a generic maneuver that will work throughout the OS. So this leads to WinAPI, keywords to search for: WinAPI, listeners, drag and drop, tutorials, OS integration, microsoft. Good luck, but unfortunately this is about all I can help you with.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Thanks. I appreciate your help so far. If I make any considerable progress I would share it on this thread.
Venkat
|
|
|
|
|
|
The forums can help with specific questions, but we cannot think out the rest of a program or what you should do next for you.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
|
I have not seen any controls that are as sophisticated as the google range bar. Your best solution would be to write your own code or wait for another response to this question. It is a very neat control concept though (and cool article idea).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hi,
I am using data grid in that i want to delete particular row that means selected row.
How can i done this?
Thanks in advance
Venkatesan.C
|
|
|
|
|
The following is C# code taken code for code from one of my projects.
if(this.dataGrid1.CurrentRowIndex!=-1)
{
((DataTable)this.dataGrid1.DataSource).DefaultView.Delete(this.dataGrid1.CurrentRowIndex);
((DataTable)this.dataGrid1.DataSource).AcceptChanges();
}
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hello!
I am rather new to Windows Forms programming. I have made simple applications that have only one view (you launch the application, what you see on the screen is what is always there).
I am trying to get into some more advanced programming. I currently have a tab control with several tabs. On one of the tabs, the left hand side has a TreeView that is docked to the left. As the user clicks on items in the treeview, I want to display some information on the right hand portion of the screen about the item that they have selected.
What I am trying to do is figure out how to use the Windows Designer in order to design multiple views, and swap them in and out at runtime. (ie, if the user clicks on a Customer in the tree view, the right hand side would display information about that customer. If they click an office location under that customer in the treeview, I want to display a completely different set of group boxes, buttons, etc on the right hand side) (Kind of exactly what a tab control does, but without the tab control!)
I can place all of the controls on the right hand side, or on a panel, and make them visible and invisible at runtime, or I could always programatically create the controls on the fly --- but it is very hard for me to visualize it and make it look proper.
I am wondering what ways you all use in order to design a more complex application like this. I have been reading and cannot seem to find the proper "keywords" to point me in the right direction. Any help would be incredibly appreciated!!
Thanks in advance!
|
|
|
|
|
I normally create each "View" as UserControl. That makes it simple to create more complex views but set only a single controls Visible state. You can also see it in designer mode without all the clutter of a panel embedded in a splitter on a main form.
Not sure that's what you were asking about.
led mike
|
|
|
|
|
I just spent some time reading about the UserControls class, this does look like it would work for what I am trying to do. My question is, how would I go about designing it in Designer Mode? It'd be great if you could design multiple panels "off canvas" or off the application, put all your controls on them, make them look good, and then drag the panel onto the application on top of the other panels with the other controls (that's what I'm trying to do).
Thanks!!
|
|
|
|
|
Not sure what all that means but maybe, yes, that's how it works. Each UserControl get's it's own designer window. Then you can drop a UserControl onto any Designer Surface.
led mike
|
|
|
|
|
Why don't you just embed the 'layouts' in panels. When the layout changes hide one panel and show another. When the selection changes but layout does not then just change the information for that particular layout panel.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
I will usually create all the "views" as Windows Forms.
In that I can change to SDI, MDI easily.
For your case, place a panel as your right container, when user click on item in the treeview, create the appropriate form and do these:
form.ControlBox = false;
form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
form.Dock = DockStyle.Fill;
form.MaximizeBox = false;
form.MinimizeBox = false;
form.TopLevel = false;
pnlContainer.Controls.Add(form);
form.Show();
form.BringToFront();
The "form" will be shown within the panel.
I don't usually use UserControl for this kind of purpose, as I feel it's more restrictive for my liking.
|
|
|
|
|
Use usercontrols to design the different pages of your application, next find intel on "triggering a userform/form control from other form/userform".
Use delegates. Place a new post if you need this 
|
|
|
|
|
Hi,
Iam developing an application/service for printers.The scenario is as follows
1. When a user selects a document and then he says the print command(no through my application...he selects normal print in file menu)then i have to catch some details like printername,no.of pages,document name..and so on...This action should be done before it get out from spooler.
2. As all of you that after printing data from spooler will be deleted..but in general for example for HP printer 3 files like lpr1234.tmp,shockwaveobject file ,.shd are generated. In this I have take take required files and keep them in my own spooler.
On my extensive search I came to know that by using WMI and WindowsAPI functions I can get to this goal...
But Iam unable to get into the right way....
If I have to use APIs then kindly tell what are the method I have to implement(if possible give me documentation link)
If through WMI....kindly guide me for the same
ALL these should be act as a service.....
thanks in Advance
|
|
|
|
|
HI,
I have a grid control which has three columns viz.quantity, unit price, and total Amount column.
Quantity column can have only integer value.
I want to validate quantity column in a way so that as soon as user insert value other than integer, a message box should display showing error and return the focus to the cell.
OR
System should not allow any value other than integer into the cell.
Is there any keypress/keydown/keyup event for datagrid's cell also? If yes than please provide me code or any hint...
Please help.
Arun Singh
Noida.
|
|
|
|
|
You could try the following:
1 - Handle the DataGridView.EditingControlShowing event
private void DataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (e.Control.GetType() == typeof(DataGridViewTextBoxEditingControl))
(e.Control).KeyPress += DataGridViewTextBoxEditingControlTextBoxControl_KeyPress;
}
2 - Inside the keypress event, check for the keys you need and process them
private void DataGridViewTextBoxEditingControlTextBoxControl_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Back)
{
e.Handled = false;
return;
}
if (_dataGridView.CurrentCell.ValueType != typeof (int))
return;
e.Handled = char.IsNumber(e.KeyChar);
}
Hope this helps...
/F - .NET Developer
modified on Wednesday, July 30, 2008 11:55 AM
|
|
|
|
|
Thanx
Arun Singh
INDIA-Noida.
My limit is sky and sky is too high.
|
|
|
|
|
Hi there we have an in-house reporting system that I have been tasked to create a report scheduler for, I am thinking of mimicking the interface used in Windows for Scheduled Tasks so will build a GUI in c# where you choose from radio buttons
Daily
Weekly
Monthly
One time only
then configure the options depending on which first option you chose, configure your report parameters and save. This info will all be saved in the Database in my own schema (yet to define) and will be run via a scheduled sql job that processes all the data and emails out the reports. The report scheduler GUI will be a client side process users will do in our organisation and the sending of reports server side.
I already have all the code for creating the reports with the defined params and emailing out reports via a sql job.
My question is what schema to use for saving the schedule/period data? I have made a start but can be quite complicated and I'm sure someone has done this before or knows how Windows Scheduled Tasks does it. Also is there a code project example of the GUI for this already somewhere? I couldn't find anything.
Something that looks kind of like http://www.recrystallize.com/merchant/crystaldesk/reportscheduler.htm
Thanks, m.
|
|
|
|