vb.net

ideas on generating a pdf report in vb.net

i will need to generate a report based on user input for every food that will look like this: i plan to have a pdf displayed on a winform using the adobe pdf reader control. the pdf will be the header of the above graphic, but the list of foods and the reactions will be generated. this is what i need: i need the form to be printable...

Invalid byte 1 of 1 utf-8 sequence in vb.net

From my Windows Service I am passing a well-formed XML string to a Java Web Service. The Java Web Service will process the data and return me a status code. Though I am passing a well formatted XML file. I am getting an error from the Java Web Service of: Invalid byte 1 of 1 utf-8 sequence in vb.net What is the reason for this? ...

specifying an icon to be put on the desktop during installation

when the user installs my vb.net application, i would like my icon (a shortcut) to be placed on the user's desktop. i am using vb express 2008, and am using the installer that it comes with. how do i specify an icon for this:? ...

How do I get a Windows Form client to update every time a access table on webserver changes?

I have a form with a list that shows information from a database. I want the list the update in run time (or almost real time) every time something changes in the database. These are the three ways I can think of to accomplish this: Set up a timer on the client to check every few seconds: I know how to do this now, but it would involve ...

How to give the dtpicker date – 1?

Now using VS 2008 Before I used VB 6, now I Upgraded to VB 2008. VB6 Code sdate = DateToString(dtpicker1 - 1) edate = DateToString(dtpicker2) Above code is working fine. After Upgraded to VB 2008 sdate = DateToString(dtpicker1._Value) edate = DateToString(dtpicker2._Value) If I Put sdate = DateToString(dtpicker1._Value - 1) ...

How do I find out if the first character of a string is a number in VB.NET?

How do I check to see if the first character of a string is a number in VB.NET? I know that the Java way of doing it is: char c = string.charAt(0); isDigit = (c >= '0' && c <= '9'); But I'm unsure as to how to go about it for VB.NET. Thanks in advance for any help. ...

How to set tooltips on ListView Subitems in .Net

I am trying to set the tool tip text for some of my subitems in my listview control. I am unable to get the tool tip to show up. Anyone have any suggestions? Private _timer As Timer Private Sub Timer() If _timer Is Nothing Then _timer = New Timer _timer.Interval = 500 AddHandler _timer.Tick, AddressOf Timer...

Including a ASP Web Service Project in a Windows Forms Application

I have a web service that I'd like to include as a project reference inside a windows forms application. (The application will be running on non-networked hardware.) I could simply copy the *.vb files I need into my forms project, but I'd rather not fork the code base. It wasn't hard to include the ASP project in the windows forms sol...

Oracle Date field - Time issues

We have two databases, in two separate locations. One of the databases resides in a separate time zone than our users. The problem is that when the database that is located in a separate time zone is updated, with a Date value, the database automatically subtracts 1:00 hour from the Date it was passed. The issue is that, when passing ...

"make single instance application" what does this do?

in vb 2008 express this option is available under application properties. does anyone know what is its function? does it make it so that it's impossible to open two instances at the same time? ...

For each loop in vb.net

Hello, How do I use for loop in vb.net something like dim start as integer Dim customers as New List(Of Customers) Customers=dataAcess.GetCustomers() For each start=500 in Customers.count 'Do something here' Next I want to process some data for each 500 customers.. Please help ...

VB + intellisense not working (doesn't show up) + in aspx or html files

I have intellisense when i type this: <p><%= boolean.falsestring %></p> I don't have intellisense when i typ this: <p class="<%= boolean.falsestring %>"></p> To further clarify (see line below), the first <%=%> doesn't show me intellisense popup, the second however does, why is that? <p class="<%= boolean.falsestring %>"><%= Boole...

authentication mode - application defined ?

in vb 2008 express this option is available under application properties. does anyone know what it does? there is also a windows authentication option. what is the difference between these two? ...

Where should I place the DLL?

I downloaded an itextsharp DLL that I would like to use in my vb.net 2008 express application. In which folder should it be placed? I went into choose items in the toolbox and tried to add it but I got an error This is what I downloaded: http://sourceforge.net/projects/itextsharp/ ...

Use ASP.NET to e-mail contents of an entire HTML Page?

I have a HTML page that I have created that essentially consists of: <div> <table> <tr> <td><asp:label runat="server" id="someText"></asp:label></td> </tr> </table> </div> The label text is generated on page load from an SQL query. The above is a very basic and simplified version of what I have on my pag...

Rename a Report Section in Crystal Reports

Is it possible to rename a report section in a crystal reports using the version of crystal that is built into Visual Studio 2008? If so how can this be done. ...

XML Comments not showing on Vb.Net

I am using something similar to this and it will not display the Summary or Remarks when I am attempting to use the Intellisense for this function? ''' <summary> ''' Summary ''' </summary> ''' <param name="param">The Parameter.</param> ''' <remarks> Remarks </remarks> any ideas? ...

String.ToCharArray() stored in StringCollection conversion to numbers and back in VB.net

I have a string which was converted to a char array and stored in a stringcollection, how do I return the numerical value for the character in each string? How can I reverse this process, getting the character from the numerical value? I know I could code a Select Case statement, but that would take a very long time as I need to cover e...

format cell of datagridview to show substring of column text in vb.net

i have a column item-code, inside my database which i have bound to a datagrid view. The item-code comes in this format "A-B-C", i wish only to show the "B" part of the code, i have bound this column to the gridview and now wish to make it show the substring. I tried defaultcellstyle.format but don't know how to get a substring for it. ...

when should dataset reflect the updated rows count after an insert in vb.net

i have a sql database, and have created a dataset for a sample table in it. The dataset is HotelDataSet2 and data table adapter to insert to it is Various_itemsTableAdapter. MsgBox(HotelDataSet2.various_items.Rows.Count) Various_itemsTableAdapter.Insert(Item_nameTextBox.Text, itemcode, PackingTextBox.Text, UomTextBox.Text, PriceTextB...