Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

MadCow

@MadCow
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Sleep not working right?
    M MadCow

    Awesome! Now it works the way I want it. Thanks.

    Visual Basic help game-dev question

  • Sleep not working right?
    M MadCow

    I'm having a problem that has me a bit confused. Maybe somebody out there can help me a bit. I am making an adventure type fighting game and am using a listbox to display the combat results. My combat routine is contained within a function that calculates inititive, hitting, damage and whatnot. Right now all the info gets displayed all in one shot. What I want is to add a delay between the initiative and attacking messages. What I've tried is a simple for next loop, but for some reason this has no effect. So I tried the 'System.Threading.Thread.Sleep(2000)'method and this seems to create a pause. However it seems to run at the beginning of the function even though I put it halfway into my function. Why is the .sleep method getting run first? Hopefully this makes sense. thanks.

    Visual Basic help game-dev question

  • How to get rid of mouse right click popup
    M MadCow

    Yes, I'm using Net. I looked up WndProc in the MSDN library, but can't really figure out what to do here. I know that somehow I'm supposed to trap this popup menu so that when it appears, I just disreguard it. Thing is I'm not really sure how to accomplish that. I'll play with it a bit more and see what I can get to happen. Thanks.

    Visual Basic tutorial question

  • How to get rid of mouse right click popup
    M MadCow

    I have a textbox control that gets incremented by one whenever I right click in it. This works fine, however I also get the standard 'edit' popup box as well that appears. Is there a way to cancel this popup box from appearing? Thanks.

    Visual Basic tutorial question

  • Passing variable between parent/child forms
    M MadCow

    Thanks for all of the help. I checked out those articles on Microsoft's site, but as you said, it's a bit beyond me right now. But I have it bookmarked and will go back to it in a few months. I ended up just using the method that dosn't make me feel comfortable. I figure if it works I won't worry about it. The explanation that you gave for a form being closed, but not necessarily non-existant helped. And I will look into casting my reference form object. You had it bang on when you said that I was trying to do stuff with my base class object. Right now I'm just working on other stuff and leaving that form stuff for a while. I need to work on something thats going to work for a change. :-) Thanks again for all the help! Take care. Mooooo. Grrrr.. Mooo..

    Visual Basic help csharp

  • Passing variable between parent/child forms
    M MadCow

    Thanks for the help. I'm pretty new to the oop aspect of VB, but I assume thats what you were describing there as I know that properties in objects have get/set. So after spending some time reading up on objects and browsing your code, I understand whats going on, but it troubles me how I'm able to reference a variable from a form that dosn't exist anymore. It's been closed after all and all variable on that form should be gone. It just feel wrong for me to code like that. Is this how VB.net is normally done? Can't you reference a control (eg. textbox) that exists on form1 from form2 and put it directly into it's text property without having to create storage variables? I can't seem to get it to work. I must be missing something... Randy.

    Visual Basic help csharp

  • Passing variable between parent/child forms
    M MadCow

    ok, I'm completely new to VB and have come up with a problem on something that I think it really easy. What I have are 2 forms, form1 and form2. Form2 gets called from a context popup on a listview on form1. Now, on form2 I have a textbox variable that I want transfered back to the listview on form1 when you click on the OK button on form2. However I am unable to access the listview on form1 from form2. I figure it's a scope issue. I have found a work around on MSDN that works, but to me it seems wrong. Private Sub MenuItem6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem6.Click Dim frmAction As New fclsRoomAction frmAction.ShowDialog() lstRoomAction.Items.Add(frmAction.tbActionDesc.Text) End Sub Here I have called my 2nd form, but I set my listview with the variable AFTER I have closed the form. Just dosn't seem right to me because I have closed the file BEFORE I read my variable. I think this has something to do with the way .net does garbage upkeep. I'm not sure. Like I said I'm new to this. So... Now I ask. Is this the standard way of passing variables between forms or is there a more elegent way of doing it. I was originally hoping to be able to do it on form2 as there I can create 2 buttons, accept and cancel, which determine whether I copy the variable over or not. But as I cannot access my listview on form2 I was unable to do this. Hopefully this makes sense. Thanks. Randy.

    Visual Basic help csharp
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups