I'm thinking of rewriting a brand new VB.NET application in VB 6.
The application runs under terminal services and makes heavy use of COM.
For some reason, there is random weirdness with the application -
Random Access Violation errors (WinDbg exception analysis points into dll's like comdlg32.dll, mscorwks)
Random Buffer Overflow er...
I have a class as follows
Public Class Foo
Private _Name As String
<ShowInDisplay()> _
Public Property Name() As String
Get
Return _Name
End Get
Set(ByVal value As String)
_Name = value
End Set
End Property
Private _Age As String
Public Property Age() As St...
I am encountering a problem in my code.
My code:
Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myPics As New DirectoryInfo("F:\Documents and Settings\Adam\My Documents\My Pictures")
Dim r As New Random
Dim ...
Hi,
I have a vb.net function that creates several Stored Procedures based on parameters being passed into the function.
I want to move this vb.Net into a single SQL file (for maintenance reasons) but I am not sure how I can re-create it in SQL without creating 7 separate stored procedures.
I create a total of 20 Stored Procedures and ...
The key up event gets triggered when a key is released. This holds true for normal keys like a, b etc. However, holding down the arrow key or escape key produses different results.
Instead of firing a key up event when the key is released, it gets fired soon after the key down event. So, holding down a arrow key becomes equal to pressing...
Using Microsoft Reporting Services, with local processing mode. Loading data sources and everything works nicely. What I would like, is to, in the the report definition, check if a certain value exist in on of the data sources. Is this possible? Like, if I have a data source with just one column of "Name". Can I somehow check if the nam...
This seems like a reasonable (and maybe simple?) scenario, but how would you do the following:
Lets say I have 2 interfaces:
Interface ISimpleInterface
string ErrorMsg { get; }
End Interface
Interface IExtendedInterface
string ErrorMsg { get; set; }
string SomeOtherProperty { get; set; }
End Interface
I want a class...
How do I enable the 'auto fill' option for a property in VS 2005?
...
I'm following the Windsor Inversion of Control (IoC) Getting Started example, which is in C#, but I'm implementing it in VB.Net, and I've run into a small problem..
Here's the exception I'm getting in full:
Can't create component 'form.component' as it has dependencies to be satisfied.
form.component is waiting for the following ...
This may sound trivial, but what is the difference between Dim v As String() and Dim v() As String in VB.NET?
...
I'm attempting to use an unknown type in a for each loop as per the following code:
private sub ReflectThis(ByVal rawData As Object())
Dim dataType As Type = rawData(0).GetType()
Dim properties As PropertyInfo() = dataType.getProperties()
For Each item As dataType In rawData ''//AAAA
For Each property As System.Reflection.Prop...
I'm still learing VB.NET and usually I just google my questions, but this time I really don't know what to look for so I'll try here.
Trying to write a function that takes the cache key as a parameter and returns the cached object. No problems there, but I can't figure out how to pass the type into the function to use with TryCast, so t...
I've searched and am now at a loss as to the cause of my problem.
Here's the short version of my issue.
I have a gridview, a checkbox to toggle paging of the gridview on/off and a sql datasource with select and delete queries. If paging is on, I can click delete for a row in the gridview and it runs and the page refreshes no problem. I...
Hello.
I'm having a bit of trouble with the performance of a parameterized sql statement. The table i'm working with has ~150,000 records with each record having ~30 columns.
This statement executes in 3.5 seconds.
Dim selectstring As String
selectstring = "SELECT * FROM LineInfo WHERE jobNum=@jobnum and revision_number=@revnu...
I have a search screen in a Visual Basic .Net App that has text boxes for:
First Name Varchar(50)
Last Name Varchar(50)
Middle Name Varchar(50)
DOB DateTime
Home Phone Varchar(10)
Work Phone Varchar(10)
How would I create a stored procedure in SQL Server 2000 that would allow me to be able to searh on all/some/one of the fields. If ...
I wan to place a VB.NET project under Git control in Windows (was previously under Visual Source Safe - long sad story of repository corruption, etc.). How should I set up the ignore file? The exclusions I'm thinking of using are:
*.exe
*.pdb
*.manifest
*.xml
*.log (is Git case sensitive on Windows? Should I exclude *.l og as well?)
*....
I need to change the location property of label1 from (50, 50) to (50, 70) when Button1 is clicked. This should be easy, but I can't get it to work.
...
Selection count, .SelectedItems.Count, does not change when
the Selected property is set to true on an item in the Items
collection of an ListView.
Example:
lvPept.SelectedItems.Clear()
lvPept.Items(6).Selected = True
Dim newLen As Integer = lvPept.SelectedItems.Count
lvPept is a ListView and contains 10 elements.
newLen is ...
I was trying to make a program that shows picture in a folder.
The path of each picture was stored in the database.
My problem was it only show the last images stored in the database and not all the pictures.
code:
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Timer1.Ena...
Hello,
wow can i read the hard disk Serial number for IDE and SATA drives in VB.NET?
(I don't want the Volumn Serial Number)
This info should be gathered both for XP and Vista if possible without administrative rights
...