Sure, make a Sub New with parameters in the UC's code:
Code:
Private m_FileName As String
Public Sub New(ByVal fileName As String)
InitializeComponent()
m_FileName = filename
End Sub
Then when you create the UC it will look like this:
Code:
Dim uc As New UserControl1("C:\test.txt")
Or you can just have the m_FileName set to Public and call it when creating it:
Code:
Dim uc As New UserControl1
uc.m_FileName = "C:\test.txt"