I am trying to reference a DataTable and I do not know how to achieve this. Please help and thank you very much.
In my code, I would like to assign dtTmp to dtTarget(i) through the reference dtCurr. Is it possible to achieve that in VB.NET?
Private dtA, dtB As DataTable
Dim dtTarget() As DataTable = {Me.dtA, Me.dtB}
For i As Integer ...
I working on a distributed mediaplayer that uses the windows media player component.
Now the customer asks me if its possible to have their logo overlayed on the media played instead of them having to render every movie with the logotype.
I have google it and it seems like I can use a directshow filter to do this, but I havent found any...
My VB.NET application compiles, installs and works fine on the development PC.
However, when I take the install package elsewhere, it installs ok but crashes before any code is executed.
The error is " has encountered a problem and needs to close..."
I have removed all references to external files e.g. icon files etc.
I have only one...
Hello!
i have a log file which contains hundreds/thousands of seperate XML messages and need to find a way to extract a complete xml message depending on the parameters given (values of nodes).
My biggest problem is that even though i program a fair amount i have had very little contact with XML or the XML libraries of the languages i ...
I'm not sure if this is even possible but here goes:
Currently I have a crystal report with a few header fields and detail lines ( of course)
I pass a dataset containing a header datatable and a detail datatable. Everything works as expected... as long as I have only 1 record in the header table. What I would like to be able to do is so...
I'm trying to write some documentation for a webservice that has been provided by one of our vendors for an application we're integrating. A bunch of the interface is custom objects defined in the web service itself. The vendor has put up significant resistance to providing any documentation for this application and so I've taken it up...
Hi Everyone,
I'm trying to return a record from LINQ2SQL as a JsonResult to update my view page via jquery ajax. I'll post my code below. When I follow it through the debugger my function in the controller is being called and it is returning a record. I think there might be something wrong with my Jquery to retrieve the JSONResult. ...
Is there any way in VB.NET to remove all of the whitespaces between tags in HTML?
Say, I've got this:
<tr>
<td>
The string I've built is an entire HTML document, and it counts everything before those tags as legitimate space, so I need to trim it out. Is there a reg ex or function out there I could use to do this?
Thanks
...
I have a script that reads a form and puts some info into a cookie:
Dim oCookie as HttpCookie
oCookie = New HttpCookie("authInfo")
Select Case oResult
Case "No ClientID", "No Password", "No PracType", "No Encrypt", "CRC Mismatch"
oCookie.Values.Add("LoggedIn", "False")
oCookie.Values.Add("OnSupport", "False")
Case "Client Can Up...
I've a class that has a list of IDs with a function for adding new IDs from a list of objects.
I've got this resolved, but I'm sure this can be done with much less code.
Public Class Page
Private _IdList As List(Of Integer)
Private _HasNewItems As Boolean = False
Public Sub AddItems(ByVal Items As List(Of Item))
Dim itemsI...
Hi
I am using modal window for my VB.NET program and i am trying to open this child modal window from another window, afte i close the child modal window i am trying to refresh the parent but i am getting retry/cancel popup, i tried a lot of things to avoid but i can't get rid of this popup :-( is there any way i can avoid this popup? I ...
Code snippet:
Dim target As Object
' target gets properly set to something of the desired type
Dim field As FieldInfo = target.GetType.GetField("fieldName", _
BindingFlags.Instance Or BindingFlags.Public Or BindingFlags.NonPublic)
field.SetValue(target,newValue)
This snippet works perfectly IF target is set to an instance of a CLASS...
I have to perform the following SQL query:
select answer_nbr, count(distinct user_nbr)
from tpoll_answer
where poll_nbr = 16
group by answer_nbr
The LINQ to SQL query
from a in tpoll_answer
where a.poll_nbr = 16 select a.answer_nbr, a.user_nbr distinct
maps to the following SQL query:
select distinct answer_nbr, distinct user_n...
I need an accurate timer to interface a Windows application to a piece of lab equipment.
I used System.Timers.Timer() to create a timer that ticks every 10 msec, but this clock runs slow. For example 1000 ticks with an interval of 10 msec should take 10 wall-clock seconds, but it actually takes more like 20 wall-clock sec (on my PC). ...
Is there a way to implement a new column with a header in a checklistbox in vb.net? I've done a bit of searching, but didn't find much on the topic. Should I just abandon the quest and use a listview or some other control?
Thanks for any/all help!
JFV
...
i declared a global variable button:
Dim button1 As New Button()
Now, i dont know how to add a click event in this button since it is a variable. Do you have any idea how do i do it?
...
How to create a copy of a file having length more than 260 characters including file name using vb.net
When we are trying to create a copy using File.Copy method it throws exception as follows:
"The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name mu...
Hi. I have the following code:
Imports System.IO
Public Class Blah
Public Sub New()
InitializeComponent()
Dim watcher As New FileSystemWatcher("C:\")
watcher.EnableRaisingEvents = True
AddHandler watcher.Changed, AddressOf watcher_Changed
End Sub
Private Sub watcher_Changed(ByVal sender...
You can change the connection string at run-time like this. You make the connection string setting available for writing as a separate property inside the MySettings class:
Partial Friend NotInheritable Class MySettings
Public WriteOnly Property RunTimeConnectionString()
Set(ByVal value)
My.Settings("MyConnectionString") = value
...
Hello,
For our VB.NET websites we use SVN for Source Control and CruiseControl.NET for continuous integration.
To use the SVN build number in the compilation by CruiseControl.NET we need to use Web Deployment Projects. We then replace in the configuration file the Version field with this variable from SVN Labeller
$(CCNetLabel)
Th...