Click here to Skip to main content
15,921,351 members
Home / Discussions / C#
   

C#

 
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 
QuestionMultiThreading - Synchronization issues Pin
madhusri25-Aug-06 21:13
madhusri25-Aug-06 21:13 
AnswerRe: MultiThreading - Synchronization issues Pin
Nader Elshehabi27-Aug-06 11:07
Nader Elshehabi27-Aug-06 11:07 
QuestionEnumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist25-Aug-06 21:06
giddy_guitarist25-Aug-06 21:06 
AnswerRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi26-Aug-06 3:08
Nader Elshehabi26-Aug-06 3:08 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist26-Aug-06 8:11
giddy_guitarist26-Aug-06 8:11 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
giddy_guitarist31-Aug-06 9:00
giddy_guitarist31-Aug-06 9:00 
GeneralRe: Enumerate local pcs , workgroups etc...(PLEASE HELP) Pin
Nader Elshehabi31-Aug-06 10:29
Nader Elshehabi31-Aug-06 10:29 

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.