Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Clan CDH on November 19, 2006, 10:28 PM

Title: Attributes
Post by: Clan CDH on November 19, 2006, 10:28 PM
I would like to make it so that while the program is in use that the file will be hidden(an attribute change), and that when it is not in use to have it unhide it self.  How would I go about doing this change?
Title: Re: Attributes
Post by: Clan CDH on November 21, 2006, 09:41 PM
come on, someone must know!
Title: Re: Attributes
Post by: FrostWraith on November 21, 2006, 09:58 PM
Me.Hide
Me.Show
Title: Re: Attributes
Post by: l2k-Shadow on November 21, 2006, 11:31 PM
Quote from: FrostWraith on November 21, 2006, 09:58 PM
Me.Hide
Me.Show

I think he was looking for this:

Public Sub HideFile(ByVal FilePath As String)
     Call SetAttr(FilePath, vbHidden)
End Sub

Public Sub UnhideFile(ByVal FilePath As String)
     Call SetAttr(FilePath, vbNormal)
End Sub
Title: Re: Attributes
Post by: Clan CDH on November 24, 2006, 08:56 PM
Quote from: FrostWraith on November 21, 2006, 09:58 PM
Me.Hide
Me.Show

God you are so newb.

Quote
I think he was looking for this:

Public Sub HideFile(ByVal FilePath As String)
     Call SetAttr(FilePath, vbHidden)
End Sub

Public Sub UnhideFile(ByVal FilePath As String)
     Call SetAttr(FilePath, vbNormal)
End Sub


Thanks again shadow, it worked perfectly.
Title: Re: Attributes
Post by: FrostWraith on November 24, 2006, 11:48 PM
Quote
God you are so newb.

Your the one using VB
Title: Re: Attributes
Post by: rabbit on November 25, 2006, 05:50 AM
Quote from: FrostWraith on November 24, 2006, 11:48 PM
Quote
God you are so newb.

Your the one using VB

You're the one giving VB advice that doesn't start and end with "Don't use VB".
Title: Re: Attributes
Post by: Clan CDH on November 25, 2006, 12:49 PM
Quote from: FrostWraith on November 24, 2006, 11:48 PM
Quote
God you are so newb.

Your the one using VB


Hehe, that was newbish advice, and VB6 wasn't my first language, I was using it because it's "Basic" and quick to code in.
Title: Re: Attributes
Post by: Grok on November 26, 2006, 05:05 PM
Quote from: FrostWraith on November 24, 2006, 11:48 PM
Quote
God you are so newb.

Your the one using VB


I use VB.  This is the VB forum.  If you're not here to help someone write better VB, don't post at all.
Title: Re: Attributes
Post by: FrostWraith on November 26, 2006, 09:37 PM
Honestly, I write mostly in VB. He just tried to bash me for providing information that he didn't need. I didn't start the flaming.  I guess I did make a fairly hypocritical comment.
Title: Re: Attributes
Post by: Grok on November 27, 2006, 02:13 AM
OK.  Suppose I might start pruning the off-topic replies in these posts someday.