|
Again, the issue you have here is twofold
1 - you're getting help that *kind of* works, and ignoring my replies on the basis that I'm trying to get you to write some actual code for your assignment, instead of just getting it off the web. You don't learn anything this way.
2 - the fact that in using this code, you can't work out what it's doing, is a sure sign that you should not be using it, but instead focusing on your class, and on learning C# for yourself, instead of relying on others to provide you with code
There is nothing wrong with asking people for help, and nothing wrong with people giving you code. But, before you use it, you should use google to help you to understand it, so you could reproduce it yourself in future. That's what learning is.
In any case, someone else has given a link to a control you can use. I didn't look because, well, if you're doing homework, you should focus on learning, not on using other peoples code. And, in any case, you only had to type marquee into the search box on the site to find it for yourself.
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 )
|
|
|
|
|
Sorry Sir,
Actually I need it urgently.
I will keep your words in my mind befor i ask some one for help.
Regards,
rahul saini
|
|
|
|
|
I still don't understand why. This is homework, right ? Did your teacher say you needed a marquee in your project ?
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 )
|
|
|
|
|
|
what is the difference between API & DLL
MS Office API and MS Office Dll both are same ot not?
|
|
|
|
|
Quoting Wikipedias definition for each term:
API[^]:
"An application programming interface (API) is a source code interface that a computer application, operating system or library provides to support requests for services to be made of it by a computer program."
DLL[^]:
"Dynamic-link library (also written without the hyphen), or DLL, is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems."
Hence, a DLL is one way to expose an API or parts of an API to the programmer. Another way to expose an API is through a Web Service[^].
So, to recap, the MS Office API is the specification of what functionality you as a programmer can use to interact with MS Office, while the MS Office DLL (DLLs actually, there are lots) is the binary code executed by the computer through you program if you use the API.
|
|
|
|
|
|
Hi,
I am having a string which holds the data type list now i want to convert it into the System.Data.DbType.
This string will be in the database.
Can you please give me solution to get rid of this problem.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
You can parse a string against an enumeration as follows:
System.Data.DbType myDBType = (System.Data.DbType)Enum.Parse(typeof(System.Data.DbType), yourString);
You should put this in a try-catch statement as it will thrown an ArgumentException if yourString is not an item of the DbType enumeration.
Check MSDN for syntax and exceptions thrown.
Hope this is what you wanted.
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
|
|
|
|
|
|
Try printing a form-feed character 0xC (?) at the start of every slip. Not sure how to configure the printer to recognise the length of a slip though :P
|
|
|
|
|
Sir,
i m using 4 inch X 12 inch slip.please give me code or logic
thanks for your reply.
help as a alias.
Be happy and make others happy.Cheer up...........
|
|
|
|
|
Hi all
Can some one help me for Adding and Deleting macro in Word throgh C#,i m working in Vb.net.but dont know any method for Adding & Deleting macro.
Regards,
Hiren
Thanks in advance.
|
|
|
|
|
Have you dug around with the Office Interop classes/methods?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
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 )
|
|
|
|