Can anyone help here? I need to scroll a panel in code, because I
don't want to display the scroll bar on screen.
Any suggestions.
N. 17 1653
What's in the panel? Controls or a picture? If they are controls you can
move them yourself .
Dim c as Control
For each c in Panel1.Controls
' New Location
c.Location = 'Wherever you want it
Next
If it's a picture just draw part that needs to be seen.
"n. Smith" <ni***@yahoo.dk> wrote in message
news:t7********************************@4ax.com... Can anyone help here? I need to scroll a panel in code, because I don't want to display the scroll bar on screen.
Any suggestions.
N.
Hi Smith,
One of our main scrollers is probably still 10 days away, check yourself
these messages about this subject from him. http://tinyurl.com/3sufx
I hope this helps?
Cor
What an ingenious answer, that's quite impressive really.
Where is Hr H anyways ?
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Cor Ligthert" <no************@planet.nl> wrote in message
news:eT**************@TK2MSFTNGP09.phx.gbl... Hi Smith,
One of our main scrollers is probably still 10 days away, check yourself these messages about this subject from him.
http://tinyurl.com/3sufx
I hope this helps?
Cor
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> schrieb: Where is Hr H anyways ?
:-?
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Welcome Back Herfreid, where have you been ?
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:uR*************@TK2MSFTNGP11.phx.gbl... "One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> schrieb: Where is Hr H anyways ?
:-?
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
Thanks for the suggestion. I was hoping there was a way of sending a
scroll value to a hidden scroll bar.
I'll be adding controls to a panel dynamically - kind of plugins for a
toolbar.
but I guess your idea might work as well as anything else.
Then I can maybe track the display of the first and last controls by
checking the bounds of the panel.
Thanks. I'll check it out.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup"
<nospam@no_thanks.com> wrote: What's in the panel? Controls or a picture? If they are controls you can move them yourself .
Dim c as Control For each c in Panel1.Controls ' New Location c.Location = 'Wherever you want it Next
If it's a picture just draw part that needs to be seen. "n. Smith" <ni***@yahoo.dk> wrote in message news:t7********************************@4ax.com.. . Can anyone help here? I need to scroll a panel in code, because I don't want to display the scroll bar on screen.
Any suggestions.
N.
Private Declare Function SendMessage Lib "user32.dll" Alias
"SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Int32, ByVal wParam As
Int32, ByVal lParam As Int32) As Int32
Const WM_VSCROLL As Int32 = &H115
Const SB_LINEDOWN As Int32 = 1
Const SB_LINEUP As Int32 = 0
SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEDOWN, 0)
SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEUP, 0)
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Nicky Smith" <ni***@yahoo.dk> wrote in message
news:td********************************@4ax.com... Thanks for the suggestion. I was hoping there was a way of sending a scroll value to a hidden scroll bar.
I'll be adding controls to a panel dynamically - kind of plugins for a toolbar.
but I guess your idea might work as well as anything else.
Then I can maybe track the display of the first and last controls by checking the bounds of the panel.
Thanks. I'll check it out.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" <nospam@no_thanks.com> wrote:
What's in the panel? Controls or a picture? If they are controls you can move them yourself .
Dim c as Control For each c in Panel1.Controls ' New Location c.Location = 'Wherever you want it Next
If it's a picture just draw part that needs to be seen. "n. Smith" <ni***@yahoo.dk> wrote in message news:t7********************************@4ax.com.. . Can anyone help here? I need to scroll a panel in code, because I don't want to display the scroll bar on screen.
Any suggestions.
N.
Terry,
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> schrieb: Welcome Back Herfreid, where have you been ?
I am currently making my driver's license and thus don't have enough time to
be active in this group. I'll be back in a few days, hopefully...
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Good Luck with your licence
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl... Terry,
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> schrieb: Welcome Back Herfreid, where have you been ? I am currently making my driver's license and thus don't have enough time
to be active in this group. I'll be back in a few days, hopefully...
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
Do what? I don't think you understood his question. He DOES'T want
scrollbars. Your code will only work with Autoscroll = True. Which will show
the scroll bar.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Int32, ByVal wParam As Int32, ByVal lParam As Int32) As Int32
Const WM_VSCROLL As Int32 = &H115 Const SB_LINEDOWN As Int32 = 1 Const SB_LINEUP As Int32 = 0
SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEDOWN, 0) SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEUP, 0)
--
OHM ( Terry Burns ) . . . One-Handed-Man . . . If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Nicky Smith" <ni***@yahoo.dk> wrote in message news:td********************************@4ax.com... Thanks for the suggestion. I was hoping there was a way of sending a scroll value to a hidden scroll bar.
I'll be adding controls to a panel dynamically - kind of plugins for a toolbar.
but I guess your idea might work as well as anything else.
Then I can maybe track the display of the first and last controls by checking the bounds of the panel.
Thanks. I'll check it out.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" <nospam@no_thanks.com> wrote:
>What's in the panel? Controls or a picture? If they are controls you can >move them yourself . > >Dim c as Control >For each c in Panel1.Controls > ' New Location > c.Location = 'Wherever you want it >Next > >If it's a picture just draw part that needs to be seen. > > > >"n. Smith" <ni***@yahoo.dk> wrote in message >news:t7********************************@4ax.com.. . >> >> Can anyone help here? I need to scroll a panel in code, because I >> don't want to display the scroll bar on screen. >> >> Any suggestions. >> >> N. >
OK Dr Screwup, dont get your braids in a twizzle.
I didnt check this with Autoscroll set to true, however this doesent matter
because you can hide the scroll bars by dragging another panel to obscure
the virtical scroll bars and it works just fine.
HTH
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Dr Screwup" <nospam@no_thanks.com> wrote in message
news:10*************@corp.supernews.com... Do what? I don't think you understood his question. He DOES'T want scrollbars. Your code will only work with Autoscroll = True. Which will
show the scroll bar.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message news:%2****************@TK2MSFTNGP15.phx.gbl... Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Int32, ByVal wParam
As Int32, ByVal lParam As Int32) As Int32
Const WM_VSCROLL As Int32 = &H115 Const SB_LINEDOWN As Int32 = 1 Const SB_LINEUP As Int32 = 0
SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEDOWN, 0) SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEUP, 0)
--
OHM ( Terry Burns ) . . . One-Handed-Man . . . If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Nicky Smith" <ni***@yahoo.dk> wrote in message news:td********************************@4ax.com... Thanks for the suggestion. I was hoping there was a way of sending a scroll value to a hidden scroll bar.
I'll be adding controls to a panel dynamically - kind of plugins for a toolbar.
but I guess your idea might work as well as anything else.
Then I can maybe track the display of the first and last controls by checking the bounds of the panel.
Thanks. I'll check it out.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" <nospam@no_thanks.com> wrote:
>What's in the panel? Controls or a picture? If they are controls you
can >move them yourself . > >Dim c as Control >For each c in Panel1.Controls > ' New Location > c.Location = 'Wherever you want it >Next > >If it's a picture just draw part that needs to be seen. > > > >"n. Smith" <ni***@yahoo.dk> wrote in message >news:t7********************************@4ax.com.. . >> >> Can anyone help here? I need to scroll a panel in code, because I >> don't want to display the scroll bar on screen. >> >> Any suggestions. >> >> N. >
Whatever.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl... OK Dr Screwup, dont get your braids in a twizzle.
I didnt check this with Autoscroll set to true, however this doesent matter because you can hide the scroll bars by dragging another panel to obscure the virtical scroll bars and it works just fine.
HTH
--
OHM ( Terry Burns ) . . . One-Handed-Man . . . If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Dr Screwup" <nospam@no_thanks.com> wrote in message news:10*************@corp.supernews.com... Do what? I don't think you understood his question. He DOES'T want scrollbars. Your code will only work with Autoscroll = True. Which will show the scroll bar.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl... > > Private Declare Function SendMessage Lib "user32.dll" Alias > "SendMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Int32, ByVal wParam As > Int32, ByVal lParam As Int32) As Int32 > > Const WM_VSCROLL As Int32 = &H115 > Const SB_LINEDOWN As Int32 = 1 > Const SB_LINEUP As Int32 = 0 > > SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEDOWN, 0) > SendMessage(Panel1.Handle, WM_VSCROLL, SB_LINEUP, 0) > > > -- > > OHM ( Terry Burns ) > . . . One-Handed-Man . . . > If U Need My Email ,Ask Me > > Time flies when you don't know what you're doing > > "Nicky Smith" <ni***@yahoo.dk> wrote in message > news:td********************************@4ax.com... >> >> Thanks for the suggestion. I was hoping there was a way of sending a >> scroll value to a hidden scroll bar. >> >> I'll be adding controls to a panel dynamically - kind of plugins for a >> toolbar. >> >> but I guess your idea might work as well as anything else. >> >> Then I can maybe track the display of the first and last controls by >> checking the bounds of the panel. >> >> Thanks. I'll check it out. >> >> Smith. >> >> >> >> >> >> On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" >> <nospam@no_thanks.com> wrote: >> >> >What's in the panel? Controls or a picture? If they are controls you can >> >move them yourself . >> > >> >Dim c as Control >> >For each c in Panel1.Controls >> > ' New Location >> > c.Location = 'Wherever you want it >> >Next >> > >> >If it's a picture just draw part that needs to be seen. >> > >> > >> > >> >"n. Smith" <ni***@yahoo.dk> wrote in message >> >news:t7********************************@4ax.com.. . >> >> >> >> Can anyone help here? I need to scroll a panel in code, because I >> >> don't want to display the scroll bar on screen. >> >> >> >> Any suggestions. >> >> >> >> N. >> > >> > >
Dear Dr.
Tried it, and it worked like a charm.
Thx.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup"
<nospam@no_thanks.com> wrote: What's in the panel? Controls or a picture? If they are controls you can move them yourself .
Dim c as Control For each c in Panel1.Controls ' New Location c.Location = 'Wherever you want it Next
If it's a picture just draw part that needs to be seen. "n. Smith" <ni***@yahoo.dk> wrote in message news:t7********************************@4ax.com.. . Can anyone help here? I need to scroll a panel in code, because I don't want to display the scroll bar on screen.
Any suggestions.
N.
Nick,
Glad I could help. I was wondering if I understood your question because so
many people were offering you some silly suggestions like using the APIs to
send messages. Sometimes the simplest answer is the best answer.
Good luck on your project.
"Nicky Smith" <ni***@yahoo.dk> wrote in message
news:0o********************************@4ax.com... Dear Dr.
Tried it, and it worked like a charm.
Thx.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" <nospam@no_thanks.com> wrote:
What's in the panel? Controls or a picture? If they are controls you can move them yourself .
Dim c as Control For each c in Panel1.Controls ' New Location c.Location = 'Wherever you want it Next
If it's a picture just draw part that needs to be seen. "n. Smith" <ni***@yahoo.dk> wrote in message news:t7********************************@4ax.com. .. Can anyone help here? I need to scroll a panel in code, because I don't want to display the scroll bar on screen.
Any suggestions.
N.
My solution worked exactly as you originally requested
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Nicky Smith" <ni***@yahoo.dk> wrote in message
news:0o********************************@4ax.com... Dear Dr.
Tried it, and it worked like a charm.
Thx.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" <nospam@no_thanks.com> wrote:
What's in the panel? Controls or a picture? If they are controls you can move them yourself .
Dim c as Control For each c in Panel1.Controls ' New Location c.Location = 'Wherever you want it Next
If it's a picture just draw part that needs to be seen. "n. Smith" <ni***@yahoo.dk> wrote in message news:t7********************************@4ax.com.. . Can anyone help here? I need to scroll a panel in code, because I don't want to display the scroll bar on screen.
Any suggestions.
N.
> My solution worked exactly as you originally requested
LOL! Duh! Panel1.AutoScrollPosition = New Point(3, 3) does the same
thing.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in message
news:eg**************@tk2msftngp13.phx.gbl... --
OHM ( Terry Burns ) . . . One-Handed-Man . . . If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Nicky Smith" <ni***@yahoo.dk> wrote in message news:0o********************************@4ax.com... Dear Dr.
Tried it, and it worked like a charm.
Thx.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" <nospam@no_thanks.com> wrote:
>What's in the panel? Controls or a picture? If they are controls you can >move them yourself . > >Dim c as Control >For each c in Panel1.Controls > ' New Location > c.Location = 'Wherever you want it >Next > >If it's a picture just draw part that needs to be seen. > > > >"n. Smith" <ni***@yahoo.dk> wrote in message >news:t7********************************@4ax.com.. . >> >> Can anyone help here? I need to scroll a panel in code, because I >> don't want to display the scroll bar on screen. >> >> Any suggestions. >> >> N. >
Christ your right, well knock me down with a feather; how long have you been
searching for that then cuz you didnt mention it yesterday ;-)
I'll remember that, thanks Dr Screwup
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Dr Screwup" <nospam@no_thanks.com> wrote in message
news:10************@corp.supernews.com... My solution worked exactly as you originally requested LOL! Duh! Panel1.AutoScrollPosition = New Point(3, 3) does the same thing.
"One Handed Man ( OHM - Terry Burns )" <news.microsoft.com> wrote in
message news:eg**************@tk2msftngp13.phx.gbl... --
OHM ( Terry Burns ) . . . One-Handed-Man . . . If U Need My Email ,Ask Me
Time flies when you don't know what you're doing
"Nicky Smith" <ni***@yahoo.dk> wrote in message news:0o********************************@4ax.com... Dear Dr.
Tried it, and it worked like a charm.
Thx.
Smith.
On Mon, 27 Sep 2004 07:34:18 -0500, "Dr Screwup" <nospam@no_thanks.com> wrote:
>What's in the panel? Controls or a picture? If they are controls you
can >move them yourself . > >Dim c as Control >For each c in Panel1.Controls > ' New Location > c.Location = 'Wherever you want it >Next > >If it's a picture just draw part that needs to be seen. > > > >"n. Smith" <ni***@yahoo.dk> wrote in message >news:t7********************************@4ax.com.. . >> >> Can anyone help here? I need to scroll a panel in code, because I >> don't want to display the scroll bar on screen. >> >> Any suggestions. >> >> N. >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jesper DK |
last post by:
Hi,
I have docked a tree view to the left on a form. When I
start to populate this tree view with nodes, a horizontal
scroll box appears in the bottom of the tree view even
though thee tree...
|
by: Open Wound |
last post by:
What method can I call to programmatically scroll a panel?
There is ScrollControlIntoView() but I don't have a control to scroll
into view. I just want the panel to scroll up by 100 pixels.
...
|
by: Raymond Dynowski |
last post by:
How do you force a panel to scroll in code.
I have a large picture box inside my panel.
I would like the panel to default to the centre of the screen, rather than
the scrollbars showing the top...
|
by: Lance |
last post by:
I need to know when the user scrolls a Windows.Forms.Panel
either by using one of the scroll buttons or by using one
of the scrollbars. Are there any events or overridable
methods that can be...
|
by: Sharon |
last post by:
I’m using the Panel control that contains a PictureBox control (for
implementing the http://www.codeproject.com/cs/miscctrl/PictureBox.asp).
The Panel is set to AutoScroll = true.
I wish to...
|
by: Paul E Collins |
last post by:
I'm writing an application whose main window consists of a particular
UserControl that I have placed inside a docked Panel so that it will
fill the whole window. The panel also has the AutoScroll...
|
by: Mike Johnson |
last post by:
I have a ListView on a form, I'm displaying the items as a list. The Scroll
is set to true. I want to know how can I set the scroll bar to Vertical?
|
by: mateusz.zajakala |
last post by:
Hi,
I have panel (with autoscroll property) on which I'm dynamicaly adding
of controls. When I want to scroll my panel using scrollbars it
freezes all the controls added on that panel, makes...
|
by: PrabodhanP |
last post by:
I have CSS based mouseover scrolling for divContent embeded in my webpage.It works fine in IE,but not working in mozilla-FF.
It is located at the location.....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |