15,991,072 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by steersteer (Top 42 by date)
steersteer
13-Sep-11 14:44pm
View
thanks. Could you please tell me how to uncheck the checkbox once after the messagebox is displayed ? ( i tried checkbox1.ischecked == false but that didn't work. I want the checkbox to be unchecked if it is checked and checked if it is not checked.
steersteer
13-Sep-11 14:33pm
View
Deleted
can you please tell me how to uncheck the checkbox once after the messageBox is displayed ? (something like set checkbox1.ischecked = false ? )Thanks
steersteer
13-Sep-11 14:26pm
View
Thanks
steersteer
13-Sep-11 11:08am
View
Thanks.
steersteer
13-Sep-11 10:22am
View
Thanks for your reply. Have found some articles about moving the camera around a 3D scene. Working on it.
steersteer
12-Sep-11 10:40am
View
I agree with you, but my problem at that moment was to find the "difference" value. Having got introduced to Abs() method by you, now I am starting to play around with other methods in math namespace using intellisense. Feeling a bit more confident as well. From now, I am sure I can find the answers by myself regarding math namespace. Actually, this is the type of learning methodology I prefer. A solution to my current problem and a hint of recommendation from the expert himself for further reading and understanding using which I can solve similar problems by myself in the future. Btw, I am using google and reading from already written articles too. Thanks
steersteer
12-Sep-11 10:10am
View
Thanks
steersteer
12-Sep-11 9:59am
View
Thanks.
steersteer
12-Sep-11 9:57am
View
Thanks for the answer and advice, but I prefer learning this way. I Write in forums because it gives me an opportunity to converse with the Gurus directly. Of course my questions are basic to anyone with decent knowledge in programming, but it is a critical question for a beginner like me. Every solution I get for my questions here is a grain of knowledge to me. In my case, Google has sometimes ended up as a pandora's box. Just like when an EFL student uses an english dictionary to know the synonym of a word, where the meaning itself contains too many new words that the learner does not know what it means. Learning is subjective and I have my own views about it. I am not compelling you to reply me. I am just humbly asking for help. If it bothers you then i am sorry and you can ignore my questions, but please don't give any such deterrent statements. I don't mind spending time here when I have the eagerness to learn something new. Thanks once again for the answer.
steersteer
12-Sep-11 8:44am
View
Thanks
steersteer
12-Sep-11 6:58am
View
Thanks. Very good example. Easy to understand for an amateur like me. Please see if you could answer my other question about controls in WPF.
steersteer
12-Sep-11 6:52am
View
Thanks for your reply, but I am afraid that Split(); method is not available to textbox control in WPF. I tried with "carmake.Split(','); but I get an error that the System.windows.Controls does not contain a definition for that method. Any thought about it ?
steersteer
9-Sep-11 13:50pm
View
Thanks. will try and implement this technique now..
steersteer
9-Sep-11 12:41pm
View
Is it possible to create a new instance of the car everytime I click button1 ? Thanks
for eg;
car car1 =new car(); //when the button is clicked first time
car car2 = new car(); // when the button is clicked second time
car1 should have its own properties like horsepower, top-speed,and cylinder and so does car2.Thanks
steersteer
9-Sep-11 12:22pm
View
will do. I am thinking of buying a good book about c# or .NET(latest one), if it comes under my budget. I got used to the habit of reading from books, and I find it a bit difficult reading technical material from computer screen. Anyway, thanks for the answer again. I tried your first way. I get an error "inconsistent accessibility". now working on passing parameters through constructors. I have successfully passed the value "n" from window1 to window2 through the constructor of window2, but passing the list bugs me a little. same error as before i guess. Btw, any thought about creating the objects(newcars) based on the value given by user "n"(number of cars)
steersteer
9-Sep-11 11:26am
View
Thanks fore the reply. I have basic knowledge about classes, objects and constructors., but have not tried inheritance and polymorphism. know a little bit about parameter types but nothing about stack and heap. :). I have updated my question above. could you please take a look at it and let me know if anything could be done to get the desired output ? I would like to use the window1's carlist in window2 too, or copy the window1's list contents into a new list in window2. Thanks
steersteer
9-Sep-11 10:52am
View
I have updated my question. Please let me know what you think about it.
steersteer
9-Sep-11 10:50am
View
Thanks. I am interested in graphics and stuff. Especially Like creating animations and games. Thought I could learn a bit of this and that at the same time, but will definitely work on C# strongly.
steersteer
9-Sep-11 10:46am
View
Thanks. I have updated my question now. Please take a look at it and let me know. Thanks again for the tip on naming convention. will follow it from now.
steersteer
9-Sep-11 10:34am
View
Thank you very much for the reply. I have done as you've recommended, but I am afraid I have a few problems in it. I will update the whole question. Please go through it and let me know your solution. Much appreciated.
steersteer
9-Sep-11 8:55am
View
Thanks
steersteer
9-Sep-11 8:45am
View
also, can i create a list of objects using List< <<CAR>> carname = new List <<CAR>>(); where car being the class name
steersteer
9-Sep-11 8:43am
View
Thank you very much. Yea. Lists look much easier. Have not used lists before. Just one doubt. if i have two windows with one list in each, can you please tell me how to store all the elements in doubles(list in window1) in window2.doubles(list in window2) ? Can you please give me a link for a tutorial(video would be great) about using lists in visual C# ?. Something for a clumsy beginner please ? :) Thanks. Much appreciated.
steersteer
9-Sep-11 7:36am
View
okay..will try now..thanks..very kind of you.
steersteer
9-Sep-11 7:35am
View
It is just a portion of my code, and no I did not define my button click method outside my mainwindow class.
steersteer
9-Sep-11 7:27am
View
Thanks for the reply btw.
steersteer
9-Sep-11 7:27am
View
My objective here is not to display the value in the textbox, but to store it in an array. I am planning to store a new value in the double array everytime i click the button. I want the code to be something like this.
private button_click()
{
int i=0;
code to store the current value in the textbox into a double array[i]
....
i++;
textbox1.clear();
}
steersteer
9-Sep-11 7:18am
View
my bad. I pasted the code i had before fixing that error.
steersteer
8-Sep-11 20:40pm
View
Thank you very much. I am getting the correct output now. Can i follow the same design procedure for arrays or lists as well ? I have two textboxes in window1 now and I would like to store their values in A[0] and A[1] respectively in window2.
steersteer
31-Aug-11 11:37am
View
Thanks for your reply. I guess you are right too. I am trying to use "group.Children.Remove" or "group.Children.RemoveAt" at the end of my time_task method ? (how about group.Children[0].Remove for first cube). I honestly don't know how it works. Please give me a syntax or example to use them with in a method. would really appreciate it. thanks
steersteer
31-Aug-11 10:03am
View
thanks
steersteer
31-Aug-11 6:47am
View
If I had known how to work it out, I wouldn't have asked your help here. would I ? I did write a piece of equivalent code in C#, but it does not work. I can post that as well if needed. Thanks for your reply anyway. PS: I am very new to programming.
steersteer
30-Aug-11 18:13pm
View
okay. I am not sure whether it is right or not, but I am referring to the objects by "model3Dgroup.Children[0]" Does it refer to the first of the five 3D objects I have on the screen ? If so, can you please tell me a way to check it ?
Thanks
steersteer
30-Aug-11 17:47pm
View
Thank you. will give it a try.
steersteer
30-Aug-11 17:21pm
View
Thanks for your reply. I have created the objects using Model3DGroup.Children.Add(meshgeometry); Something like this one
WPF 3D Primer
I have called the "buildobject method" (the one i have used to create 3Dmodels)five times with in the constructor of the mainwindow and have created five 3Dobjects of same shape and size but located in different positions.
As I've mentioned, I would like to apply translatetransform3D to each of the objects added. I know how to do apply transformation to every object when the code is written in xaml. I usually use their names to refer to them, but I don't know how to access them individually and apply transformations when the objects are created only using C# as code-behind.
My main objective right now is to access every object. could you please tell me how to iterate over the children of the panel containing my 3Dobjects ? or Could you please let me know the syntax or an example to set the name property(in C#) to 3D objects created by calling a method in the code behind ?
Thanks
steersteer
30-Aug-11 13:42pm
View
Deleted
I Tried using dispatchertimer class in wpf. I am afriad that this procedure does not seem to work for my purpose. The output does not work very well, and I could not animate it either. I am thinking of making my project a property based animation by using translatetransform3D or something. I am not precomputing anything at the moment. There are 3 arrays for x,y and z co-ordinates. x[0] will have x position of ball-1 and x[1] will have x position of ball-2 and similarly the y and z arrays. The values in X[0], X[1]...etc. will be changed frequently using a simple method that contains some calculations within a for loop. I want these values(positions) to be used as new positions for the tennis balls. The animation should run accordingly to the positions updated by the function. (can these new positions be used as an offset to translatetransform3d ?) The animation should end when the loop within the method terminates. I have done quite a lot of reading about timer-based animation, frame-based animation and property based animation using C#/WPF, but so far I have not found anything useful. There are a few solutions but all of them are for 2D objects. I have done most of my work in C# and have not used xaml that much. Please resolve my problem.
steersteer
23-Aug-11 12:56pm
View
thanks man..you are awesome...will post if i get stuck again...
steersteer
23-Aug-11 12:02pm
View
cool. will try. Thanks..:)
steersteer
23-Aug-11 12:00pm
View
Thanks for the reply. checked on that link. seems the wizard form has not been launched yet.!.lol.my bad..!
steersteer
23-Aug-11 11:56am
View
Thanks for the reply..
steersteer
23-Aug-11 11:52am
View
Thank you again for your reply. I will start working on that immediately. And yeah, checked out the MVVM link ! I guess I may need a whole weekend for that E-Tome.!!!.:D..will learn..Cheers
steersteer
4-Jul-11 7:36am
View
Deleted
Thanks. I am working on JAVA 3d programming and WPF side by side, and both are interesting so far.
Show More