Click here to Skip to main content
15,924,452 members
Home / Discussions / C#
   

C#

 
AnswerRe: a program for documentation. Pin
Nader Elshehabi26-Aug-06 2:09
Nader Elshehabi26-Aug-06 2:09 
GeneralRe: a program for documentation. Pin
Colin Angus Mackay26-Aug-06 2:17
Colin Angus Mackay26-Aug-06 2:17 
GeneralRe: a program for documentation. Pin
Green Fuze26-Aug-06 2:18
Green Fuze26-Aug-06 2:18 
AnswerRe: a program for documentation. Pin
Colin Angus Mackay26-Aug-06 2:16
Colin Angus Mackay26-Aug-06 2:16 
GeneralRe: a program for documentation. Pin
Green Fuze26-Aug-06 2:21
Green Fuze26-Aug-06 2:21 
GeneralRe: a program for documentation. Pin
Ed.Poore26-Aug-06 3:26
Ed.Poore26-Aug-06 3:26 
QuestionHow can i open network printer as file in C#? Pin
empika26-Aug-06 1:44
empika26-Aug-06 1:44 
AnswerRe: How can i open network printer as file in C#? Pin
Nader Elshehabi26-Aug-06 2:03
Nader Elshehabi26-Aug-06 2:03 
GeneralRe: How can i open network printer as file in C#? Pin
empika26-Aug-06 2:13
empika26-Aug-06 2:13 
GeneralRe: How can i open network printer as file in C#? Pin
tigerButterfly26-Aug-06 8:49
tigerButterfly26-Aug-06 8:49 
GeneralRe: How can i open network printer as file in C#? Pin
empika30-Aug-06 22:49
empika30-Aug-06 22:49 
GeneralRe: How can i open network printer as file in C#? Pin
tigerButterfly31-Aug-06 4:51
tigerButterfly31-Aug-06 4:51 
Questionmscoree.dll error Pin
Timothy_Rudolph26-Aug-06 1:36
Timothy_Rudolph26-Aug-06 1:36 
AnswerRe: mscoree.dll error Pin
Nader Elshehabi26-Aug-06 1:47
Nader Elshehabi26-Aug-06 1:47 
QuestionSelect an area in photoshop from a C# project Pin
Bauke Tilma26-Aug-06 0:29
Bauke Tilma26-Aug-06 0:29 
Hi
I wrote a script in Visual Basic that selected an area in photoshop by the following script:

selRegion = Array(Array (0,0),Array(60,0),Array(60,60),Array(0,60),Array(0,0))
docRefNewPicture.Selection.Select(selRegion)


Now I want to implement this code in a C# project. I already wrote a script that opens the picture but now I wanted to select the area by the following code:

NewPicture.Selection.Select(selRegion,1,0,false); 


In this code selRegion must contain the information about the area I want to select, but I have no idée how to define the area and in what kind of object or format. I already tried the following tinks:

int[,] selRegion=new int[,] {{0,0},{60,0},{60,60},{0,60},{0,0}};

(error only one dimensional arrays)

System.Drawing.Rectangle Rect=new System.Drawing.Rectangle(0,0,60,60);
System.Drawing.Region selRegion=new System.Drawing.Region(Rect);

(error array expected)

Can anybody help me how to define selRegion??

Tanks a lot

Bauke


BWT
QuestionRe: Select an area in photoshop from a C# project Pin
Nader Elshehabi26-Aug-06 2:21
Nader Elshehabi26-Aug-06 2:21 
QuestionDataGrid Pin
MozhdehQeraati26-Aug-06 0:29
MozhdehQeraati26-Aug-06 0:29 
AnswerRe: DataGrid Pin
Nader Elshehabi26-Aug-06 2:31
Nader Elshehabi26-Aug-06 2:31 
QuestionResulation Pin
MHASSANF25-Aug-06 23:26
MHASSANF25-Aug-06 23:26 
AnswerRe: Resulation Pin
Nader Elshehabi26-Aug-06 2:50
Nader Elshehabi26-Aug-06 2:50 
QuestionHow can I show each page sum colon in Crystal Reports? Pin
ersinsivaz25-Aug-06 23:12
ersinsivaz25-Aug-06 23:12 
QuestionClosing a form - Tooltips Pin
Glen Harvy25-Aug-06 22:54
Glen Harvy25-Aug-06 22:54 
AnswerRe: Closing a form - Tooltips Pin
Filip van der Meeren25-Aug-06 23:14
Filip van der Meeren25-Aug-06 23:14 
GeneralRe: Closing a form - Tooltips Pin
Glen Harvy25-Aug-06 23:29
Glen Harvy25-Aug-06 23:29 
GeneralRe: Closing a form - Tooltips Pin
Filip van der Meeren26-Aug-06 1:07
Filip van der Meeren26-Aug-06 1:07 

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.