|
How can I load records column-wise instead of row wise in a datagrid from a database or an object.
|
|
|
|
|
Hi
I want to know how can I write a Grid just like Microsoft winform DataGrid
with DataSource and DataMember support. I want to know how binding and painting occures.
thanks
Farshid
|
|
|
|
|
There are actually several articles here in CP that cover this topic specifically. I would suggest here[^].
- Nick Parker My Blog | My Articles
|
|
|
|
|
Very possible, but very difficult.
Its a fun thing to do However, for a company its not worth the effort. U can save some money (time = money) if you buy a finished grid solution.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Is there is any method to join between the progressbar value and any object running like web browser,
Or i must make it manually in the webBrowser.Navigating event
and ifso what is this method
ByMindOnlyYouCanDoIt
|
|
|
|
|
hi everybody ...
is there any way to assign tooltips for combobox items when the it is expanded (dropped down)
thanx
Mr.Cooper
Mr.Cooper
|
|
|
|
|
hi
please tell me how to transfer the data from .dat file to sql database table by implementing dts in c#.net
Thanking you,
Thiru
|
|
|
|
|
|
is there a simple way to set up docking windows in an mdi app? ive looked at the few articles we have here but all of them are different and none really contain step-by-step direction on creating your own. id prefer not to use someone elses code and instead write something on my own is there a simple way to set up docking windows or not and can someone point me to a step by step article on creating them?
|
|
|
|
|
Hi,
I use ProgressBar and Label for Copy files from a directory to different directory to display status of progress. ProgressBar to display progress and Label to display current file number of progress.
But while procedure Copy running then Lable don't update it's values, when procedure Copy finish only then Lable update last it's value.
I used Refresh method of Label but procedure Copy terminated when I move main Windown.
My code:
private void Copy_File()
{
string SourceDir = "C:\\Source", DesDir = "C:\\Destination";
string[] sFileArr = System.IO.Directory.GetFiles(SourceDir);
string sSourceFile, sDesFile;
if (sFileArr.Length>0)
{
this.progressBar.Minimum = 0;
this.progressBar.Maximum = sFileArr.Length;
for(long iFile = 0; iFile < sFileArr.Length; iFile++)
{
sSourceFile = sFileArr[iFile];
sDesFile = DesDir + "\\" + System.IO.Path.GetFileName(sSourceFile);
this.Lable.Text = iFile.ToString();
this.progressBar.Value = iFile;
this.Lable.Refesh();
System.IO.File.Copy(sSourceFile, sDesFile, true);
}
}
}
Thanks,
|
|
|
|
|
Take a look at Application.DoEvents()[^].
You can also try doing what you are doing on a different thread and use Control.Invoke() to call back to the UI thread to do updates.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
I want to get system data and time.Which namespace should I reference? Any example?
Thanks!
|
|
|
|
|
Have you even tried simple intellisense search?
Very simple: DateTime. Specifically System.DateTime. For detailed information visit: MSDN[^]
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Yes,I should have.
Thanks!
momer
|
|
|
|
|
No problem.
I little tip... Install MSDN library on your computer. Its virtually all the information you need at your finger tips. If you can't find it www.google.com is next
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
hi all
can anyone recommand a good C# design patten book?
thx
koo9
|
|
|
|
|
|
how do I create a label (not the text kind, but the kind that is used via "goto") that can be referenced from a different form than the active form.
thanks,
Stephen
|
|
|
|
|
Never use goto. Bad practice. You can find a better way of doing the same thing.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
try a function
and try a dlegate to point to it in the ather form then write in this function the code u want to be excecuted after referencing
ByMindOnlyYouCanDoIt
|
|
|
|
|
I am trying to create a basic image viewer. I've looked all around the web and can't find any code to port to C# for image panning. What is the best way to implement image panning in C#? Would I have to do something like draw/remove x pixels depending on mouse movement or is there already a way to do it? Also, if you have a url with code in another language for image panning, please supply it Thanks.
|
|
|
|
|
You should be able to move the image object, not the actual pixels themselves. If that's all you want to do, then use the SetBounds function.
|
|
|
|
|
I'm a bit of a noob Can you explain how I would use SetBounds to pan images? Thanks for the reply.
|
|
|
|
|
So no one knows how to implement image panning in c#?
|
|
|
|
|
I have downloaded the Visual C# express beta edition and .Net Frame Work and installed on my system. I have also downloaded a sample peer to peer application in order to get the initial start. Unfortunately the downloaded application is not working due to unavailability of some liabraries i.e System.WinForms, System.Net, System.Xml.Serialization, System.Diagnostics , System.Configuration.
Do I miss an assembly reference? I have tried to search these liabraries but not found on my system and also tried to download it from Microsoft.com but could not found any resource.
|
|
|
|