Click here to Skip to main content
12,897,483 members (53,438 online)
   

Java

 
QuestionRe: Java code Convert to C# Pin
Blikkies14-Nov-12 1:06
memberBlikkies14-Nov-12 1:06 
GeneralRe: Java code Convert to C# Pin
Richard MacCutchan14-Nov-12 1:34
mvpRichard MacCutchan14-Nov-12 1:34 
AnswerRe: Java code Convert to C# Pin
Richard MacCutchan13-Nov-12 21:16
mvpRichard MacCutchan13-Nov-12 21:16 
AnswerRe: Java code Convert to C# Pin
Dave Doknjas17-Nov-12 3:17
memberDave Doknjas17-Nov-12 3:17 
It can almost be completely converted to C#:

using System.Windows.Forms;
 
public class ConfirmDeleteDialog
{
	public static readonly int YES = DialogResult.Yes;
	public static readonly int NO = DialogResult.No;
	public static readonly int CANCEL = DialogResult.Cancel;
	internal static readonly int OK = DialogResult.OK;
	internal static readonly int CLOSED = JOptionPane.CLOSED_OPTION;	//no equivalent to 'CLOSED_OPTION'
 
	public static int showMessage(Component parent, string message, string title)
	{
		return MessageBox.Show(parent, message, title, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
	}
}


Dave Doknjas
Convert between VB, C#, C++, & Java
www.tangiblesoftwaresolutions.com
Instant C# - VB to C# Converter
Instant VB - C# to VB Converter
QuestionTower of hanoi in java Pin
prog.sidra11-Nov-12 21:19
memberprog.sidra11-Nov-12 21:19 
AnswerRe: Tower of hanoi in java Pin
Richard MacCutchan11-Nov-12 21:49
mvpRichard MacCutchan11-Nov-12 21:49 
AnswerRe: Tower of hanoi in java Pin
TorstenH.12-Nov-12 0:22
memberTorstenH.12-Nov-12 0:22 
GeneralRe: Tower of hanoi in java Pin
prog.sidra12-Nov-12 19:58
memberprog.sidra12-Nov-12 19:58 
QuestionIf element in diagonal is 1 then its unit matrix , else it's not unit matrix Pin
Asad JOgi11-Nov-12 19:26
memberAsad JOgi11-Nov-12 19:26 
AnswerRe: If element in diagonal is 1 then its unit matrix , else it's not unit matrix Pin
TorstenH.11-Nov-12 21:15
memberTorstenH.11-Nov-12 21:15 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 25 Apr 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid