Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • Calling a .NET Component from a COM Component

    csharp html com help
    2
    0 Votes
    2 Posts
    0 Views
    M
    First thing that comes to mind is did you add the control via code? controls.add(classname) ?
  • HTTP URL get

    2
    0 Votes
    2 Posts
    0 Views
    T
    System.Uri has a lot of things that can be used to disect a given http request. But a proxy itself is supposed to be somewhat transparent. A request to http://www.codeproject.com should respond the same by direct connect or proxy. The only difference is that the proxy is making the request on your behalf. I guess I don't see way to answer your question. You are asking what is the http that comes out of the proxy? You can always watch the packets come out of the proxy. Or you can lookup on wikipedia the SOCKS 4 and 5 behavior. There is no code per se because there is nothing on your internal machine can monitor about the other machine's external interface.
  • 0 Votes
    2 Posts
    0 Views
    J
    you need to put mdac_typ.exe in C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Redist>
  • Stupid question about Automation

    c++ question wpf wcf com
    5
    0 Votes
    5 Posts
    0 Views
    A
    Vi2 wrote: Really? ' Client's code - VB6: Dim o As Cx, o2 As Object Dim p1 As Long, p2 As Long ... Set o = New Cx Set o2 = o ... p1 = 0: p2 = 0 o.Encoder p1, p2 ' Call by vtable => early binding Vi2 wrote: STDMETHODIMP Cx::Encoder(/*[out]*/ long * Result, /*[out]*/ long * LastError) { *Result = 22; *LastError = 222; return S_OK; } I don't think a call to Encoder from a VB6 client will work with the above Encoder definition. At least when I attempted to call Encoder from a VB client using the above Encoder definition in a C++ COM object the program crashed. Is this normal behavior? Or, am I overlooking something? Thanks,
  • Excel, Pick from Drop down list and VB

    database tutorial
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • dataadapter and dataset with multiple tables

    question help announcement
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    H
    set RecordSource to the table or query you need then set datagrids data source property to adodc1
  • handle open documents

    tutorial csharp help
    3
    0 Votes
    3 Posts
    0 Views
    A
    IC, Thank you. I knew how windows handled opening documents but I had no idea how to catch that in my aplication. So now I know where to start (read up on accepting command line options/paramiters) Thank you very much. This was what I needed to know++. 2 U.S. coins equal 30 cents and one is NOT a nickle. Hmm..
  • icons, opening files, loading with forms

    tutorial csharp html help
    2
    0 Votes
    2 Posts
    0 Views
    M
    Put aan imagelist control on your form and put the images inside the imagelist. You can use png, gif or jpeg. One thing the image size is limited so don't make the images too big.
  • Help Required

    help
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • Which control should I use. Part2?

    json question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Which control should I use?

    question
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • Date format

    question help sales
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • COM+ Catalog Infomation

    csharp com help career
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • VB Preprocessor???

    question com
    2
    0 Votes
    2 Posts
    0 Views
    I
    Sort of. VB6 has #Const, which allows you do define a constant variant, which can then be used in a #if..then..#else construct. But it isn't as powerful as the equivalent features in C See here[^] Ian Darling "The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski
  • Little VB .NET Syntax Problem!!

    csharp help tutorial
    6
    0 Votes
    6 Posts
    0 Views
    L
    Add a "Default" to that property and then you can call it as myClass(2) = "SomeMessage". Default Public Property Notes(ByVal index As Integer) As String Get Return m_Notes(index) End Get Set(ByVal Value As String) m_Notes(index) = Value End Set End Property
  • Treeview and regex

    csharp data-structures regex question
    2
    0 Votes
    2 Posts
    0 Views
    L
    In a nutshell ... Private Sub btnMatch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMatch.Click targetTree.Nodes.Clear() Dim Expression As New Regex(txtExpression.Text) Dim Matches As MatchCollection For Each node As TreeNode In sourceTree.Nodes If Expression.IsMatch(node.FullPath) Then targetTree.Nodes.Add(node.Clone) End If CheckNodes(Expression, node, targetTree) Next End Sub Private Sub CheckNodes(ByVal expression As Regex, ByVal node As TreeNode, ByVal target As TreeView) For Each child As TreeNode In node.Nodes If expression.IsMatch(child.FullPath) Then NodeParent(target, node).Nodes.Add(child.Clone) End If CheckNodes(expression, child, target) Next End Sub Private Function NodeParent(ByVal target As TreeView, ByVal node As TreeNode) As TreeNode If node.Parent Is Nothing Then For Each Parent As TreeNode In target.Nodes If Parent.Text = node.Text Then Return Parent Next Return target.Nodes.Add(node.Text) End If Return NodeParent(target, node.Parent).Nodes.Add(node.Text) End Function
  • Wifi and VB

    sysadmin help
    2
    0 Votes
    2 Posts
    0 Views
    D
    Hi, It takes some lower level interaction with the cards devices drivers. Here are a couple of links to look at: http://www.stumbler.net/ http://ramp.ucsd.edu/pawn/wrapi/ RageInTheMachine9532
  • DoEvents

    csharp com debugging help
    2
    0 Votes
    2 Posts
    0 Views
    L
    Not sure why your application object isn't instantiated, but you could also try the tell the thread to whait a brief moment. System.Threading.Thread.CurrentThread.Sleep(500)