Click here to Skip to main content
15,887,135 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
gobbo-dd21-Aug-17 0:07
gobbo-dd21-Aug-17 0:07 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen21-Aug-17 5:04
professionalEddy Vluggen21-Aug-17 5:04 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
gobbo-dd21-Aug-17 21:56
gobbo-dd21-Aug-17 21:56 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen22-Aug-17 3:56
professionalEddy Vluggen22-Aug-17 3:56 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
gobbo-dd22-Aug-17 22:50
gobbo-dd22-Aug-17 22:50 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Eddy Vluggen23-Aug-17 0:00
professionalEddy Vluggen23-Aug-17 0:00 
GeneralRe: GUI from CreateProcessWithTokenW does not show up Pin
Dave Kreskowiak24-Aug-17 4:21
mveDave Kreskowiak24-Aug-17 4:21 
QuestionError in Panel AutoScroll after rotating a Picturebox within that Panel in VB.Net Pin
Member 90509857-Aug-17 11:59
Member 90509857-Aug-17 11:59 
I have a panel of size width=150 pixel,height=100 pixel, backcolor=green with autoscroll is true. I also have a picturebox within that panel which contains a picture of size width=500 pixel, height=200 pixel. I also have a button, on clicking that button picturebox image rotates 90 degree clockwise. and according to that scrollbar values should change. but it is not.

Here is my code

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

Dim h, w

PictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone)

PictureBox1.SizeMode = PictureBoxSizeMode.AutoSize
h = PictureBox1.Image.Height
w = PictureBox1.Image.Width

Panel1.HorizontalScroll.Maximum = 0
Panel1.HorizontalScroll.Visible = False

Panel1.VerticalScroll.Maximum = 0
Panel1.VerticalScroll.Visible = False

Panel1.AutoScroll = False

Panel1.HorizontalScroll.Minimum = 0
Panel1.HorizontalScroll.Maximum = w - 1
Panel1.HorizontalScroll.Visible = True
Panel1.HorizontalScroll.Value = 0

Panel1.VerticalScroll.Minimum = 0
Panel1.VerticalScroll.Maximum = h - 1
Panel1.VerticalScroll.Visible = True
Panel1.VerticalScroll.Value = 0

Panel1.AutoScroll = True

PictureBox1.Left = 0
PictureBox1.Top = 0

Panel1.Invalidate()
End Sub

My problem is: On form load both the scrollbars working perfectly. But after clicking the button picturebox rotates to 90 degrees, so picturebox's images's width and height values interchanges, so the scrollbars maximum values. But its not. After clicking the button first time vscrollbar does not go down after a certain value. This thing happens on odd number of clicking the button. On even number of clicking it works perfectly.

This odd and even number problem also interchanges when the original picturebox image dimension interchanges. i.e. when picturebox image width=200, height=500, then hscrollbar creates the problem on odd number of button clicking.
AnswerRe: Error in Panel AutoScroll after rotating a Picturebox within that Panel in VB.Net Pin
Alan N7-Aug-17 12:47
Alan N7-Aug-17 12:47 
QuestionBest practice connecting to database Pin
A_Griffin5-Aug-17 23:58
A_Griffin5-Aug-17 23:58 
AnswerRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 0:44
professionalEddy Vluggen6-Aug-17 0:44 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 0:55
A_Griffin6-Aug-17 0:55 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 1:06
professionalEddy Vluggen6-Aug-17 1:06 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 4:41
A_Griffin6-Aug-17 4:41 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 4:49
professionalEddy Vluggen6-Aug-17 4:49 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 5:10
A_Griffin6-Aug-17 5:10 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 5:19
professionalEddy Vluggen6-Aug-17 5:19 
AnswerRe: Best practice connecting to database Pin
Gerry Schmitz6-Aug-17 4:16
mveGerry Schmitz6-Aug-17 4:16 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 4:44
professionalEddy Vluggen6-Aug-17 4:44 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 4:48
A_Griffin6-Aug-17 4:48 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 5:08
professionalEddy Vluggen6-Aug-17 5:08 
GeneralRe: Best practice connecting to database Pin
A_Griffin6-Aug-17 5:18
A_Griffin6-Aug-17 5:18 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen6-Aug-17 5:36
professionalEddy Vluggen6-Aug-17 5:36 
GeneralRe: Best practice connecting to database Pin
Gerry Schmitz9-Aug-17 7:31
mveGerry Schmitz9-Aug-17 7:31 
GeneralRe: Best practice connecting to database Pin
Eddy Vluggen9-Aug-17 8:25
professionalEddy Vluggen9-Aug-17 8:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.