|
I've to submit the project by December.
I am new to .net. I've to submit the project in my college.I'l make the projec by myself, just want to know some ideas.
thank you.
|
|
|
|
|
Nagy Vilmos wrote: and then post a query starting Urgntz!
and gimme codes. send codes to my email: stupidfool@gmail.com
|
|
|
|
|
Hello!! Somebody help me
I m new in c#, I want to do practical like this
First I create two textbox and then one checkbox. I want that if i check the checkbox whatever I have to write in one textbox that display same text in other textbox and dispay readonly
Like temporary and permanent address same field in most of fill application form. please send me code
|
|
|
|
|
My dear friend, I shall not flame you, for you are new.
This is exactly the sort of thing you need to learn.
If we told you or gave you code you would have learnt nothing.
I suggest you use This[^] excellent research tool to find the answers you need.
There are many c# Tutorials available that can help an absolute beginner, and they will help you progress.
There is no other way you can advance, and certainly not by others doing it for you.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Very nice answer for a beginner....
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|
|
Thank you.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Try this out. If you face issues, please post them (with code) here and someone will help you.
Too much of heaven can bring you underground
Heaven can always turn around
Too much of heaven, our life is all hell bound
Heaven, the kill that makes no sound
|
|
|
|
|
I think you have missed the links Abhinav... Everything is appearing as a text only.....
I quit being afraid when my first venture failed and the sky didn't fall down.
|
|
|
|
|
Where would be the point of giving you the code?
What would you learn? How to do it next time? Probably not. How to do the next task you come up with? Definitely not.
This is not a difficult task: You need one text box property (Text) used twice, one CheckBox property (Checked) used once, and a single event handler - I'll let you guess the name of that.
Total code you need to write? About two lines, if we let Visual Studio handle the hook up code (and mostly, we do).
Seriously, you need to get a book and follow the whole thing from the beginning to the end, doing all the exercises. If you continue to learn by asking for a bit here and a bit there, you will miss so much important stuff that you will effectively have wasted all the time you put into it.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
|
hai ,
I have to dock a windows form into ppt application window. I try to do this
by using this code
PowerPoint.Presentation presentation = Globals.ThisAddIn.Application.ActivePresentation;
MyForm.Parent =(System.Windows.Forms.Control) presentation .Parent;
then the following error message shown
"Unable to cast COM object of type 'System.__ComObject' to class type 'System.Windows.Forms.Control'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface."
is there is any way to solve this problem?
Thanks.
|
|
|
|
|
Even if you got past this error, you can't set forms to be parented across AppDomains anyway. I think that add-ins are run in a separate AppDomain, though I'm not sure about that.
Does the add in API not provide you with a way to create a custom tool window? I doubt you are supposed to create your own forms and then try to push them into the existing docking framework (since, if you try to do that, if MS change the docking framework your form will no longer work right).
|
|
|
|
|
Don't cross post your question in multiple forums and don't create new accounts for every post you make.
You cannot do what you want. Setting the Parent of a Form to that of a seperate process or AppDomain will not work.
PowerPoint will never notify your window that it needs to be repainted. It exposes no framework for you to "add" your window to the PowerPoint application.
|
|
|
|
|
I have a winform application and beside it i have a VSTO Project.
How can i open the word document embedded in the winform project?
Thanks.
I would be thankful if you could answer the question.
|
|
|
|
|
Do not cross post.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
Hello.
I am fairly new to C# programming, (I am trying to teach myself), and I would like to know how to make custom (either WinForms, or WPF) components.
The components that I am trying to make need to be fairly efficient, as I want to repaint them at least 30 times a second (with new data to display each time).
I am fine with using unsafe code blocks if they are needed.
The data that is going to be displayed is in the form of 1-dimensional HSL (Hue Saturation Luminescence) pixel data.
I want to show a moving display of this data, a graphical FIFO stack (one that discards the first inputs upon overflow).
Working on a digital signal processing article.
(My first article on this site)
|
|
|
|
|
There are two parts to this question. You don't actually need very much for a custom control if it is simply output, and in fact I'd be tempted just to use a PictureBox and catch Paint. The correct way to do it though would be to inherit from UserControl and override OnPaint. There's some information about how to write general custom controls in my LineEditor article[^] (scroll about half way down), but you probably don't need the user input parts.
The second part is how to draw a 1 dimensional data series (if I'm understanding you correctly, that's just a stripe of pixels?) quickly. 30 fps still gives you 30ms per frame, though you don't want painting to take all of that (obviously), so my gut feeling is that you can just paint normally, with Graphics.FillRectangle, but it depends how many pixels are visible at once. If that is too slow, use one of the fast ways of mucking with bitmap data (a search for Bitmap.LockBits here on CP should find them) to put the frame data into a temporary buffer and then use Graphics.DrawImage to copy it to the control during the paint phase.
|
|
|
|
|
Thanks!
Yes, you did understand the second part correctly.
I have a sensor that is supplying data over ethernet that needs to be displayed on the screen.
It reports intensity in HSL values, one strip at a time, kind of like a flatbed scanner.
I am making a GUI element that displays this data in a waterfall like display (thus the FIFO stack).
Working on a digital signal processing article.
(My first article on this site)
|
|
|
|
|
I would like to learn C#, I have been doing C++ for a while. What is a good meaningful project that I can work on to learn lots of C#, like SQL db, basics of C# and webservices if possible, all in one project. I can do like a banking exxample, but can anyone suggest a more meaningful project?
|
|
|
|
|
It depends on what you really want to learn. I believe there's no such thing as all-in-one project. A lot of developers are excited to jump into the advanced topics without getting familiar first with the basic ones. IMHO, I would advice you to start by writing some simple data entry application when you want to learn C# and SQL. That way, you get to familiarize yourself with the syntax.
Signature construction in progress. Sorry for the inconvenience.
|
|
|
|
|
|
First you need to narrow your focus quite a bit, what interests you (not what you think will make you the most money), look at the different types of application that can be built. Tools, communications, LOB, new media, social crap, web, desktop and many more. The requirements for each are dramatically different.
Example: I do LOB work and would not a accept new media contract as I have no expertise in that area.
Once you have an area defined then pick a subject that you have some knowledge about, or find a sponsor who is willing to share their knowledge. Now you can start work.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I find a number of code samples and quick starts available on msdn. They should get you help started.
|
|
|
|
|
Firstly: don't! Trying to learn everything at once is a certain recipe for disaster.
Secondly: Decide what you need to learn and then prioritise those needs and approach them one at a time. You say that you are new to C# programming so that is the obvious place to start. .NET Book Zero[^] by Charle Petzold is a great place to start. You can follow that up by the C# Tutorials[^] on MSDN, and also lots of samples in the CodeProject Articles[^] section. Once you are comfortable with the language you can move on to SQL[^] and perhaps ASP.NET[^] depending on what you plane to develop.
|
|
|
|
|
A web application of some kind is good for getting a cross-section across the various technologies. A book I used to learn PHP/mySQL did an online wine store (minus the actual interface to a payment provider which is not particularly instructive and rather tedious). You could write a simple social networking site (Facebook/LinkedIn/etc) or a microbroadcast site (a la Twitter), but be sure not to set your sights too high trying to create something similar to a multi-million dollar commercial enterprise – you'll just burn out.
|
|
|
|