Search results

  1. G

    Return a copy of an array instead of a pointer for it's elements

    Well what you said is actually correct. I should use more than one instance of it then. There is only one thing, I'm connecting to the database in each instance so as more instances as lower the performance will be. Also, more than one instance managing the same table may cause some problems...
  2. G

    Return a copy of an array instead of a pointer for it's elements

    I'm implementing in a class, methods to manage a simple database. This class will perform all the tasks related with database and will return results in simple structures to the other classes. Remark: My Class was designed to deal with a single Table at once, so it is using internal variables to...
  3. G

    Question How to share an instance of a class to all the application ?

    Hmm seems good.. But now I want to add a serial port handler inside this class and an event. I will create a New serial port and then I will put inside this class the event handler for incoming data. This event handler will rise another event like DataReceived() that will be declared inside...
  4. G

    Question How to share an instance of a class to all the application ?

    How to share an instance of a class to all the application in VB.NET ? Probably you are going to answer: "Use Shared members" Ok, but I have one particular problem: I have an application that has multiple forms. The application is connected through the serial port to a hardware. The...
  5. G

    Question keep database synchronized when I have multiple clients ?

    :kaioken: They are hands not rabbits... :homer:
  6. G

    Question keep database synchronized when I have multiple clients ?

    Well, it seems that the best approach is to use date and time in records and maybe also a Timer to check them and eventually inform user about changes. Of course that this is my opinion for my application... But it seems that we have not too much options also so the Date and Time in record...
  7. G

    Question keep database synchronized when I have multiple clients ?

    ok, my bad... I understood now. Just two more questions... before looking at internet examples... Imagine that I hired you to develop a very simple database with one table but a lot of users, what strategy you would take to treat the collisions or avoid them, and also keep the system updated...
  8. G

    Question keep database synchronized when I have multiple clients ?

    Thanks jmcilhinney for your clear explanation. I just have one doubt. The "Pessimistic concurrency" is the default according to your explanation, but I can't see it happening in my code. When I update my local dataset it should be locked for other users right ? I understood that when I start...
  9. G

    Question keep database synchronized when I have multiple clients ?

    I'm a beginner in databases, and I'm developing a simple application. I'm using SQL Server in my shared server to hold all the database. Database is accessed by client app using an internet connection. My client application is for Windows Forms developed in VB.NET using ADO.NET. I have...
  10. G

    Question Function to load and dispose forms

    Yes, that should work. But I also would like to know if there is another way to avoid this code. Since every form is a class it should be possible to pass the class name as a parameter of function. The enum makes you need to add every form. But I'm thinking in a "smarter" way than enum... I will...
  11. G

    Question Function to load and dispose forms

    In .NET CF there is no MDI form. Tabs are not ideal for that kind of application. Some forms have no relation with others so arranging in tabs would be weird... Also they are already designed. Must have some way to manage them with a sub in Main.vb. I'm just with some problems to pass the right...
  12. G

    Question Function to load and dispose forms

    Well, my idea is not showDialog and return to the same form. Think this way: I have 40 forms in my application. For example, I will start application then load a form called frmMenu. This form can call frmSettings, frmHelp or frmNew. All of those other forms can create another forms too. I...
  13. G

    Question Function to load and dispose forms

    I'm using .NET compact framework and I want to do a function or sub to manage the forms of my application. The idea is to replace, for example, the code below: Inside FormA: FormA.Enabled = False frmWait.show() frmWait.TopMost = True Dim f as new FormB f.show() f.TopMost = True...
  14. G

    Help with drawing a simple street for a car game

    Can you send me your code for me take a look ? Can you send me your code for me take a look ? Thank you.
  15. G

    Help with drawing a simple street for a car game

    I tried that, but because the scaleTransform I think that the line became deformated. I need to use another thing, not the Pen to do that
  16. G

    Help with drawing a simple street for a car game

    Hi, I'm doing an app like a car game. I need to paint over a vector of points connected forming a line. The paint is like a street. Here is an example: I have a red trace that is the sight for drawing a street on it. The origin of this red line is from GPS coordenates. Here is a picture of...
Top Bottom