|
I am trying to get a grasp of how to build some simple applications. So I went out and bought the .NET Framework Foundation Fundamentals book. It has taken me through some Labs to create console and Windows Form apps but other than those simple things I dont know how to use the classes I find here on this site and put them into a project. I know how to add the class to the project and drag some controls onto the page. I know some namespaces.
For example,
Read, write and delete from registry with C#
This is SUPER useful to us and I want to use it.
I wanted to take this class and create a windows form with a Button, TextBox, and Label. I wanted to be able to enter a keyword into the textbox and onbutton click it would search my registry and delete displaying the results in the label.txt.
Sounds simple enough? Other than dragging controls onto the form I have no clue how to put it together.
|
|
|
|
|
I would suggest two things. One is to stick with basic WinForms or Console applications, and focus on one small thing at a time, such as reading/writing a file, using collection classes, creating and using a class library, etc. until you are very comfortable with C#, the IDE, and these three project types: WinForms, Console, Class Library.
The second thing I would suggest is NOT messing with the registry just yet while you are learning. The registry is vital to Windows and should your program logic be off, your entire system may become unbootable.
When you focus on tdeveloping your building blocks, you'll start to naturally see how to combine them to create the solution you want.
|
|
|
|
|
In our application we are Using Infragistics 6.1.Some of the comboboxes in my application are not getting populated .Can someone TELL ME A sOLUTION
B.RAMYA
|
|
|
|
|
Ramya Bhaskaran wrote: Can someone TELL ME A sOLUTION
Go populate the combo boxes.
|
|
|
|
|
Could U tell the Problem in Clear?.
Sabarinathan T, India.
The interests are to know something about everything and everything about something...
|
|
|
|
|
I need to customize gridview control to display 2 rows in header.
Something like this
Name
First | Last
FN1 | LN1
FN2 | LN2
i.e.
"Name" is a group and "First" and "Last" are the columns under group "Name". These should be the header rows of my GridView.
this is very similar to Sheridan grid control for VB6.0.
Does any one know how to start with such a customization?
SPD
|
|
|
|
|
I have a lot of forms in my project and would like to better organize my code. I'd like to put certain forms in one name space and other forms in another namespace. How can I assign the namespace to a windows form?
|
|
|
|
|
weirbear wrote: How can I assign the namespace to a windows form?
Edit the code-behind and designer file.
|
|
|
|
|
I'm not sure what or where to put something in. I previously tried putting the namespace there but I just get a lot of errors. Can you show me an example?
|
|
|
|
|
weirbear wrote: I'm not sure what or where to put something in. I previously tried putting the namespace there but I just get a lot of errors.
I don't know where, I put it there? WTF does that mean?
If you generated the forms using Visual Studio they already have namespace declarations so just find them and change it to whatever you want. Look at the files listed in the Solution Explorer view.
led mike
|
|
|
|
|
What do the namespace declarations look like in the designer.vb file? I tried ...
Namespace MySpace
...
End Namespace
That's where I get a lot of errors.
|
|
|
|
|
weirbear wrote: What do the namespace declarations look like in the designer.vb file?
Sorry, I don't do VB. Perhaps you need to get a decent beginners book.
led mike
|
|
|
|
|
I got it. I needed to add the Namespace MySpace ... End Namespace declurations in both the designer and the form module. Simple enough to do but if you've never changed the name space for a form the documentation isn't that clear.
|
|
|
|
|
You can create separete project with Library Type,
All forms will be in separete namespace,
It is a good way if you want you these forms in another project.
Also you can create Directory in Visual Studio Solution and store forms
but it will not help you with namespaces
but dramaticaly increase time when you search forms.
|
|
|
|
|
hi,
sorry for second time writing actually i missing one line to tell you.
in my windows application users enters theirs dateofbirth details like 02/05/1983.and my problem is i want show the Date of births between specified month and date values.i am using sqlserver 2005 as backend.but in that todate function is not there.
'Select Convert(datetime ,'2002/01/01') '
this function gives us entire date
but i want retrive the DD/MM only from specified date.
in oracle we have to date('DD/MM','02/05/1983')
but in sql server it was not working
please help me in this problem.
thank you.
regards
|
|
|
|
|
Please don't start a new thread for a follow-up comment to your original question[^].
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
hi,
in my windows application users enters theirs dateofbirth details like 02/05/1983.and my problem is i want show the Date of births between specified month and date values.i am using sqlserver 2005 as backend.but in that todate function is not there.
please help me in this problem.
thank you.
regards
obalesu n
|
|
|
|
|
Use a stored procedure that accepts DateTime parameters and use this. You are using stored procedures aren't you?
|
|
|
|
|
thank u for reply
send clearly
thank you
|
|
|
|
|
obalesu wrote: send clearly
What? I did - you don't need much more than the reply I gave you before. You don't actually expect me to write your complete solution for you do you?
|
|
|
|
|
Now it's not only "send code", make sure it's clear and easy to understand, else they won't be able to copy and paste it...
|
|
|
|
|
|
darkelv wrote: else they won't be able to copy and paste it
Since when has understanding code had anything to do with copy/pasting it?
led mike
|
|
|
|
|
Pete O'Hanlon wrote: You don't actually expect me to write your complete solution for you do you?
Perhaps you could post him a filet-o-fish.
led mike
|
|
|
|
|
I like that one.
|
|
|
|