Hello All, I have the following classes:
Public Class Email
Private Shared ReadOnly EMAIL_REGEX = "\b[a-zA-Z]+[a-zA-Z0-9._+-]+@" + _
"[a-zA-Z0-9.-]+\.[a-zA-Z]{2,3}\b"
Private _email As String
Public Event emailCreated()
' Declare empty constructor private so the only way to create...
I am writing a program that needs to read a set of records that describe the register map of a device I need to communicate with. Each record will have a handfull of fields that describe the properties of each register.
I don't really need to edit or modify the data in my VB or C# program, though I would like to be able to display the d...
Can anyone help me on how to do this..
I have a ListView with Checkboxes in vb.net and what I want to do is when the user check the checkbox, the program ignore the response of the user in checking the checkbox, instead it leaves the checkbox uncheck..
This concern is uses for may validation..
Thanks for your positive response regardi...
I have defined a StringCollection in the Project Settings.
I want to use the values in a ComboBox.
Is there a way to access it xamly?
I tried:
<CollectionViewSource Source="{x:Static src:MySettings.Default.MyCollection}" />
<CollectionViewSource
Source="{Binding Source={x:Static src:MySettings.Default.MyCollection}}" />
*src is...
Hi,
I am using a dataset on the server, in this dataset I have a datatable that calls a stored procedure and returns column names from three tables. I call this stored procedure using a web service.
I manage to show all the column names in my combobox but when I want to click a button and insert selected column name into a richtextbox ...
How would I write the following ASP.NET MVC C# code in VB.NET?
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<MvcGridSample
.ViewModels.Shared.Grid<Customer, CustomerSearchForm>>" %>
...
I have an excel sheet where one column consist of comma seprated hyperlinks. However, I am unable to see a way to insert more that one hyperlinks in an excel cell. Is there a workaeround this?
...
Hi,
I have a .exe program which has an embedded webservice running on port 800.
I can access it locally via 127.0.0.1:800 just fine once the program is executed.
I need to be able to send the service commands such as: * 127.0.0.1:800/dev * will get a list of devices attached to the program.
To my knowledge i need to forward port 800 o...
Hi!
I have application in VB.net that have two different form (Form1 and Form2).
Now I need to examine some condition and if condition is true then i set Form1 for startup for
and if it not then i set Form2 for startup form.
So is there anyway to dynamically call startup form?
Thanks!
...
How can I write a unit test to test the actualWidth property to a userControl in Silverligh 4?
I hoped that this method would pass, but it fails.
I am using the Silverlight ToolKit april 2010, and VS 2010.
<TestMethod()> _
Public Sub TestAcrtualWidth()
Me.MyUserControl.Width = 100
Me.MyUserControl.UpdateLayout()
Assert.Is...
Basically i have a query string that when i hardcode in the catalogue value its fine. when I try adding it via a variable it just doesn't pick it up.
This works:
Dim WaspConnection As New SqlConnection("Data Source=JURA;Initial Catalog=WaspTrackAsset_NROI;User id=" & ConfigurationManager.AppSettings("WASPDBUserName") & ";Password='" ...
I would like to SET ALL permissions to True for all users of a computer, while using Directory.CreateDirectory
Could you point me a point to start?
...
Hello again,
I want to search an ASP.net form for all types of validation controls and programmatically add some attributes to them such as ForeColor. Can someone point me in the right direction on this?
Cheers and thanks Stackers :)
...
I have a created a user control. This user control I dynamically load on a page inside Telerik Panelbar control. I have done all necessary coding to save the viewstate and load this dynamically created usercontrol every time page loads.
On this User control I have a asp panel. By default this panel is invisible. When user clicks a butto...
Lets say I have a class like this in class1.vb:
Public Class my_class
Public Sub my_sub()
Dim myvar as String
myvar = 10
Session("myvar") = myvar
End Sub
End Class
Then I have a ASP.NET page with a code-behind file, default.aspx and default.aspx.vb and I want to call my_class. I'm doing the following, but it doesn't work:...
Hello,
On one side, in Vb.Net when you add an event handler to an object the created method is named: <NameOfTheObject>_<NameOfTheMethod>.
As I like to have consistent syntax I always follow this rule when creating event handlers by hand.
On the other side when I create private variables I prefix them with m_ as this is a common thing...
Hi,
I am using data grid view in Windows Form standalone application to display items as excel spread sheet in VB.NET. I got a table named CostTypes with column names [CostTypeID, CostType] and values [1,External] and [2,Internal] (These are constant but more values can be added to table).
I want to create columns with names of the v...
VB.NET 2008 .NET 3.5
I have two base classes that are MustInherit (partial). Let's call one class OrderBase and the other OrderItemBase.
A specific type of order and order item would inherit from these classes. Let's call these WebOrder (inherits from OrderBase) and WebOrderItem (inherits from OrderItemBase).
Now, in the grand sche...
No this isn't a copy of this question: http://stackoverflow.com/questions/654423/button-in-update-panel-is-doing-a-full-postback
I've got a drop down inside an update panel, and I am trying to get it to allow the person using the page to add users to a list that is bound to a gridview. The list is a global variable, and on page_load I s...
All I want to make user control visible on button click. I am getting object null typical error on following code. How do I make complete user Control visible or invisible using javascript?
Dim ucAddNewChekcing As SubscriberSetupPages_UserControls_CheckingAccount
ucAddNewChekcing = DirectCast(pnlTopLevel.Items().FindItemBy...