|
<br />
Binding binding = new Binding("Text", ds, "MyTable.MyColumn");<br />
Textbox txt = new Textbox();<br />
txt.DataBindings.Add(binding); <br />
only two letters away from being an asset
|
|
|
|
|
Thanx Mark!
That was what I were searching for.
cheers
/Christoffer
|
|
|
|
|
how i can create the setup of my complete project in C# application?
|
|
|
|
|
Add a setup project to your solution
only two letters away from being an asset
|
|
|
|
|
How do I declare a global variable so that I can use it through out my project.
boboza
|
|
|
|
|
public static class Global
{
public string sGlobal;
}
you can access from anywhere in application like,
Global.sGlobal="some text";
-- modified at 7:12 Friday 4th August, 2006
|
|
|
|
|
|
how i can use Barcode in My C# application?.plz someone help me
thanks
|
|
|
|
|
how i can add Event Handlers in MY C# application?
plz help me anybody thanks
|
|
|
|
|
You would do better to read a book on C# before asking such a basic question.
only two letters away from being an asset
|
|
|
|
|
Hi Everyone,
I know there is a pac-man game for mobile phones, does anyone know where I can get a ASP.net version so I can add it to my site? Is it easy to tweak the phone version?
Cheers.. Dan
|
|
|
|
|
Hello...
Does anybody know how to show all groups in Windows 2000 ?
In MSDN I have found, how to show WindowsBuiltInRole, but
when I create my own role (for example : MyGroup), I don't
know how to show it.
Thanks.
|
|
|
|
|
stancrm wrote: I don't
know how to show it.
What do you mean by this? Do you mean showing the members of this group? Have you looked at the System.DirectoryServices namespace?
only two letters away from being an asset
|
|
|
|
|
Hi all,
How do i open a folder which is on my ftp server using the OpenFIleDialog in my application?
I want the user should be able to select a file from the folder which is on my FTP server.
Thanks
Everyone is a genius at least once a year - Pramod
|
|
|
|
|
Simple Answer: You can't
Complex Answer: Unmanaged wizardry included some wierd dance that must take place on a certain day of a certain month of a certain year of a certain millenium.
More Complex Answer: 43
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
i can open the ftp folder by pasting the path of the ftp folder in the Open file dialog
but i want the open file dialog to set that folder as the default folder when that dialog opens
How to do that?
Everyone is a genius at least once a year - Pramod
|
|
|
|
|
Use the InitialDirectory property.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
i tried that but of no use.
THANKS
Everyone is a genius at least once a year - Pramod
|
|
|
|
|
Not sure then, AFAIK the OpenFileDialog is not really suited to FTP applications, it'd probably be easier to write your own dialog rather than deal with the hassles of the OFD.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
i am trying to run this code but it always gives me this error"Object reference not set to instance of an object" and here is my code
try
{
DataAcces datc=new DataAcces();
this.txtID.DataBindings.Add("Text",datc.dsDisplay.Tables["Customers"],"CustomerID");
this.txtName.DataBindings.Add("Text",datc.dsDisplay.Tables["Customer"],"CustomerName");
this.txtSurname.DataBindings.Add("Text",datc.dsDisplay.Tables["Customers"],"CustomerSurname");
this.txtEmail.DataBindings.Add("Text",datc.dsDisplay.Tables["CustomerEmail"],"CustomerEmail");
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
|
|
|
|
|
Have you stepped through in a debugger to see which line is giving you a null reference ? What's DataAcces ? The typo tells me it's not a framework class, so we can't possibly know what it does, how it works, or why you may have this error. The controls could be null. The dsDisplay property could be null. It may not contain a table called 'Customers'. Etc.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
yes i did.it gives me this error on the first line
|
|
|
|
|
IF you mean
DataAcces datc=new DataAcces();
then you need to step into the code, something in the constructor for your class is failing. If this is a data tier, the methods should probably be static, so you don't need to create one every time.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Well, I'd really be thankful to you if you can help me out.
I'm working the Regions which are made up of GraphicsPath objects.
(GraphicPath objects are created with a set of Points).
After creating Regions, I do the complement for two regions.
Now, I want to get the points from the regions.
|
|
|
|
|
Why don't you keep the GraphicsPath objects after creating the Regions from them?
AFAIK you can only get all pixels in the regions:
public void GetPixels()
{
ArrayList pixels = new ArrayList();
for (int y = 0; y < imageSize.Height; y++)
{
for (int x = 0; x < imageSize.Width; x++)
{
if (region.IsVisible(x, y))
{
pixels.Add(new Point(x,y));
}
}
}
}
This article[^] contains a lot of examples about Regions and GraphicPaths, maybe it can help you a little.
|
|
|
|