|
I have to write a C# source code with regular indentation.(See list1 for regular style indentation)
and get the same C# source code with S-style indentation.(See list2 for the S-style indentation.)
You may implement it as a console program. (a Windows Form program is ok)
Other requirements : classes should be reusable and scalable. The source code should be readable and concise. The program should be able to overcome exceptions and continue to run.
Scalability requirements : the program should be able to accept and transform C++ source code as well with minimum modification.
List1.cs: regular style indentation
using System;
class MyClass
{
static void Main()
{
Console.WriteLine("Hello World!");
}
}
List2.cs: Banner style indentation
using System;
class MyClass {
static void Main() {
Console.WriteLine("Hello World!");
}
}
Plz tell anyone..its urgent...Plz mail me the code : saurabh.a.pandey@gmail.com
Or contact me on 09948284132.
Thanks in advance.
Regards,
Saurabh
|
|
|
|
|
I wrote the source, it is available Here[^]
Just so you know, absolutely no one (else) will do this here. Learn how to code or pay someone else to do it. Don't exepct it done for free.
|
|
|
|
|
Plz tell everyone..its urgent: Do your own work or pay someone for it!
www.thomas-weller.de
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Programmer - an organism that turns coffee into software.
|
|
|
|
|
Hopefully you wll get what you need - a fail on the course.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Member for over a year and this is the first impression we get... Trolling perhaps?
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
I love it when people type their home work in here, and just expect someone to do it for them. You're an idiot.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Afternoon Folks !
I'm looking for some advice on keyboard shortcuts please.
I have my system set up so that some of the main windows are minimized at the side of the screen (toolbox, solution explorer etc).
I have found the keyboard shortcuts for making these visible/hiding and was wondering if there was another key tap for pinning it in place (turning off the auto hide) ?
You know - say i wanted it open t drag a a few components and didn't want it to keep auto-hiding.
I know i can 'pin' it with the mouse but would rather use the keyboard.
A bit hard to explain i know but hopefully you've understood me.
Neil
|
|
|
|
|
Hi,
I think you're in wrong forum. Here's C# forum, try Visual Studio forum[^].
I died as a mineral and became a plant,
I died as plant and rose to animal,
I died as animal and I was Man.
Why should I fear? When was I less by dying?
-- Rumi[^]
My blog
|
|
|
|
|
I set up macros to do this, e.g.,
Sub ToggleToolbox()
Dim w As Window = DTE.Windows.Item(Constants.vsWindowKindToolbox)
If w.Visible Then
w.Visible = False
Else
w.Visible = True
End If
End Sub
Sub ToggleSolutionExplorer()
Dim w As Window = DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer)
If w.Visible Then
w.Visible = False
Else
w.Visible = True
End If
End Sub
Then assign them to keyboard shortcuts.
Kevin
|
|
|
|
|
If I set a form to be a child control of a form and have AutoScroll on the parent form = true - if I then move and resize the child form the scolling goes haywire
Some sample code:
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.AutoScroll = true;
Form form = new Form();
form.TopLevel = false;
this.Controls.Add(form);
form.Show();
}
}
Does anybody know why it does that and is there a way around it so that moving and resizing the child form doesn't make the scrolling behaviour of the parent go loopy? The same thing happens if a child forms parent is set to be a usercontrol or a panel.
Thanks in anticipation
|
|
|
|
|
I would make the child form a control and place it in an empty form if I ever had to show it as it's own popup.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hello all
I wish to get in my c# application for a textbox having a tooltip which would show the total number of arguments it hold
more clearly
in the tooltip if i can have 5 numbers total it shows 5>5
5>5 tooltip.Show(1,2,3,4,5)
for my reqiurement the tool tip must show the following when i gradually type one parameter, to the next... the following see the numbers in bold
1>5 tooltip.Show(1)
2>5 tooltip.Show(1,2)
3>5 tooltip.Show(1,2,3)
4>5tooltip.Show(1,2,3,4) AND finally
5>5 tooltip.Show(1,2,3,4,5)
like wht we get in the C# editor while we type ....
thanks
Tony
|
|
|
|
|
|
Hint:
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
}
Might want to check out e.KeyChar[^]
|
|
|
|
|
Hi All,
Is there any place i can get a set of Interview questions for C sharp and ASP.net developemnt?
Many thanks
|
|
|
|
|
Hello kibromg
just use google search...
or try this link
http://www.dotnetcurry.com/ShowArticle.aspx?ID=70
Thanks
Tony
|
|
|
|
|
Thank you Very Much Tonny.
|
|
|
|
|
An interview maybe
Bob
Ashfield Consultants Ltd
|
|
|
|
|
hello all
i tried the code below to display the tooltip to be shown on the form when the user types on the textbox
toolTip1.Show("hello tony", this.txtSample, this.txtSample.Right, this.txtSample.Bottom, 1000);
the pblm is how to make the tool tip to be displayed almost closer to the textbox
Thanks
Tony J S
|
|
|
|
|
use toolTip1.Enabled(); or something similar...
|
|
|
|
|
hello V
i am sharing the my answer with u which i got from another
toolTip1.Show("Hello V",this.txtdispaly,1000);
ORRR
toolTip1.Show("hello V", txtSample, txtSample.Left,txtSample.Top, 1000);
thanks
|
|
|
|
|
thanks.
30 seconds of MSDN showed me:
it's probably in C++ that you have to "Enable" or something.
C# Copy Code
private void Form1_Load(object sender, System.EventArgs e)
{
ToolTip toolTip1 = new ToolTip();
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 500;
toolTip1.ShowAlways = true;
toolTip1.SetToolTip(this.button1, "My button1");
toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
}
|
|
|
|
|
tonyjsebastian1 wrote: URGENT
Just a tip, don't use that word. it might be urgent for you, but you should be polite and wait for someone to be ready to answer your question in their own time unless you want to pay them.
That said,
The tool tip offsets itself from the position you give. You need to adjust the cords you give it accordingly:
toolTip1.Show("hello tony", txtSample, txtSample.Left + 10, txtSample.Top + 10, 1000);
Simon
|
|
|
|
|
hello Simon Stevens
first let me ask u a sorry for my mistake
i tried this way and i am ok to an extent...
this.toolTip1.ToolTipTitle = "Function name and parameters";
this.toolTip1.IsBalloon = true;
toolTip1.Show("Function name(string,int)", this.txtdispaly,1000);
Now the tool tip is showing at closer to the text box but in Balloon shape..
Thanks
Tony
|
|
|
|
|
If you don't want it balloon shaped, set IsBallon to false.
Simon
|
|
|
|