|
Okay, I kind of have it working. When I added a second call to the method from the main thread it suddenly started working for all threads. I still want to understand what was happening though, so if anyone has any ideas please let me know.
|
|
|
|
|
you may try using ListBox and insert your message at 0 index
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Hi! I am developing a little program to further my understanding of c# and have run into a problem. I am developing in visual 2005. I have built a GUI and have a small png image I am using in an image box. All of the code necessary for the GUI side was generated by visual. When I tried to compile it with the command line I got an error that said the type or namespace 'properties' does not exist in the namespace 'project'. The line of code it seems to not like is
this.pictureBox1.Image = global::project.Properties.Resources.imagename;
I would assume this(Properties) is some sort of reference for Visual to easily find the png file imagename. If I want to command line compile, what do I need to do? Thanks for the help!
|
|
|
|
|
I downloaded the DirectX 9.0c SDK (C#) from the Microsoft site and then installed it.
After that I wanted to compile a sample C# source and discovered that the References to DirectX were not available!
How do I get the DirectX assemblies on my PC so that I can use DirectX namespace(s)?
Do I need to download and install some more software for this? What do I need and where do I get it from?
Please some advice.
Thank you, Ranger.
|
|
|
|
|
Make sure you actually add a reference to the DirectX libraries in the Visual Studio Project (assuming, of cause, you're using VS). It isn't enough to just install the libraries.
|
|
|
|
|
It turned out I had only installed the DirectX SDK and not the runtime library.
It seems that new books about DirectX (like version 10) no longer use the C# programming language but use the C++ language instead.
From what I have read about DirectX I figure it is much more complicated than OpenGL, so I will stick to the latter...
Ranger.
|
|
|
|
|
hi. I am developing an IS and I was wondering on how I can load the heavy amount of data in a more efficient way. I was asked to also integrate an algorithm but I don't know where to put it and what to use. The program does much more in SQL queries than C# algorithmic codes. If you know what I mean. To explain it further, if I have about 1 million data entries in my database. How can I possibly load them in a jiffy?
|
|
|
|
|
harcaype wrote: if I have about 1 million data entries in my database. How can I possibly load them in a jiffy?
Why would you? I doubt you need them all at once.
|
|
|
|
|
i need them because new entries add up about every second. So when new entries are added up, I have to update/refresh it. And refreshing them again takes awhile to load. Also, I have a quick search option in the program, so if for example I will incorporate an algorithm for that search. Do you know the best to use? Because instead of searching all possibilities, it would just go straight to the search. I shouldn't be placing an algorithm actually, but I was required to do so.
|
|
|
|
|
harcaype wrote: So when new entries are added up, I have to update/refresh it.
There is no way you are displaying over a million rows on the screen simultaneously. At best you are displaying the aggregate result of those rows. In that case you should consider doing whatever calculation you are doing in the database itself.
If you do have a million rows available to your user then you might want to consider implementing some sort of paging where the system only gets the rows that are needed for the current display.
harcaype wrote: Also, I have a quick search option in the program, so if for example I will incorporate an algorithm for that search.
If you are doing this for a million rows, again a paging option is probably the best. You might want to have some sort of predictive fetch if you don't want the application to pause when scrolling. i.e. When you have scrolled two thirds the way through the current list, perform an asynchronous database query to fetch the next page worth of data. By the time the user has scrolled there it should be available.
|
|
|
|
|
i agree with Colin,
let database server handle it,
but if you insist to use custom retrieval system you must develop data retrieval management component that support memory table (to store your data) in your application and your database server needs to support events on insert, update and delete data and catch that events to your application, this means you must manage some delta handler to synchronize data between your application and database server
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Mbah Dhaim wrote: but if you insist to use custom retrieval system
Why are they insisting on it? What is their justification? What benefits does it bring? What is the impact on other applications in the system. (i.e. If your application is taking massive quantities of memory, what's left for other things)
|
|
|
|
|
i agree with you, to much things to manage
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
i see. thanks guys. sigh.. sounds complicated. But I'll try to figure it out. Thanks!
|
|
|
|
|
harcaype wrote: i need them because new entries add up about every second. So when new entries are added up, I have to update/refresh it. And refreshing them again takes awhile to load.
So why keep the data in two places? Just keep it in the database, so that you only have one place where you need to update it.
harcaype wrote: Also, I have a quick search option in the program, so if for example I will incorporate an algorithm for that search. Do you know the best to use?
Use the database. Searching the data is exactly what it's built for.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all!
I am facing problems while writting an Asp.net application in VS2003. Actually I have four text boxes on a web page everyone has its own requiredfiled validator and having two buttons on the same web form. Now, Whenever, I will hit either button the both validators will validate and the IsValid returns false.
I want to validate only two validators by pressing buttons.
Example: It will work like this, when I will press Button1 then only first two text boxes validate and other remains not validate and vis-a-versa.
The following is snippet of my web page:
<asp:TextBox ID="text1" runat="server" />
<asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="text1" ErrorMessage="validate" />
<asp:TextBox ID="text2" runat="server" />
<asp:RequiredFieldValidator ID="rfv2" runat="server" ControlToValidate="text2" ErrorMessage="validate" />
<asp:TextBox ID="text3" runat="server" />
<asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="text3" ErrorMessage="validate" />
<asp:Button id="button1" runat="server" OnClick="button1_Click" />
<asp:Button id="button2" runat="server" OnClick="button2_Click" />
Gaurav Arora
|
|
|
|
|
Probably not much help but .NET 2.0 has the ValidationGroup property which allows you to do what you want. I think you have to resort to CustomValidators to get what you want but it's been a long time since I did anything .NET 1.1.
|
|
|
|
|
Thanks for your attempt, I knew how to handle it in .NET2.0 but I want to do the same in .NET1.1, the requirement demanded so. I have to use Requirefieldvalidator not Custo,Validator.
Thanks
|
|
|
|
|
I'm making a Music Library and I'm using the DataGridView class to hold the songs. Each song used TagLib# to change it's attributes (Title, Artist, etc). Each song (the class), extends DataGridViewRow. The song class has a DataGridViewTextBoxCell for the main attributes. I want it to when the value of the text box is changes, an event is fired and the attribute is updated. But I can find the proper event in the DataGridViewTextBoxCell or DataGridViewRow instances. I found that DataGridViewRow has a private method titled "RaiseCellValueChanged", but I can't find the associated event.
BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.
|
|
|
|
|
Jordanwb wrote: BTW this forum doesn't seem to like Linux. I can't make threads on my Kubuntu Laptop. After I click "Post Message" nothing happens and Firefox times out.
Strange. I sometimes post for *nix with no problem at all. Used both Firefox and Konqueror...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hmm strange too because I had no problem posting this in Kubuntu.
|
|
|
|
|
Hi,
there is a DataGridView.CellValueChanged event. Doesn't that suit your purposes?
|
|
|
|
|
Yes it does. I never checked there because I was expecting the event to exist in the Row or the Cell.
|
|
|
|
|
Hello C# people! =)
i have a question for this simple piece of code:
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Data;<br />
using System.Drawing;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
<br />
private void helpToolStripMenuItem_Click(object sender, EventArgs e)<br />
{<br />
MessageBox.Show("Hello, world.");<br />
}<br />
Now is my question:
I cant get the Pop up to work... =)
|
|
|
|
|
Hi,
make sure the event is wired to the handler you wrote.
Either look using Designer, or inspect the Designer-generated code (it would be in some
xxx.designer.cs file within your project).
|
|
|
|