|
+5
All your points about use of 'dynamic are very well articulated; I was aware of the late-binding aspect of dynamic, and have used it, for that purpose, in code (when I had to).
In this case, I just finally used 'dynamic because I couldn't get anything else to work
As I said, in my reponse to DaveyM69, "I regret I did not keep back copies of my various failed attempts, so that I could examine them, now."
The OP would have been more valuable, imho, if I had posted my last "failed" attempt, and then the attempt that "worked" for comparison.
Thanks for your time !
best, Bill
"If you shoot at mimes, should you use a silencer ?" Stephen Wright
|
|
|
|
|
I want to make a project this is related to hospital i only want how can we sen message from my network to the mobile.
abubakar
|
|
|
|
|
A little research[^] will get you going.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
You can locate an sms gateway and configure your application to send sms via this gateway,
|
|
|
|
|
and you've got to do some research into WHAT you're sending. In the US, if your application is sending PHI data to a phone over SMS, YOU will be in a ton of trouble. I hope your liability insurance is paid up.
|
|
|
|
|
Hi Friends I am Developing A form with datagridview Control in C# . In that i have added a DatagridviewDeleteButtonColumn .i wrote the Code in Datagridview _cellContentClick event for deleting rows.i got the output for this .But after that i have added a another button in form for adding data to the Datagirdview .Now My problem is data is adding to the database but after adding data if i try to delete any of the data means its not working (means no data gets Deleted). but after running the application if i am doing delete operation means the data gets deleted and if i am trying to delete the data again its not working.
My Coding is
<
Quote: Quote: public void del()
{ string css = ConfigurationManager.ConnectionStrings["cs"].ConnectionString;
c = new SqlConnection(css);
c.Open();
cd = new SqlCommand("delete from tblClientreg where CST_NO='" + dataGridView1.CurrentRow.Cells[6].Value.ToString() + "'", c);
cd.ExecuteNonQuery();
MessageBox.Show("CST_NO" + dataGridView1.CurrentRow.Cells[6].Value.ToString() + "Deleted Successfully", "Delete");
c.Close(); >
in datagridview
<Quote: if (e.ColumnIndex == 7)
{
del();
Ffill();
} >
|
|
|
|
|
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)
|
|
|
|