|
If it's a 1.0 or 1.1 project sharp develop can do this automatically IIRC. Reflector will do the same, but will eat any comments in the process. I'm not sure if either supports 2.0 yet.
|
|
|
|
|
There are a variety of tools available (just google on VB to C# converter).
We have a very well-established VB to C# converter called Instant C# - you can download a demo edition at www.instantcsharp.com with a 100-line snippet conversion limit.
Regardless of which converter you use, it's to your advantage to avoid the on-line converters since there's a lot that they do not convert:
http://www.tangiblesoftwaresolutions.com/Articles/Language%20Features%20not%20Handled%20by%20On-Line%20Converters.htm[^]
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter and VB to C++ converter
Instant J#: VB to J# converter
Clear VB: Cleans up VB.NET code
Clear C#: Cleans up C# code
|
|
|
|
|
hi all,
i have 16 checkboxes in a form. (4 in a row and total 4 rows = 4x4)
if any one checkbox is checked in a row, i want to disable others.
how can i do this ?
|
|
|
|
|
Use <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsControlClassDataBindingsTopic.asp" rel="nofollow">DataBindings property</a>.
Best regards, Alexey.
|
|
|
|
|
Message Closed
modified 27-Apr-15 11:00am.
|
|
|
|
|
Add this line to FormLoad event:
<br />
checkbox2.DataBindings.Add(new Binding("Enabled", checkbox1, "Checked"));<br />
When checkBox1 is checked checkbox2 will be enabled, and
when checkBox1 is unchecked checkbox2 will be disabled.
Best regards, Alexey.
|
|
|
|
|
Hi!
Nothing magic about it: Just set the Enabled property of the CheckBoxes you want disabled to false .
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|
|
i think this could be worked
CheckBox[] ch1 = new CheckBox[] { checkBox1, checkBox2, checkBox3, checkBox4 };
{
for (int x = 0; x < 4; x++)
if (ch1[x].Checked)
{
foreach (CheckBox ch in ch1)
{
if (ch.CheckState == CheckState.Unchecked)
ch.Enabled = false;
}
}
}
|
|
|
|
|
Nothing hard to do the above things.... just put all the check boxes in a group box.. it will take care of enabling/disabling the states
|
|
|
|
|
The best way of doing this is to use radio buttons instead of checkboxes. That is what radio buttons are for.
Roy.
|
|
|
|
|
Sorry Roy is right... put radio buttons inside Group Box
|
|
|
|
|
I have to draw a picture using GDI, which is definitely bigger than the screen.
I dont know the drawing size intially, its dynamic one.
so, to see the whole picture i should have scroll bars.
how can i add scroll bar to form.
Please help me with sample code.
Thanks in Advance
-- modified at 5:06 Thursday 25th May, 2006
|
|
|
|
|
Here is a simple method:
Set form property AutoSize to true. Place panel on form in (0,0) location. Set panel size equal to image size. Draw your image on this panel.
Best regards, Alexey.
|
|
|
|
|
Sorry, cant modify my post, this property is AutoScroll, not AutoSize.
Best regards, Alexey.
|
|
|
|
|
Thanks 4 Ur Help.
I did nt get the way to keep panel at (0,0) position.
infact i am not using any panel...., can u please tell me, what is panel.. and how to keep it (0,0) position,
Please help me..
Thank U
|
|
|
|
|
create report finish but next day open project run, report error message "Queries Engine error and path to finame.rpt"
Who meet this error can help me"
Thanks
|
|
|
|
|
Hi All,
I have been getting stuck with the weirdest error to do with SMTP. I set up a mail system for a website ive been working on which automatically sends an email when someone submits a form. It was working at first but i hadnt changed the code for a week and when i tried using it again it spat an error. I cut the code down to basics for testing and it still threw an error.
CODE doen in C#.NET {
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.To = "anemail@hotmail.com";
msg.From = "anemail@hotmail.com";
msg.Subject = "subject";
the error ---> *****msg.BodyFormat = System.Web.Mail.MailFormat.Html;*****
msg.Body = "body";
System.Web.Mail.SmtpMail.SmtpServer = "localhost";
System.Web.Mail.SmtpMail.Send(msg);
}
The email works without formating to HTML, (ie if it is just text)... but it used to work even with HTML. Im assuming some IIS setting were changed but i can not see how it would allow the email to be sent in text format and not HTML.
------------------------------------------------------------------------------------------
The error is :Exception Details: System.Runtime.InteropServices.COMException: Unknown Error
Stack Trace:
[COMException (0x80040605): Unknown Error]
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) +0
System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) +473
System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) +29
System.Web.Mail.LateBoundAccessHelper.SetProp(Type type, Object obj, String propName, Object propValue)
System.Web.Mail.LateBoundAccessHelper.SetProp(Object obj, String propName, Object propValue)
[HttpException (0x80004005): Could not access 'CDO.Message' object.]
System.Web.Mail.LateBoundAccessHelper.SetProp(Object obj, String propName, Object propValue)
System.Web.Mail.CdoSysHelper.Send(MailMessage message)
System.Web.Mail.SmtpMail.Send(MailMessage message)
ASP.testmail_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in c:\inetpub\wwwroot\changerequest\testmail.aspx:19
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
System.Web.UI.Control.Render(HtmlTextWriter writer)
System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
System.Web.UI.Page.ProcessRequestMain()
----------------------------------------------------------------------------------------
If anyone can help me it would be greatly appreciated.
Thanks for your time
Chris Clayko
chris
-- modified at 4:15 Thursday 25th May, 2006
|
|
|
|
|
Hi
I think you have two errors,
1.The Mail Message Format error so you have to set the mail format . There are two formats TEXT and HTML.
SMTPMail.SMTPServer="Mail Server IP";
mailMessage msg=new MailMessage();
msg.To="To address";
msg.From="from Address";
msg.Format=MailFormat.Text;
SMTPMail.Send(msg);
2.The Invalid SMTP mail server identification for CDO Object error so mention right IP address for that one.
SMTPMail.Server="Mail Server IP";
best wish's
ranandbe
-- modified at 8:04 Thursday 25th May, 2006
|
|
|
|
|
I have 2 forms where the 1st one passes variables to the 2nd form. How then can I go back to the 1st form programmatically by clicking a link on the 2nd form?
-- modified at 4:24 Thursday 25th May, 2006
|
|
|
|
|
u might be disposing the second form
r u working on windows form?
rahul
|
|
|
|
|
yes, I'm using windows form.
But I don't want to dispose the second form. Just bring the 1st form to the front and make one of the tabpages active. How do I do this?
|
|
|
|
|
if u r passing string parameter from form2 to form1
then u can activate tabpage in following way
first u recieve string parameter in the constructor of form1
then try following codes in constructor
foreach(TabPage tb in tabControl1.TabPages)
{
if(tb.Text==recieved string)
this.tabControl1.SelectedTab=tb;
}
rahul
|
|
|
|
|
Hi,
What is reverse engineering and is that possible to reverse engineer now?Will it not an inefficiency?
Let me know the answer!
Thank you!
Deepa!
Be the Change you want to See!
|
|
|
|
|
Reverse engineering is examining a product and recreating the engineering documents (plans and/or code) from that examination.
This is typically done with the unique aspects of a product (the bulk of most products can be created using standard knowledge. For example, you don't need to reverse engineer menus or most dialog boxes in software since how to do them is quite obvious to an experienced developer.)
Another form of reverse engineering in software is to decipher, or crack, formats for data streams, databases or other forms of I/O, often so another program can import the data to its format.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi!
Ever thought about searching here[^]?
Regards,
mav
--
Black holes are the places where god divided by 0...
|
|
|
|