|
Please emphasize how Page Up/Down key presses are supposed to work in a multicolumn listbox control. As in how should the scrolling take place... When the first item in a multicolumn listbox is selected and Page Down is pressed then which item should get highlighted
1 6 11
2 7 12
3 8 13
4 9
5 10
|
|
|
|
|
The item which is currently selected itself. If page-up then show all items of previous page and vice versa for page-down. I refer to "page" as the currently visible size(rows) of the listbox. To put it in context, I would expect page-up and page-down to behave like a scroll. I wouldn't want the current selected item to be lost on a scroll(or page-up/page-down)
Someone else might have a better opinion though.
|
|
|
|
|
If my list box looks like the following wherein 1-10 are visible and 6-20 can be viewed only when scrolled to the right.
1 6 |11 16
2 7 |12 17
3 8 |13 18
4 9 |14 19
5 10 |15 20
If 1 is the currently selected item and I press page down twice, first 10 is selected and then 19 is selected in my list box.
Is that the correct behaviour?
|
|
|
|
|
Looking at it select 10 first, I would think next should have been 20.
|
|
|
|
|
Hello,
Since a long time i had this question.
I want to know how to design my windows application forms like the design of Windows Media Player.
As per my knowledge Windows Media Player is also a Windows application and hence there must be some way they would have designed such beautifull curves and buttons.
Does Anyone know or can give me some link for more information on this.
Any help would be of great help.
Thanks in advance.
|
|
|
|
|
WPF is great for cool UI.
Or if you want to use Windows Forms (the hard way), you'll use the System.Drawing.Graphics , System.Drawing.Region and System.Drawing.Drawing2D.GraphicsPath to build your custom controls.
Eslam Afifi
|
|
|
|
|
Thanks For your Reply.
Can you please give me an example or some link where i can find some examples,
I will try WPF.
Thanks Again.
|
|
|
|
|
|
I have a DataGridView that triggers Parse, CellValidating and CellValueChanged events.
I need to change the active cell in response of one of these events. For example, if the value of the cell is "1" I need to go to the third columns of the grid, and things like that.
The problem is that apparently I can't change the active cell while I'm still in the event. If I do that, strange things happen, ranging from no effects to events calling themselves resulting in stack overflow.
I managed to solve it with a dirty trick, but I am not satisfied yet. What is the correct way changing the active cell within an event?
|
|
|
|
|
Have you tried to change the active cell from CellValidated event handler?
Calin
|
|
|
|
|
can anyone able to help me...
i want to connect my vb.net desktop application to mysql which is in other LAN connected PC which operating system in linux(Red hat).
can anyone able tell me about connection string to connect my mysql(linux)database
|
|
|
|
|
|
|
Are you using the mysql data provider for .net or odbc
a programmer traped in a thugs body
|
|
|
|
|
I am writing a Windows Service that I may have to install more than one instance of per computer. Is there a way to change the DisplayName property and default install location using user provided information in ServiceInstaller project during install time?
Chandhu
|
|
|
|
|
chandhuBTS wrote: I am writing a Windows Service that I may have to install more than one instance of per computer. Is there a way to change the DisplayName property and default install location using user provided information in ServiceInstaller project during install time?
If the ServiceInstaller produces an MSI (Windows Installer) then it is very likely the MSI can be changed. Using Visual Studio to do that may not be possible, it may require using a different tool.
The most likely observation about your scenario is that you are wrong about needing to install the service module more than once on single computer. I highly recommend that you double check your analysis and conclusion regarding that issue.
|
|
|
|
|
|
Calin Tatar wrote: There is an MSI editor, called Orca.
Did you mean to tell the original poster that? I first used Orca about 5 years ago. However given the OPs apparent lack of experience with MSI databases I did not consider working with the raw tables a viable choice for them. I certainly could be wrong about that.
|
|
|
|
|
Yes, I said about Orca because you specified about using a different tool. If the original poster will choose to change the installer, as you told him, he will know what tool to use.
Calin
|
|
|
|
|
I have the SaveFileDialog set up to save .txt files. When I try to save a file with a different extension .jpg. It goes ahead and saves it in .jpg format. AddExtension does not append the .txt extension to the file name.
Please help.
|
|
|
|
|
Hi,
It's actually doing what it is supposed to do. The extension is only added if one is not present.
e.g.
myfile -> myfile.txt
myfile.txt -> myfile.txt
myfile.jpg -> myfile.jpg
Alan
|
|
|
|
|
Shouldn't the extension added to the file depend on the currently selected file filter. The filter in this case is .txt.
|
|
|
|
|
sarithasj wrote: Shouldn't the extension added to the file depend on the currently selected file filter. The filter in this case is .txt.
Shouldn't you be checking what the documentation says about it?
as in "Gets or sets a value indicating whether a file dialog automatically adds an extension to a filename if the user omits an extension."
Luc Pattyn [Forum Guidelines] [My Articles]
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hello Friends
i need help, i m using picture box for drawing the graph. so for that i m using paint event of picture box to draw an image. but problem is that when i minimize the window or any other window come on top then the image gets lost.
So wht should i do so that i can get my image afain after maximizng the window
And one more thing that is it possible to store the picture box image in any other object.
Thanking You All !
Avinash Patil
|
|
|
|
|
Hi,
Typically the PictureBox is used to display graphics from a bitmap, metafile, icon, JPEG, GIF, or PNG file. I think you need a graphing control. You may want to look into http://www.codeproject.com/KB/graphics/zedgraph.aspx[^] which I've seen recommended on this forum previously.
Alan.
|
|
|
|