|
yes you are right. but they made the camera icon as an href to a javascript piece of code. so I just need to fire this JVScript code.
|
|
|
|
|
Well, that is a webpage, to which you do a request and get a response. Regular stuff
There is nothing stopping you to programmatically do a request (good luck figuring out all parameters though), getting the response, and displaying it back.
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|
|
|
Hello, I am converting a program from using comma delimited files to a compact database in 2010 Visual C#. I am a complete newbie in the Database arena but with the help of some of the examples on here and other sites I have gotten a basic start. The examples I found on some sites pointed me into setting up a dataset binding and updating the tables. This works with loading the files into my form but I am having trouble getting it back and staying saved. Below is my code so far. The form text will update the datagridview but after I close the program it will only show the previous data before I updated it. I know I am missing something. Any help is greatly appreciated.
Thanks!
if (contactedtype == "update")
{
DataRow[] customerRow =
fabCatDBDataSet.Tables["contactlist"].Select("contactID = '" + contactedcontactID + "'");
customerRow[0]["title"] = contactedtitle;
customerRow[0]["firstname"] = contactedfirst;
customerRow[0]["lastname"] = contactedlast;
customerRow[0]["jobtitle"] = contactedjob;
customerRow[0]["phone"] = contactedtele;
customerRow[0]["fax"] = contactedfax;
customerRow[0]["cell"] = contactedcell;
customerRow[0]["email"] = contactedemail;
customerRow[0]["notes"] = contactednotes;
customerRow[0]["contactID"] = contactedcontactID;
customerRow[0]["clientlistID"] = contactedclientID;
this.Validate();
this.contactlistBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.fabCatDBDataSet);
}
|
|
|
|
|
Ew, DataSet .
Do you need to call AcceptChanges on the DataTable ?
|
|
|
|
|
I have a lot of experience when it comes to C#. I have a game in C#, but it's a console game. I want to change it into a sprite based game.
If anyone could give me some pointers or some good beginner tutorials on using sprites. Please let me know
|
|
|
|
|
|
code for building 3 consecutive triangles using only for loop. With spacing
|
|
|
|
|
Go ahead. You have our approval to make an attempt at this. What we won't do is do the work for you.
Why? Compliments of JSOP[^]
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Member 9438848 wrote: code for building 3 consecutive triangles using only for loop.
Here[^]
|
|
|
|
|
Right, you have the basics of your requirements there. They don't make much sense as they stand, so you're going to have to flesh them out a fair bit. If I were you, I'd attempt to refine the requirements out. Once you've done that, you know that you must use a for loop - but the constraint there is wrong, you have to use something other than a for loop other wise your program would just consider of a for loop with nothing in it - so make sure that things get clarified).
|
|
|
|
|
Posting homework questions will get you downvoted and chased off the site ... and with good reason.
|
|
|
|
|
Do your own homework
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
"consecutive" ? Not Concentric? Or Contiguous? Or Congruent?
|
|
|
|
|
I suspect he's right. If it's the problem I think it is, I saw this one when I was at Uni in the 80s. The aim is to give a number which represents how big each triangle is, and then draw it out. It'll end up something like this
5 5 5
55 55 55
555 555 555
5555 5555 5555
55555 55555 55555 And as a not to the OP - you can solve this with the aid of one for loop.
|
|
|
|
|
Sure it's not:
5
55
55
555
5555
55555
5
55
55
555
5555
55555
5
55
55
555
5555
55555
?
Didn't we have a Friday Programming Quiz on this?
Maybe that was the "draw a square" assignment.
modified 18-Sep-12 16:18pm.
|
|
|
|
|
That was't the one I solved - it was the shape I posted. Again though, the OP needs to find the details out.
PIEBALDconsult wrote: Didn't we have a Friday Programming Quiz on this?
Dunno. I can't remember seeing it.
|
|
|
|
|
spacing pattern is same, but my problem how to think the logic for the spacing like building a pyramid placed in four directions with some gap.1 pyramid each direction!!
|
|
|
|
|
Try drawing it out on a piece of graph paper and then seeing if you could use a bit of maths to solve each line. The big hint is that the gap in each line is predictable.
|
|
|
|
|
nope..
not helping a beginner!!
|
|
|
|
|
I'm sorry, but I am not going to do your homework for you. It does you no good if I do it because it doesn't teach you how to solve a problem, it merely shows that somebody with over 30 years experience knows how to solve it. That's not going to help you get a job, is it?
|
|
|
|
|
What size font would you like this code to be written in?
/ravi
|
|
|
|
|
Hello
How I can snap my window, for all windows ?
I need push button, and my Form must snap to task bar, after other windows must snap to my window. Only when all windows is maximized. I need auto-snap to edges. For others applications..
Sorry for my english, I still searching in google, but no result.
My english is low level, forgive me, when I write with errors.
|
|
|
|
|
That's not easy. Of course you could read every window position via COM but I think before I start to explain, you should try to snap you Window to the screen edges.
If I would explain, I could write the complete code and that would take some time for me. This ain't a question to be answered here with some tips.
Take a look at the Windows COM-Model (system32.dll and so on) there is everything you need, but you have it to workout on your own, if there are no examples in google.
You can't do it directly with C#, I think.
------------------------------
Author of Primary ROleplaying SysTem
How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.
|
|
|
|
|
I think you will need to enumerate all open windows and use SetWindowsPos. This is a job for P/Invoke.
|
|
|
|