|
hi guys
i m to read these file with out 3rd party tool
.
|
|
|
|
|
Have you tried the office interop assemblies?
|
|
|
|
|
Hello everyone,
i apologize if this a dumb question, but it bothers me since days and as i am a c-sharp newbie i have to ask here
Problem : i want to bind a variable in a class to a form control element.
Example:
namespace testApp
{
class ContainerValues
{
public static ContainerValues gContainerValues = new ContainerValues();
private bool _test1 = false;
private int _test2 = 0;
public bool Test1
{
get { return _test1; }
set { _test1 = value; }
}
public int Test2
{
get { return _test1; }
set { _test1 = value; }
}
}
public partial class ContainerForm : UserControl
{
public ContainerForm()
{
InitializeComponent();
}
}
public partial class ContainerForm
{
private System.Windows.Forms.CheckBox FormTest1;
private System.Windows.Forms.ComboBox FormTest2;
}
What i need now is that the displayed checkbox of the Container Form is bound to the test1 Property of the ContainerValues-Class Instance gContainerValues as well as the selected entry in the combobox FormTest2 is bound to the gContainerValues-Test2 Property. So changing the form value changes the gContainerValues-Value.
Thanks in Advance, and best regards,
AmorphisOne
-- modified at 8:07 Wednesday 7th February, 2007
|
|
|
|
|
Add a binding through the DataBindings property of the appropriate controls. Read more here.[^]
Marc
Thyme In The CountryPeople are just notoriously impossible. --DavidCrow There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer People who say that they will refactor their code later to make it "good" don't understand refactoring, nor the art and craft of programming. -- Josh Smith
|
|
|
|
|
Hello,
I have created a simple windows application in c#.net.
And i have and desktop switching application through which we can
switch from one desktop to other.
Now, my question is that, i want the "single instance" of my windows
application to be run on different desktops and can be seen on all dekstops
when switching is done.
How to do that.
Thanks in advance.
Rahul Kulkarni
|
|
|
|
|
Can some one provide me a demo code using this class.
|
|
|
|
|
The MSDN topic provides an example.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Yes. But it couldn't serve my need. My need is, i have created my own application, also it contains my own extension. When i click on files that are created with my application, it should open its contents in my application. This needs to be registerd in registry. So with the help of this class, I hope it can be achieved. Can u pls give a code to achieve this.?
|
|
|
|
|
GunaChinna wrote: Yes. But it couldn't serve my need.
So why didn't you tell us your need in the first place. We are no mind readers.
Regarding your actual problem. Search the articles for "file extension" or something similar and you should get what you need.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Yaa. Sure. Thanks a lot for ur time and patience.
|
|
|
|
|
I have a XML file and I´d like to show only some collums at DataGrid.
I tryed it:
dataGrid1.DataSource = ds.Tables["Aluno"].Columns["nome"];
but it doesn´t work!!
Please help-me!!!
|
|
|
|
|
ur question is not very clear ... first describe it..
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
I want to show only some collumns from a XML file.
I have 3 collums: IDName - Name - Age
I want that the datagrid show only Name
I tried:
dataGrid1.DataSource = ds.Tables[1].Columns["Name"];
but it doesn´t work... can you help me?
ThankS!
|
|
|
|
|
Try to use the index value instead?
Like this:
dataGrid1.DataSource = ds.Tables[0].Columns[indexofcolumn];
|
|
|
|
|
I already tried it.. but, doens´t work as well..
thanks!
|
|
|
|
|
My task is to fill a DataSet from a data source and update another data source
in C#.
For example I have two databases in SQL Server (i.e. db1 and db2).
I have table named ProdMkt_Contrib_Link in db1 with following columns:
ProdMkt_Contrib_Link
--------------------
ProdMktContributorID (PK)
ProductMarketID
Priority
Inactive
Contrib_Type_Override
ProdMkt_Contrib_Link_ID
The above columns data should be mapped/sync to the table named
ProdMktContribLink in db2:
ProdMktContribLink
------------------
ProdMktContributorID (PK)
ProductMarketID
Priority
InactiveFG
ContribTypeOverRide
AcumenProdMktContribLinkID
Note: The table name and few column name are different
Suppose few records are added and few are updated in the
db1.ProdMkt_Contrib_Link table.
I have filled the typed DataSet (DS1) with db1.ProdMkt_Contrib_Link (this
contains only added and updated records) ans also filled the another DataSet
(DS2) with db2.ProdMktContribLink (this contains all records).
Now I want that DS1 should be sync with the DS2. That is, the added records
should be added to the DS2 table rows and also updated records should be updated
to the DS2 table rows.
How can I achieve this in c#. Please suggest any good design or sample code.
Thanks,
Kamran
|
|
|
|
|
Will this get value dashboardid from table into variable 'str'?
int str = "select dashboardid from dashboardlogin where userid=101";
dashboardid is 'int' type in database.
but i have error if i use this:
Cannot implicitly convert type 'string' to 'int'.
do i need to add any other code also for getting its data into variable 'str'?
plz reply
thank you.
nekshan.
|
|
|
|
|
hey this is wrong , either u write a stored procedured which will return a parameters from stored procedures..
or execute the query.
get the result set in to datatable and get ur value from there.
Ravi Kant Srivastava
(System Analyst)
HandsOn Technology & Engineering
Gurgaon
(India)
e-mail:ravikant@hte.co.in
|
|
|
|
|
Your statement getsthe query string into the string variable str . The compiler error occurs, because str is declared as an int .
If you want to use LINQ to query the datasource, try this article:
http://www.codeproject.com/useritems/SudokuSolver.asp[^]
Otherwise you have to connect to the database and query it with an SqlCommand :
<br />
using (SqlCommand selectCommand = new SqlCommand("select dashboardid from dashboardlogin where userid=101", connection))<br />
{<br />
object objResult = selectCommand.ExecuteScalar();<br />
if (objResult != null)<br />
{<br />
int str = (int)objResult;<br />
}<br />
}<br />
____________________________________
There is no proof for this sentence.
|
|
|
|
|
You got it all wrong.
Please read a database tutorial.
Just a hint. Someone must execute the desired sql command , don't you think?
Its just as you have written
int a="Hello World";
the you just happen to have for text an a sql command.
Read the db tutorial.
|
|
|
|
|
How to do the implementation of interfaces (written using .Net) between front and Back Office applications.
Kindly assit me ASAP as i have the Client Interview On this.
Thanks and Regards
Naveen Kumar S
Naveen
|
|
|
|
|
use implements keyword and mention the interface name you name want to implement for that class
class a implements interface a, interface b
...
...
*make sure all the methods of the implemented interfaces have been defined
Gautham
|
|
|
|
|
class a : b { ... }
"implements" is Java !
Luc Pattyn
|
|
|
|
|
Hi Friend!
From table 'dashboardlogin', i want an int type value : 'dashboardid' of a particlar row(suppose where userid =101), into a variable suppose 'str', so that i can display that variable in a function :
funEntrylogin(str, tb_id.Text, tb_pswd.Text, DateTime.Now, DateTime.Now);
Is this possible?
Can some1 plz help on it.
Thank you.
nekshan.
|
|
|
|
|
select @str=dashboardid from dashboardlogin where userid=101
Gautham
|
|
|
|