I have this code for a Windows service I am writing in .NET....However the TICK function never gets executed regardless of what interval I put in the tmrRun properties. What am I missing? I am sure its something stupid I am not seeing.
Thank You
Imports System.IO
Public Class HealthMonitor
Protected Overrides Sub OnStart(B...
I'm working a backup program and to determine the destination location, I give them the choice to type it in, or browse to it. Lately, I've been getting this error after they browse to it using the FolderBrowserDialog to set the location and the containing form is closed:
Managed Debugging Assistant 'DisconnectedContext' has detected a...
i am trying to retain the value of a variable from a previous page. i believe this is the C# way to do this, but i would like the vb.net way can someone please help:
TextBox myTxt = (TextBox)Page.PreviousPage.FindControl("previousPageTextBox");
currentPageTextBox.text = myTxt.Text;
i would like to know how to code this in vb.net
i tri...
i am trying to load this xml file into the dropdownlist:
http://sites.google.com/site/shadchanproject/Home/lots1.xml
i want to only load the a7190, a7193 etc... (there are only three of them i believe)
please help!
i am doing this in asp.net
...
How do I fix this error in Visual Studio?
"The project file cannot be loaded. The application for project ... is not installed"
I have copied a whole project onto my PC, both into My Documents/Visual Studio and into inetpub/wwwroot, but when I try to open the project in Visual Studio, it tries to open just 1 file .vssproj and gives me ...
Hi, I am generating the Table at runtime dynamically ,how can i add the space between the two rows
...
I'm attempting to bind a combo to a collection of objects:
Dim t As New TradeOrderStatus()
Dim ts As List(Of TradeOrderStatus) = t.GetStatuses
With Me.cboTradeStatus
.DataSource = ts
.SelectedItem = Nothing
End With
This works fine and I see the list of items in the combo. However when I try to set the...
When I'm using VB.NET to use subsonic, It seems to have problem marking records as Old and Clean. Whenever I query using ExecuteSingle or ExecuteTypedList, i need to manually MarkClean and MarkOld, else whenever I save it will save as a new record.
Am I the only one facing this problem ? I'm using SubSonic 2.2 btw.
...
Trying to mimic the way the IPhone flips the album art to the songs list. I want to pass in two generic objects and have the storyboard flip them. I can get the slide effect, but have not figured out how to scale the object so it appears to be rotating and not just sliding.
Thanks,
Dave
...
I'm attempting to build a function that will return a regex that is dynamically created. The regex to create will be a range check between two numbers. So far I've got something similar to this (not finished as yet).
Is this approach valid, or is there an easier way that I'm overlooking?
Public Shared Function Range(ByVal Minimum As In...
Hi,
Quick question: I'm trying to parse dates in the following format to their equivalent DateTime data type, but for some reason it's failing.
The string format is: 28/May/2009:17:43:04 +0000
Or: dd/MMM/yyyy:hh:mm:ss zz00
Here's the code I'm using:
Dim provider As New CultureInfo("en-US")
Dim d As DateTime = DateTime.ParseExact(v...
I have to do some maintenance on an old VB.NET application (Visual Studio 2003) that uses Infragistics NetAdvantage 2006. I have a UltraCombo control binded to a DataView.
How can I refresh the content displayed after a change in the database?
...
I have to do some maintenance on an old VB.NET application (Visual Studio 2003) that uses Infragistics NetAdvantage 2006.
I need to add a column to an existing UltraGrid control. This new column must act like a ComboBox, allowing the selection from a list of values.
I added the new column, and set the Style to DropDownValidate. I crea...
I would like to know how to send an "instant message" (IM) to a recipient on one of the popular IM programs (AIM, MSN, Yahoo, etc.) from a Visual Basic 2005 application. I would appreciate seeing sample code.
Thanks,
Victor
[email protected]
...
I am using the following sample at http://blogs.msdn.com/dwayneneed/archive/2007/10/05/blurry-bitmaps.aspx within VB.NET. The code is shown below.
I am having a problem when my application loads the CPU is pegging 50-70%. I have determined that the problem is with the Bitmap class. The OnLayoutUpdated() method is calling the Invalida...
I'm working in VB, VS2008, winforms. I've got some labels to create, and I'm using the BorderStyle = FixedSingle.
Is there any way to change the color of this border? It is always defaulting to black.
...
Does anyone know of any good free libraries providing Windows Forms controls for displaying schedules/timetables in .NET? I'm really looking for something similar to what the guy who asked this question was seeking, with a couple of differences:
I don't need any help organizing the underlying data or generating the schedule (that's all...
<?xml version="1.0" encoding="utf-8" ?>
<Countries>
<Country>
<ID>1</ID>
<Name>Nepal</Name>
</Country>
<Country>
<ID>2</ID>
<Name>India</Name>
<Country>
<ID>3</ID>
<Name>China</Name>
</Country>
<Country>
<ID>4</ID>
<Name>Bhutan</Name>
</Country>
<Country>
<ID>5</...
<data>
<food>
<id>1</id>
<name>asparagus</name>
<catlog>7190</catlog>
</food>
<food>
<id>2</id>
<name>almonds</name>
<catlog>7190</catlog>
</food>
<food>
<id>3</id>
<name>asparagus</name>
<catlog>7192</catlog>
</food>
<food>
<id>4</id>
<name>asparagus</name>
<catlog>7193</catlog>
</food>
</data>
i would like to get the unique catlogs, ...
I'm having some trouble finding the syntax for making function calls to unmanaged DLLs in VB.NET. Is anyone familiar with this?
Let's just assume there's a function "Connected" in unmanaged DLL "Connector.DLL". I want to call this function by creating an abstract function call to it.
I've seen some code out there that looks something l...