Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
QuestionDeployment in VS2005. Pin
ranzask25-Feb-06 2:49
ranzask25-Feb-06 2:49 
QuestionSecond Email about How to Print in Windows Forms ?? Pin
Abubakarsb25-Feb-06 1:36
Abubakarsb25-Feb-06 1:36 
AnswerRe: Second Email about How to Print in Windows Forms ?? Pin
emran83425-Feb-06 1:56
emran83425-Feb-06 1:56 
QuestionWindow resizing Pin
XeoN-Kc25-Feb-06 1:22
XeoN-Kc25-Feb-06 1:22 
AnswerRe: Window resizing Pin
User 665825-Feb-06 2:30
User 665825-Feb-06 2:30 
GeneralRe: Window resizing Pin
XeoN-Kc25-Feb-06 2:42
XeoN-Kc25-Feb-06 2:42 
GeneralRe: Window resizing Pin
User 665825-Feb-06 3:25
User 665825-Feb-06 3:25 
AnswerRe: Window resizing Pin
Robert Rohde26-Feb-06 6:35
Robert Rohde26-Feb-06 6:35 
Hi,
the code seems good at first glance but some parts are missing to clear this out. I assume you are setting ResizeRXY not correctly. Be beware of the affect that the X and Y coordinate of the MouseEventArgs are relative to the control which generated the event in relation to its parent (to the whole screen when working with a Form).
I quickly put together the following (where panel1 is a Panel docked to the right of a Form - but it shouldn't matter what kind of control it is):
private Point _resizePoint;

private void panel1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
	_resizePoint = new Point(e.X, e.Y);		
}

private void panel1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
	_resizePoint = Point.Empty;	
}

private void panel1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
	if (_resizePoint != Point.Empty)
	{
		this.Width += (e.X - _resizePoint.X);
	}
}

GeneralRe: Window resizing Pin
XeoN-Kc28-Feb-06 1:37
XeoN-Kc28-Feb-06 1:37 
Questionclass Image Pin
videhr24-Feb-06 23:52
videhr24-Feb-06 23:52 
AnswerRe: class Image Pin
James Gupta25-Feb-06 0:12
professionalJames Gupta25-Feb-06 0:12 
GeneralRe: class Image Pin
videhr25-Feb-06 4:58
videhr25-Feb-06 4:58 
GeneralRe: class Image Pin
User 665825-Feb-06 5:13
User 665825-Feb-06 5:13 
GeneralRe: class Image Pin
videhr25-Feb-06 5:30
videhr25-Feb-06 5:30 
GeneralRe: class Image Pin
User 665825-Feb-06 5:33
User 665825-Feb-06 5:33 
GeneralRe: class Image Pin
videhr25-Feb-06 5:57
videhr25-Feb-06 5:57 
GeneralRe: class Image Pin
User 665825-Feb-06 6:17
User 665825-Feb-06 6:17 
GeneralRe: class Image Pin
James Gupta25-Feb-06 7:34
professionalJames Gupta25-Feb-06 7:34 
Questionset the property of the file created to be hidden Pin
batmanAgen24-Feb-06 23:39
batmanAgen24-Feb-06 23:39 
AnswerRe: set the property of the file created to be hidden Pin
Wayne Phipps24-Feb-06 23:53
Wayne Phipps24-Feb-06 23:53 
GeneralRe: set the property of the file created to be hidden Pin
batmanAgen25-Feb-06 1:28
batmanAgen25-Feb-06 1:28 
GeneralRe: set the property of the file created to be hidden Pin
Wayne Phipps25-Feb-06 2:28
Wayne Phipps25-Feb-06 2:28 
GeneralRe: set the property of the file created to be hidden Pin
batmanAgen25-Feb-06 4:15
batmanAgen25-Feb-06 4:15 
QuestionExport C function? Pin
Dominik Reichl24-Feb-06 22:45
Dominik Reichl24-Feb-06 22:45 
AnswerRe: Export C function? Pin
CWIZO25-Feb-06 3:11
CWIZO25-Feb-06 3:11 

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.