vb.net

vb.net: how do i build to just one file??

i did a build in vb.net and got one exe file however, when a user runs the file, it says it is missing one of the libraries (itextsharp). so the question is, if there is actually a build option in vb.net, why does it not include the library in the same exe file? ...

VB.NET writing a telnet client using system.net.tcpclient

This isn't working for me when I connect to my solaris box The server is sending back ??% does anyone know what i'm doing wrong Imports System.Net Imports System.Net.Sockets Imports System.Text Public Class TelnetClient Private _hostname As String = "myserver" Private _username As String = "user" ...

ways to escape { in string.format function in vb

hi all, I am facing an issue with my code . the thing is i want to escape { in the string.format function ... Of course one way to escape it is to use {{ (2 curly braces) Is there any other way possible to escape without using the double curly braces. thanks ...

Write String.Join(Of T) in VB.Net

Hello! I have a simple code in C#: Console.WriteLine(string.Join<char>("", "")); And I can't convert it to VB.Net. Even reflector show me code in VB like: Console.WriteLine(String.Join(Of Char)("", "")) But it can't be compiled becouse I have an starge error: Error 1 Expression expected. It looks like VB.Net don't have this gen...

Remove the PDF file from a AxAcroPDFLib.AxAcroPDF object

Hi, Can anyone please adivse me on how to remove a PDF file from a AxAcroPDFLib.AxAcroPDF. Thanks Amit ...

sms through GSM mobile

Hi Could any body give me code how to send sms through GSM mobiles, connected with computer? Thanks Furqan ...

The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value type.

Dear All, Please help me When i execute this linq to sql command its given an error "The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value type." 0 Records in my Commotidy Table I want generate manual number and get the last CommodityCode My Code as follow, Dim QRecordCount = From RC In...

How do I make my VB.NET custom button work?

I made a custom button to input keypresses: <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _ Partial Class KeyInputButton Inherits System.Windows.Forms.Button 'UserControl1 overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> _ Protected Overrides Sub Dispose(...

How to get date in vb.net

I want to display my date like so in VB.NET 2008/01/22 14:23:15 How is this done in code? This does not give me enough: lblDate.Text = Today.Date ...

Check if J# framework installed

I have a VB.NET 2008 (FW 3.5) app with J# 2.0 as a prerequisite. For some problems I have to check during runtime if this framework is installed. How can I do? Thanks Alessio ...

Simple way to install SQL Server DTS on a client PC

We have a VB.NET (.NET 2.0) windows service application that uses SQL Server DTS to send data to a central server. To access the DTS, we install Microsoft SQL Server 2000 Desktop Engine (MSDE) and then reference the DTS COM component. We can then use then use DTS from within our service: Dim m_pkg As DTS.Package2 m_pkg = New DTS.Pack...

.NET Windows Service - Architectural Decisions

Hi, I currently have a Windows Service which continually runs throughout the day. It has multiple threads which kick off: tasks daily to update cache tasks weekly to do cleanup 24/7 task to import XML into SQL Server tasks which run for around 12 hours per day kicking off a console application to manage ETL The tasks are not the imp...

Error on inserting new line on gridview

Hello. I am trying to add a new row into a gridview but for some reason i'm having a problem in the for loop. Directly goes to dtCurrentTable.Rows.Add(drCurrentRow) and of course, have an error "'row' argument cannot be null.Parameter name: row", because the dtcurrentTable.NewRow was not executed. Why is this happening? Private Sub...

VB.Net String to double

Why is it that when I convert a string with value "22.882" to double, using Dbl() it loses precision and is converted to 2288.2? I have to use a double since I'm using the constructor of System.Web.UI.WebControls.Unit (see http://msdn.microsoft.com/en-us/library/ctewx7ch.aspx). ...

How to GroupBy 2 values in a Generic list, VB.NET ?

I'm using VB.NET on Framework 2.0. I'm looking to quickly group a Generic List<> by two properties. For the sake of this example lets say I have a List of an Order type with properties of CustomerId, ProductId, and ProductCount. How would I get the average of ProductCounts grouped by CustomerId and ProductId in VB.NET ? Unfortunatly I c...

How can I make my own components in VB.NET?

How can I make a component that resides in the components tray like the Timer? So that you can place them from the toolbox but they are not visible on the form. Hopefully this is possible. ...

Using VB.NET Regular Expressions to Remove Excel XML Conversion

I have the following lines showing up in files that have been converted to XML from an Excel worksheet: <Worksheet ss:Name="Sheet1"> <Names> <NamedRange ss:Name="Print_Area" ss:RefersTo="=Sheet1!R30C1:R8642C15"/> </Names> <Table ss:ExpandedColumnCount="14" ss:ExpandedRowCount="8655" x:FullColumns="1" x:FullRows="1" ss:Style...

Are Modules still commonly used in program structures?

I am not a program designer by any means but I would really like to start getting a better grasp of how to do it and a better understanding of the .NET languages in general (VB, C#). I was reading a book by Wrox - Professional Visual Basic 2008. In it I believed it mentioned that Modules are slowly going out of existence. I can see why m...

Move Image on window WPF.

Hi. Here is my code : <Image x:Name="Layer_22_copy" Height="542" Canvas.Left="16" Opacity="0.522" Source="gammon2_Images\Layer 22 copy.png" Canvas.Top="13" Width="315"/> how can i change position of this image on Code Behind? i am new in WPF. thank you. ...

Convert a datatable to a data structure to be read by MS stacked chart control?

Hi, I have a chart control (stacked chart to be more precise) and a datatable that contains 3 columns. I want to bind them into a stacked bar chart. below is what the datatable looks like: Resource | Queue | Hoursworked Billy Jones | Projects - Internal | 234 Billy Jones | Tier 1 Support | 234 Alan Clark...