|
Aljaz111 wrote: I don't know how poker sites have their clients protected, but if there is no chance to get it directly from server what options do i have?
I think you have buckleys chance of doing this. Gambling, like porn sites tend to lead the industry in technology and as a level playing field (for the players anyway) is incredibly important to the gambling site I an bloody sure they are not going to allow easy access to their server or via the client.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Let's say I have five sheets in excel workbook,and each sheet contains one table.Is there any way to Import only active sheet to my C#,What should I do to recognize only active sheet.??any help,ideas??
One more thing,How can I get a data to C# from Excel VBA control(let's say textbox).
So I have vba control textbox in sheet and, I want to get textBox.value in my c# project??
|
|
|
|
|
Don't give your self a headache as I did ,
Buy this "Aspose.Cells" , and get rid of Excel problems
I know nothing , I know nothing ...
|
|
|
|
|
About first question you asked, you can include MS office excel object libraryand write:
Excel.Worksheet workSheet = (Excel.Worksheet)workBook.ActiveSheet;
Not sure about second requirement.
|
|
|
|
|
I did what u said,but nutin.Every time I get Sheet1 open.
|
|
|
|
|
IIRC there are about 5 different ways of opening a sheet/book/etc. You need to find some samples and work out which method you need. This generally takes a load of reaserch into articles and samples etc.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I dunno, I use ADO.net and the OleDb connector to read and write Excel and I don't think it will do everything you want.
|
|
|
|
|
Yes I do too,using ADO.net and the OleDb connector to read and write,so this is not possible with ado.net
|
|
|
|
|
Hello,
I'm trying to write a UI in C# for an existing Access database.
1.I've connected to Northwind sample database according to MSDN tutorial:
http://msdn.microsoft.com/en-us/library/ms171893%28VS.80%29.aspx
2.I made a Windows Form Project.
3.I added a button and assigned to it code that modifies an entry in the database.
4.The code for the form looks like this:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace AccessUI
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
NwindDataSet.CustomersRow customersRow =
nwindDataSet.Customers.FindByCustomerID("ALFKI");
customersRow.CompanyName = "Updated Company Name";
customersRow.City = "Seattle";
}
}
}
5. Then I run the code, press the button,but after running the code I do not see the changes in the database.
Would you please advice what can be the problem.
Thank you. Polina.
modified on Wednesday, February 23, 2011 5:46 AM
|
|
|
|
|
Member 7697943 wrote: But after running the code I do not see the changes in the database.
Their might be lots of problem. Without seeing your Db update code,
No one can help.
a) You are not even interacting with DB !
b) Query for update is wrong !
etc etc...
download MSDN sample you had mentioned in your post.
try to play/explore with it then imply/mimic the same in your app.
|
|
|
|
|
Without seeing the code which you used to add the new row, it is impossible to guess...
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
Problem is you are editing record only on UI not in DB.
You have to Update that change in DB. With DataAdapter object you can update that, like
this.TableAdapter.Update(this.NwindDataSet.CustomersRow);
Refer to this for more help.
Hope this help(if yes then please vote )
|
|
|
|
|
i have a textbox in form1,
i want send the information of textbox to combobox in form2 ???
how i can???
help me please
modified on Saturday, February 26, 2011 4:26 PM
|
|
|
|
|
Read This. It will help !
And is correct approach.
Other approach (if small interaction is involved)
form2 obj = new form2(textBox.text);
obj.Show();
public form2(string text)
{
InitializeComponent();
combobox.Items.Add(text);
}
|
|
|
|
|
Thanks!
|
|
|
|
|
hanis29268 wrote: i want send the information of textbox to combobox in form2?
What's wrong with using a simple assignment statement?
I must get a clever new signature for 2011.
|
|
|
|
|
You missed the bit where he said "Form1" and "Form2" then?
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
No, I just think questions like this are so basic that questioners should be able to work it out for themselves. After all they are just about moving a field or property from one object to another.
I must get a clever new signature for 2011.
|
|
|
|
|
I know what you mean, but the concept of private vs public does seem to confuse beginners: perhaps it should be introduced earlier in the courses? Along with decent naming, commenting, what an instance is, why not to use static, etc. , etc., etc.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."
|
|
|
|
|
Hi
I'm using the WIA Library 2.0 from the Microsoft website to scan multiple pages. I then convert these scanned images to byte arrays and keep them in a List<byte[]>. My next goal is to combine these images/byte arrays and save it as 1 single file. I would prefer saving it as PDF, but TIFF will also do for multiple pages. I had a look at the Codeproject article on how to use the Ghostscript API, but I`m looking for a simpler way.. preferably without using third-party tools.
Any hints would be appreciated
Thanks
|
|
|
|
|
I came across this the other day while trying to convert Byte Arrays stored in a database back into Tiff files. Create Tiff Image Page By Page[^] Maybe it could help you.
Happy coding.
|
|
|
|
|
|
Great link, thanks.
|
|
|
|
|
Nice Link it help me also
|
|
|
|
|
Would anyone care to point out to me what the main differences between SqlDataReader and SqlDataAdapter are, when to use one and when to use the other?
I've been using SqlDataReader exclusively so far and have not yet even bothered to read what SqlDataAdapter really is about.
|
|
|
|