|
You can also use:
this.Width = 10;
All the best,
Martin
|
|
|
|
|
Hi. New guy here, with a question to y'all.
I'm working on a TAS* movie editor (supporting as many formats as I can get my head around ) and has a bit of a problem with presenting the data. The movie files contain data for as many frames as the movie is long, obviously, and for every frame there is controller data. I need to present it in a way that is easy to edit. The current way to do that is by loading every frame in as a DataRow in a DataTable and binding it to a DataGridView. The row contains a framenumber textbox cell and at least 8 boolean checkbox cells. The problem is that I will need to load a very large number of frames sooner or later (500k+)and for that, this method hogs way too much memory and time.Does anyone know of an alternative to this method that I could feasibly use? Thanks for reading at least.
*TAS: Tool-Assisted Speedrun[^]
-- modified at 8:24 Tuesday 18th July, 2006
|
|
|
|
|
Load it to a database, then you can read just certain records 5 or 10 at a time to be put into the datagridview.
|
|
|
|
|
Thanks for the fast response.
I probably wrote too much to be clear, but the problem is not really displaying but loading. Creating 500k datarows (times X for multiple controllers or other inputs) is one hell of a task. Loading a movie of that size takes ~30 minutes but after that, displaying the data in the dgv is as smooth as anything (unless you try to bind it to another controller/input).
|
|
|
|
|
Where is your data coming from? From a database or are you reading a file, etc.?
Obviously if it coming from a database you can use paging to only get a limited amount of data to display. If its from a file you could set up some sort of file pointer to keep the current location and page through it.
|
|
|
|
|
It's coming from a file. Yeah, that could work for at least some of the formats. *goes off to attempt it* Thanks!
|
|
|
|
|
Hi.i am C# beginner,i have created two folders for my project so other folder is for classes and the other one is for my forms so i am trying to use my classes from another folder but i can't see them.
|
|
|
|
|
You have to devine your namespaces.
using xxx.Yourfoldername;
All the best,
Martin
|
|
|
|
|
What do you mean you can't see them? Make sure of the the namespace for the classes.
|
|
|
|
|
|
When you create a folder and then create a class inside it, Studio appends the folder to the default namespace i.e. Project.Folder . That's why they likely have different namespaces. Change the namespaces or use using statements as mentioned above.
Try code model generation tools at BoneSoft.com.
|
|
|
|
|
I'm really piggybacking on what everyone else has said, but I had this issue when I started coding as well, and a visual image helped me out.
Basically, think of it as a tree. Unless you provide links across the branches(using *), all you can reference is what's above you.
--Project1
--Class1
--Class2
--Project2
--Form1
--Form2
You need to do one of two things:
Edit the namespace for each project (can be done through project->properties). Chaning it this way should recursively edit the namespaces of your files. (It does in VS.Net 2005)
or
add "using Project2;" to Project1's classes, and "using Project1;" to Project2's classes.
|
|
|
|
|
|
I used a progressbar in my form and want to show it's value on a lable by this code :
for(i=0;i<100;i++)
{
for(j=0;j<100;j++)
{
}
progressbar.value = i;
lable.Text = i.tostring()+"%";
}
but lable's text doesn't change in progress and just in the end of loop(i) shows the 100%.
any suggestion? thanks.
erfan
-- modified at 7:42 Tuesday 18th July, 2006
|
|
|
|
|
Try to run your procedure in other thread.
This article will help you to do it.
My english is not so good. Please, correct my errors.
Best regards, Alexey.
|
|
|
|
|
Hi,
just a short hint. Maybe it is not the best possibilty (running an own thread is much better), but try to use
Application.DoEvents()
after you reset the text of the label to its new value.
Regards
Sebastian
|
|
|
|
|
This is due to UI doesn't get time redraw its area
do this
<br />
lable.Text = i.tostring()+"%";<br />
this.Refresh();<br />
|
|
|
|
|
It is enough to refresh the label.
label.Text = i.ToString() + "%";
label.Refresh();
|
|
|
|
|
thanks.
this is working.
erfan
|
|
|
|
|
hi all,
i store date as text format in ms access. (for example: '18.07.2006' is stored in a text field in my database)
but when i want to do some search according to date i want to use records in that field as date ???
i convert data (user entered dates to compare with the dates in my database in order to do some search) entered in textboxes into datetime but dont know how to tell the my program to behave as if the dates (which hold in text fields) in my database also are 'date'.
hope that i am clear enough.
thanks in advance and bye.
|
|
|
|
|
|
Hello there,
I'm looking for a method to convert an object to Guid type and vise versa.
Thanks.
|
|
|
|
|
???
object can be everything. but guid is only a number with a format
"{15B37BBE-CE65-4a4c-83BD-79906975D223}".
What kind of object do you want to convert ?
|
|
|
|
|
hi frnds i need a windows application project on hr/payroll in C#
if any one can help me
|
|
|
|
|