Search results for query: *

  1. M

    Trouble Cloning Objects between Projects

    Hi JohnH, Sorry for the delay, I've been travelling and haven't had access. I tried implementing the XML deserializer and it didn't recognize the class this time, but it's ok - for now I only really need it for one type. Assemblies were one of the things I was spending all those hours...
  2. M

    Trouble Cloning Objects between Projects

    Thank you for the example. That's neat how you can open 2 forms at once. It's also doing exactly what I couldn't do. Does it work because it all has the same GUID? I was trying all day to learn about that stuff but it's a completely foreign language to me. The problem with the example is...
  3. M

    Trouble Cloning Objects between Projects

    I figured it out :) My classes did have the Serializable attribute and they worked fine within the project. Once it was saved though if you tried to load it through another project it didn't work. The problem is that I was using the Binary formatter. After hours of messing around with things...
  4. M

    Trouble Cloning Objects between Projects

    Thanks. So I tried making a library dll now. I could access the classes via the old dll as I had hoped in visual studio and it was built just fine, but unfortunately when I try to access the original dll, the error message just changes. Now instead of saying it can't locate the assembly for the...
  5. M

    Trouble Cloning Objects between Projects

    Hi, I have a project that saves a certain class via a binary stream. I am trying to make a DLL with limited functionality that uses the same classes for a separate application. The class is big enough that I prefer not to have to code out the entire thing in text to transfer it to the dll...
  6. M

    change the color of a cell in excel spread sheet

    Excel Color Changes from VB.Net Hi, I have a follow-up question. If I have a text box in a form with a user-defined color and I want to use the exact same color in a cell in Excel - how do I do that. I already have everything set up where I can pick the correct cell and I can change it's...
  7. M

    nibbles clone game

    Nice game :) I actually remember an even more basic version of this game called Snake on a Vector many many years ago. A couple of things: 1) The bottom wall is not showing - I don't know if this is intentional or not. 2) On level 10, hardest I went through a bug and it didn't disappear...
  8. M

    How to choose function implementation at runtime?

    After scouring the internet for another couple of hours I finally found the perfect example of delegates doing what I was asking: http://www.programmersheaven.com/2/Les_VBNET_10_p2 Thanks again for the replies.
  9. M

    How to choose function implementation at runtime?

    Thank you for the replies. The problem with having 1 function is that it requires an if/then or something similar. My primary goal is speed as these functions will be called thousands of times, so if TwoRedBalls is already pointing at the right function then it saves the logical check. As...
  10. M

    How to choose function implementation at runtime?

    How to choose function implementation at runtime? [RESOLVED] I don't know if this is complicated or not, but I've spent a lot of time trying to understand if this is possible or not and I'm stuck. What I want to do is very simple in concept - I want to have 2 functions with the same arguments...
  11. M

    Linking Forms together by buttons

    You're probably getting the null reference because your dim statement is missing a "new". I.e. I think it should be: Dim listForm As new Form That's usually why I get those statements. I just managed to get information from one form to another today (a filename). This is what my code looks...
  12. M

    Simple Generalized File I/O & Deep Copy Cloning of Any Object

    Hello All, I found a couple of examples on the web that really helped me with regards to how to save, load and deep copy clone (i.e. not just copying the reference but the actual data) any object using streams. I've generalized them and wanted to share them in case others find them useful. The...
  13. M

    Program and data size effect on execution speed

    Hello, I am in the process of converting a data and computation intensive program from VBA for Excel to VB.Net. When I wrote the program in VBA, I had severe limitations on the amount of data that could be stored and had to resort to leaving options out of the program or recalculating data...
  14. M

    Reading the value from a cell in Excel File

    It took me a long time to find something that worked for me. I don't know if this will help you read a specific cell because I haven't gotten that far yet, but it will allow you to select/write into a specific cell on any given worksheet in a file: Dim oexcel As New Excel.Application...
  15. M

    Is there a way to stop a tab switch?

    That worked great - thanks! I had seen the validating function but didn't know what it did or how it worked. But it does exactly what I wanted it do and it cut my validation code in half since I don't need 2 functions anymore, and it stops the tab switch :) Thanks again.
  16. M

    test score form

    I'm just learning too and just went through the same problem. I'm using JuggaloBrotha's code to make sure the entry is definitely a positive integer. But in order to check that the number is between 0 and 100, you can either make sure it stays that way while the person is typing, or you can be...
  17. M

    "Object reference not set to an instance of an object."

    Ok so after only a million searches I finally stumbled upon the correct key words and found the following page on the MSFT site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/controlarrays.asp And it explained about the function: DirectCast(object...
  18. M

    "Object reference not set to an instance of an object."

    I went back and looked at my code for my checkbox array as well because it was working as I wanted and realized it never tried to address my "MyCheckboxArrayHandler.Checked" status which would be the equivalent of the "MyTextArrayHandler.Text" information and so I added a line to test it out and...
  19. M

    "Object reference not set to an instance of an object."

    Ok - I thought this was resolved and it's not - sorry again for the confusion. It's capturing the .Leave and .KeyPress functions ok and allowing the message box to work. When I try the following code, I get the error again: Dim temp As String Dim MyTextArray(9) Friend...
  20. M

    "Object reference not set to an instance of an object."

    Hello and thank you very much for the responses so far. I made a mistake in my example and I shuldn't have had the statement: ArrayHandler.Text = "Hello" and just put a message box writing "Hello" since that really wasn't the main issue. Even with a message box that doesn't change the text...
Back
Top