|
I Want to binding a list of Frames to controls, how can i do that ?! or somethings like that,can you please help me out ?!
|
|
|
|
|
You are going to have to be way more specific than that.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
What list of "Frames"? What's a "Frame"?
What list of "controls"? How are they related to the "Frames"??
Without this, you've got a lot of people scratching their heads wondering what you're talking about.
|
|
|
|
|
I have experience with VB with the very basics. I'm currently working on an app that allows me to see Japanese characters (Hiragana alphabet) and type with it using windows applications. I've been told that switching to C# is the best thing to do and I'm very overwhelmed since I only have knowledge with C# using the Console. If anyone has any information it would be greatly appreciated. Thanks in advance.
|
|
|
|
|
Diego Carrion wrote: If anyone has any information it would be greatly appreciated.
What specifically do you want to know? You've been told that switching to C# is the best thing to do for what?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
I'm interested in designing applications in general. Right now I'm working on making my own visual Hiragana keyboard. I ran across this book: http://www.programmersheaven.com/ebooks/csharp_ebook.pdf[^].
I was told C# is the popular language to use because it mixes all of the other languages and makes life "easier". I'm completely new to this, all I've taken on programming are two very basic courses on C# (Console) and a object oriented programming on using VB.
|
|
|
|
|
Are you looking at doing programming professionally, or just as a hobby?
If professionally, then I would recommend you learn C# because you are likely to do more serious programming in C-type languages than in VB.
If you have specific questions about the Hiragana keyboard you're writing, I'm sure people here will be able to help when you get stuck.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Well right now I'm working towards getting a Bachelors in Computers Information Systems and I'm getting closer and closer to graduating and programming has been the thing that I've been interesting in the most. I picked up on mostly everything easily but I recognize it was extremely basic. Nonetheless I'm interested in it so I would like to give it a shot professionally. For now it would have to b a hobby of course, but if I keep developing my knowledge I wouldn't mind going down that path. Do you recommend these beginner books or just looking at videos and asking people and learning like that? Thanks a lot for taking time.
|
|
|
|
|
Oh, without a doubt, the best way to learn it is by doing it. Start with a book you like and work through the exercises.
Watching videos is great, but that will only give you the overview. You will need hands-on practice to really learn it.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Hmmm, I seem to be confused. Have you considered VB.NET? It can be used for Windows GUI applications. That might be easier than switching to C# and simultaneous learning controls.
|
|
|
|
|
You think the future looks good for VB.NET. All I get from forums and people are that making the switch to C# promises more on the long run. How about you, how did you learn to program? School or just self learning?
|
|
|
|
|
Well, that was where I was unsure if you were just doing it for a project, or for a career. As a career, I personally don't know if any .NET language is going to be useful in 5-10 years. A previous poster responded that C# would be more useful, because at least it's syntactically similar to other C languages, I agree there to some extent.
I learned mostly on my own, the only classes I took in college were in C++ and Java, but I used C# and PHP much more in my career. Learning a new language isn't that difficult, once you understand the concepts of programming and have been pretty advanced in one. For example, I never took a class in VB, but I've fixed coworkers code that uses it, because it was close enough to C# for me. I've found it beneficial to remain personally language agnostic.
|
|
|
|
|
So once you grasped the basics you're able to just jump from language to language with ease? Do you recommend PDFs or purchasing actual books? I have to get my A+ certification first, but this is what I'm interested in most.
|
|
|
|
|
I wouldn't say jump around "with ease" but yes, grasping the basics, and advanced parts, of programming will help you learn or at least adapt to new languages. As far as materials. I have found that I remember more and can look up stuff faster in a printed book, rather than pdf, but that's just choice. I've only read one book in pdf format in my life, so don't take my view on that as the ultimate truth.
|
|
|
|
|
The information you've given me has been great. I'll go with PDF books for now and when I can afford them then I'll research some books to see what the best choice would be.
|
|
|
|
|
I would like to know how to pass values to a C# 2008 console application that my small company obtained from a contract shop.
My goal is to be able to step though (debug) the code so that I can understand the application.
Right now I have been able to compile the application and set break points to see where the problem lies. The application starts in the main method and stops executing when it is looking for 2 parameters that need to be passed.
Right now to run the application I click on a windows command file that looks like the following:
Start .\samclt\bin\Debug\samcl.exe encrypted_value https:
The first value is 'encrypted_value' is an encrypted value, the second parameter is used to call a webservice named testWebService and the values of 1 and ITEM are passed to the web service.
Due to what I stated above, I have the following two questions:
1. When I want to start the C# application from a debug mode, how can I pass the two required parameters to the application and let the application 'see' parameter values and have access to the values?
2. When I start the C# application from the command prompt, how can I pass the two required parameters to the application and let the application 'see' parameter values and have access to the values?
modified 24-Aug-12 12:29pm.
|
|
|
|
|
Project properties->Debug-> Command line arguments.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Wes has shown how to do it in the debugger. To do it command prompt is much like you already have after the start command:
samcl.exe encrypted_value https://test/test/testWebService 1 ITEM
The general rule for any application is:
executable param1 param2 ... paramN
Any parameters that contain spaces are required to be encoded within double quotes. By convention any parameter with a leading / or - character is deemed to be an option letter or word, applied to the next parameter in order. There is probably an MSDN page that explains this in more detail but I do not have a link to it.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
From the other side (in your app), the parameters are stored in a string array called args passed to your static Main:
static void Main(string[] args)
|
|
|
|
|
Hello Everyone,
Actually I’ve created SQL Table column name with special character like @#$$%Id%^$# and I have created insert query to inserting value such as:
Insert into MyTable ([@#$$%Id%^$#]) values (@@#$$%Id%^$#)
After that passing parameter value as:
SqlCommand cmd = new SqlCommand (“Insert into MyTable ([@#$$%Id%^$#]) values (@@#$$%Id%^$#) ”);
cmd.Parameters.Add(new SqlParameter (“(@@#$$%Id%^$#”, ParameterValue))
After Executing this Code I got ‘Must Declare Scalar Variable @’
|
|
|
|
|
OK, so your column type has to be some char type, right? Enclose the value in double quotes and you should be good. Unless, of course, the column type of "@#$$%Id%^$#" is something other than a char type??
|
|
|
|
|
Ankitaaguggi wrote: Actually I’ve created SQL Table column name with special character like @#$$%Id%^$#
Bad idea - as you have discovered.
If relevant note that database columns should NOT be used as display values. Thus there should be no reason to include anything but alphanumerics and underscores.
|
|
|
|
|
In a C# desktop 2010 application that I need to write, I will be calling a web service. I have been using batch command prompts to save the output to a text file.
The commands I have been running in the dos window look like the following: cmd1 > file1. Basically the output shows in a dos window and > makes the data displayed in the dos window go to the standard ouput.
My questions are the following:
1. Since I have been using the redirection symbol, the web service must be writing the output to 'standard output' location. However I do not know what the 'standard output' is in a C# 2010 and how to access the 'standard output'. Thus can you tell me what the standard output is and how to access it in a C# 2010 application?
2. Can you tell me how to have information not be displayed in a dos popup window and go to eh location i specify?
|
|
|
|
|
Are you writing a console application?
Then Console.Out is your standard output.
|
|
|
|
|
sc steinhayse wrote: the web service must be writing the output to 'standard output'
Wrong. The web service has no access to the client streams at all. It's your "cmd1" executable that is writing the data to standard output, not the web service.
sc steinhayse wrote: 2. Can you tell me how to have information not be displayed in a dos popup
window and go to eh location i specify?
That depends on your "cmd1" code. All you need to do is grab a path specified on the command line, open the file specified by the path, and write the data to that instead of outputting it to the console. An example of your command line would be:
cmd1 C:\somepath\somefile.txt
If you don't know how to get command line parameters or open a file and write to it, you've got some research to do on the basics of C# and the .NET Framework.
Such as this[^]
and this[^]
|
|
|
|