I'm working on a program, and I'm completely done, except for one small problem. I need to hide frmMain if a function in frmEdit is successful.
However, it seems that frmMain.Hide(); doesnt work, is there a bit of code that could do this?Code:try { FileStream fs = File.Open(Interaction.Command(), FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite); BinaryReader br = new BinaryReader(fs); BinaryWriter bw = new BinaryWriter(fs); //Go to offset br.BaseStream.Position = 444; //Show string strString = br.ReadString(); txtSString.Text = strString; //Close br br.Close(); frmMain.Hide(); }




Reply With Quote