vb.net

Let the user design a form and the fields in it

I am developing an application in which I would like to let the users design some forms and decide the fields that are in the form. An example is better than a poor explanation, so let me put the example of Microsoft CRM in which you as end user can define a form, the fields in that form, or customize existing forms by adding or removin...

Unit Testing Question and iBatis

We are developing a VB.Net Thick Client. Our Business Objects get filled from Services which make calls through iBatis to the DB. These BOs obviously hold information about the object in variables. I am curious on how far to take unit testing? Do you go as far as to do create a new object, fill all of the properties and then verify that...

Provide strongly typed access to the session object

What is the best way to provide strongly typed access to the session object? I am planning on turning on Option Strict, which is causing the compiler to complain about my lazy programming technique of directly accessing the session object: Dim blah As Integer = Session("Blah") My initial thought is to create a class that wraps the se...

Tab control to handle child windows in an MDI form (VB.NET)

My application uses an MDI form, and there are instances where the end user will need multiple child windows open at a time. I need an easy way for the user to switch between windows, which made me think of using tabs kinda like Firefox, or like the tabs in the Visual Studio IDE up at the top where you can switch between open forms and ...

How can I send data to multiple IPs in VB.NET with TCP/IP sockets?

I have an array of IP addresses, and I want to send the same data to all of them. I could just send the loop code that sends data but I think there's a better way of doing this. I've heard of multicast, what exactly is it? I think it's what I need but how do i use it. ...

How to develop accumulator codes?

Hi everyone! This is for vb.net I've been working to develop a system which involves computation. I would just like to ask for any ideas or source code or a link perhaps that could help me resolve this issue. What I've been trying to develop in my program is, I have a textbox where user will enter a numeric value,there is a button ...

Data Manipulation (INSERT,UPDATE) using DataSet Object with VB.NET

I am newbie at using DataSet. I am writing a program with VB.NET, there I have to select data from one table. Then I have to update about 4 tables and insert to 2 Tables. Which approach will be ok for me? I'm thinking to use DataSet. If anyone can point out that problem , please show me with Sample code to update DataSet. Thanks you all ...

Listview Serialization !

appreciate if anyone knows how to serialize a listview using vb.net ...

Visual Studio 2008 - Jump to next error shortcut?

When a compile fails in VB.NET in Visual Studio 2008, an Error List pops up at the bottom of the screen. To jump to an error, I double click on an error in the error list. Is there a shortcut to automatically jump to the next error in the list? It gets a little bit tedious at times having to reach down and double click a list that I lik...

Making a specific node expand based on the navigate URLs of its children

So I have a TreeView and it has about 7 parent nodes that have 3-5 children each. All of these children nodes when click navigate to a URL. What I would like to do is have one parent node auto-expand based on the URL and the other parent nodes to collapse. If that wasn't clear, here is an example: Root | |--Admin | | | |--Add.as...

Handling events fired in constructors

Work = New ExampleWork() Here the Work is a withevents variable and I've used the handles clause for handling various events fired by the ExampleWork object. However the event handler will not get assigned till the constructor of the ExampleWork returns. Now how can I handle any events fired from the constructor? I can move the constru...

VB.NET DataSet Update

Why my set of codes didn't update in DataSet? Then it goes to Error. Please anyone check this code and point me out where I am missing. Thanks in advance! Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click Dim conxMain As New SqlConnection("Data Source=SERVER;Initial Cata...

"Parameters must be named" error - ASP.NET

I am trying to update a DetailsView but I am getting the error "Parameters must be named". I assume that means there is a problem with the markup for the DetailsView. Here is the relevant code: <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="studentID" Dat...

Textbox in Visual Basic help!

Lately I have been programming an application in Visual Basic 2008, and on one of my Windows Application forms I have several text box forms, and with my code the way it is, none of them can be enabled, and they must all be set to Read Only. Now if I put a big block of text in one of the Text Box's that extends past the parameters of th...

A window like the explorer desktop - VB.NET & User32

What I am trying to do is create an application that replaces explorer. Now the issue is that I am using SetWindowsPos with HWND_BOTTOM to set it at the bottom of the z-order, however once the application is clicked - it comes to the top. I tried using SWP_NOACTIVATE but it does not work and I dont want to make it so when the user clicks...

What is the difference between <pubDate> and <lastBuildDate> in RSS?

I have the feeling, in every RSS.xml file, both the pubDate and the lastBuildDate match. I am sure that this one, is not always true... So firstly, what is the difference between those two above? Secondly, the RSS readers, sort the content by Date, based on the pubDate or the lastBuildDate? ...

Mygeneration Template Editor

hi all, i used mygeneration to generate my code,it is very helpful but i found that the template editor is awful, and i dont have any substitution. do u have any ideas? or better generator?(no CodeSmith, it is commercial) thanks :) ...

String Array Thing!

Right - to start with, I'm entering unfamiliar areas with this - so please be kind! I have a script that looks a little something like this: Private Function checkString(ByVal strIn As String) As String Dim astrWords As String() = New String() {"bak", "log", "dfd"} Dim strOut As String = "" Dim strWord As String For Eac...

Set Select command in code

On button Click I want to Set the Select command of a Gridview. I do this and then databind the grid but it doesn't work. What am i doing wrong? protected void bttnView_Click(object sender, EventArgs e) { ImageButton bttnView = (ImageButton)sender; String param1 = bttnView.CommandArgument.Split(',')[0]; String param2 = bttnVi...

ALT Key Shortcuts Hidden

I am using VS2008 and creating forms. By default, the underscore of the character in a textbox when using an ampersand is not shown when I run the application. ex. "&Goto Here" is not underlining the G until I press the ALT key. Is there a way to have this underline the text that I put an ampersand in front of when the form/applicat...