|
Hi All i ma very new in the world of C# and .net..
I am learning c# so need to practical of C# programming..
Let me know how i can do c# programming ..in my system there r only .net framework 1.1 and 2.0 ..
What else i need to install othere that framwork ..and where i can free download it..
i want to programming on dos prompt..
please tell me require compiler etc ... and download links..
thankyou in advance....
Life is not easy ,let's make it.
|
|
|
|
|
Hi,
If you have Visual Studio, this is the easiest way to program and compile your code. Visual Studio 2003 is for applications in .NET 1.1 and Visual Studio 2.0 is for applications in .NET 2.0. In all cases, you need the proper SDK for the .NET version you want to work with. If you don't have Visual Studio, you can use the tools that come with the SDK to compile your code.
If you want to program in .NET 2.0, you would need the .NET 2.0 SDK that can be found here http://www.microsoft.com/downloads/details.aspx?FamilyID=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&displaylang=en[^].
If you want to program in .NET 1.1, you can find the SDK here http://www.microsoft.com/downloads/details.aspx?FamilyID=9b3a2ca6-3647-4070-9f41-a333c6b9181d&DisplayLang=en[^]
Also, for help on using C#, you can browse MSDN Library here http://msdn2.microsoft.com/en-us/library/default.aspx[^]
Talal
"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."
--Rich Cook
|
|
|
|
|
Thankyou Sir ....
Life is not easy ,let's make it.
|
|
|
|
|
I want to create some plug-in (or service or whatever) forExchange
Server 2003 that will be installed on Exchange Server machine and will
listen for all incomming mails for all users and for emails with
specific subject the plug-in must execute some additional operations
and sometimes those emails will be moved to different folder in client
Outlook.
How can I start with this development? I need to use C#
2005? If exists some components for this action?
Thanks in advance,
Adnan
Many Thanks,
Adnan Rafiq
muhammadadnanrafiq@gmail.com
|
|
|
|
|
Hi all,
well I got this strange little demand here. I'm working in C# 1.1 windows application. I've a web browser control in which I show the XML file and as you know when u open an Xml file in a browser it gives the collapse and expand feature on its node. Now I want to make a button in my application that says 'Expand all' and when i click that it should open the XML file WITH ALL NODES EXPANDED.! So can anyone plz help me on this.
IS THIS POSSIBLE IN ANYWAY TO CONTROL THE COLLAPSE/EXPAND FUNCTIONALITY WHILE OPENING AN XML FILE... (VIA XSL OR XSLT OR ANYTHING?)
Thanks alot
Rocky
-- modified at 2:57 Thursday 9th August, 2007
|
|
|
|
|
My Url is "http://sampleTesting:9587/MyFolder"
My expecting result is MyFolder
I have used the following code , its work fine.
int iStartIndex = srcUrl.LastIndexOf("/");
string sitePath = srcUrl.Remove(iStartIndex);
Here I have used only one parameter ie., LastIndexOf("/"). But I should use two parameters
for example
name="My name is jayaraj";
int foundS1 = name.IndexOf(" ");
int foundS2 = name.IndexOf(" ", foundS1 + 1);
name = name.Remove(foundS1 + 1, foundS2 - foundS1);
in the same way i want . pls give the code
|
|
|
|
|
you could split an string with specifics chars.
name = name.Split(new char[] { ' ' })[1];
|
|
|
|
|
jayarajmrj wrote: My Url is "http://sampleTesting:9587/MyFolder"
My expecting result is MyFolder
I think what you need is
string sitePath = srcUrl.SubString(iStartIndex + 1);
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Hi,
if you need to find the last slash, a single invocation of LastIndexOf would do it,
and it would need only one parameter.
If you give LastIndexOf a start parameter as well, be careful it will search from that
position down to index zero.
And I guess you could tackle the problem with the URI class too.
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hi,
I have designed a form. But when it runs and when i maximising the form the controls are not increasing accordingly leaving gaps.
How should I make them grow or shrink along with the form size.
|
|
|
|
|
By setting the dock or anchor properties in the designer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi all,
How to switch between two threads ?
I am having two threads first one is main thread and second one a thread in which a function is called.In second thread,while loop is there.When one iteration is completed in loop i have to switch to main thread and call a function and again come to second thread and repeat the process.
Please help me..
|
|
|
|
|
praveen pandey wrote: I am having two threads first one is main thread and second one a thread in which a function is called.In second thread,while loop is there.When one iteration is completed in loop i have to switch to main thread and call a function and again come to second thread and repeat the process.
You have the threads signal each other when control should pass from one to the other. While one thread is doing work, the other waits. When the work is finished, the working thread signals the waiting thread that it's done. It then begins waiting while the other thread does its work.
Typically, a worker thread looks something like this:
private void ThreadMethod()
{
lock(lockObject)
{
while(someConditionIsTrue)
{
Monitor.Wait(lockObject);
}
}
}
From another thread, you have to pulse the lock to get the worker thread running:
lock(lockObject)
{
Monitor.Pulse(lockObject);
}
However, since one of these threads is the main thread, you probably don't want it blocking while the other thread is doing work. This could tie up your UI. So we need more information about the kind of application you're writing. Is it a console app? A Window Forms app?
|
|
|
|
|
It's a windows app.
Here is scenario.
secondThreadMethod()
{
while(conditonIsTrue)
{
some code;
//After one iteration i want to come out(since conditon is still true) and goto main thread finish some work and come back to this thread and continue in this way.
}
}
thanks
|
|
|
|
|
praveen pandey wrote: It's a windows app.
Ok, well in your thread loop, you could marshal a delegate invocation to the main thread:
private void ThreadMethod()
{
lock(lockObject)
{
while(someConditionIsTrue)
{
Monitor.Wait(lockObject);
BeginInvoke(new WorkDelegate(DoWorkOnMainThread));
}
}
}
private delegate void WorkDelegate();
private void DoWorkOnMainThread()
{
lock(lockObject)
{
Monitor.Pulse(lockObject);
}
}
This assumes you're writing a Forms application. The idea is that you have the main thread running and not blocking while the worker thread does its work. Then when you need work done on the main thread, the worker thread marshals a delegate invocation that does the work to the main thread through BeginInvoke . The method on the main thread signals the worker thread when it's done so that the worker thread can continue for another iteration.
|
|
|
|
|
Thanks alot.
It really worked in the way what i wanted.
Thanks Again...
|
|
|
|
|
Hi,
How to bypass character in TextBox, so when we press alphabet keyboard key will bypass it. But when we press number TextBox will confirm this input.
Thanx in advanced
Regard,
Edwin
|
|
|
|
|
private void txtBox__KeyPress(object sender, KeyPressEventArgs e)
{
if (!Char.IsDigit(e.KeyChar))
{
e.Handled = true; // input is not passed on to the control(TextBox)
}
}
|
|
|
|
|
Thanx a lot -Bobo
God Bless U
Regard,
Edwin
|
|
|
|
|
You need to do this:
if (!Char.IsDigit(e.KeyChar) && !Char.IsControl(e.KeyChar)
or otherwise your arrow/delete/etc keys will not work.
edwin46 wrote: There is no KeyChar properties in e
It is constantly depressing to me, the inability of so many people to use intellisense, or google. Goodness knows what you're doing, but the KeyChar property is most certainly present.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.keypresseventargs.handled.aspx[^]
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
write your code in key press event
|
|
|
|
|
Sorry Guys,
It's working 100%
Regard,
Edwin
|
|
|
|
|
I want to bind a table in my access database to a datagridview control in my application. I have created a dataset, and bind the table successfully to my datagridview. Now I want to add two new columns to the table in database. I have updated the data table of both dataset and access database, however, the changes are not reflected in the datagridview, as I added two new columns into datagridview, I can not see the two fields I just added to the dataset when I try to set DataPropertyName field. Datagridview control still binds to the old dataset even though the dataset has been changed.
The only way Ive found to update the datagridview is to delete the dataset and create a new one base on the updated database. Is there a way to update the dataset automatically without deleting the old dataset?
Thanks in advance
|
|
|
|
|
in many times after change fileds in dataset, you need to configure all its dataadapter querys (Fill is first) again. in other word you just open each query and then closed it.
|
|
|
|
|
Hi, i have a form with a panel. In this panel, it allow the shapes drawn (using graphicspath) to be drag and drop. However, there is the flickering problem whenever i drag any of the shapes. i tried to use the SetStyle function like below:
public class DoubleBufferPanel : Panel<br />
{<br />
public DoubleBufferPanel()<br />
{<br />
this.SetStyle(ControlStyles.DoubleBuffer |<br />
ControlStyles.UserPaint |ControlStyles.AllPaintingInWmPaint,<br />
true);<br />
<br />
this.UpdateStyles();<br />
}<br />
}
however, it generates the error below:
An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll<br />
<br />
Additional information: Invalid parameter used.
Any suggestion on what should i do?
Thanks in advance
|
|
|
|