vb.net

control to display docx (word files) and xls (excel files ) inside vb.net form

which are the control used to display word files and excel sheets inside vb.net forms ? (i have already added reference lib.) Platform: Vb.net (framework : 3.5) language : visual basic ...

microsoft access database file location path

hi to all After I published the system, I tried to add and update some records. My problem now is if I open the timekeeping.mdb database, the records that I've added and modify doesn't update. I don't know if there are another file that being called by the system after I publish. I tried also to search all timekeeping.mdb file and open ...

Saving richtextbox data inside a database along with the formatting

I have a rich text box in one of my applications (WPF). Now I want to store the data of the rich text box along with its formatting (e.g. bold, colored etc.) into a database (SQL Server). Currently I am storing the whole XAML of the text box in a database field. however, I am not sure whether this is the right approach. Looking forward t...

difference between given dates

I have a sqlce database table that I am entering data every day. Date No Meter_1 Meter_2 Meter_3 12-05-2010 1 1234 3456 4567 12-05-2010 2 3423 4567 0987 13-05-2010 1 2345 7654 7654 13-05-2010 2 7676 8765 5643 14-05-2010 1 ...

getting the value of the boundfield in a gridview

Hello all, I have encountered something strange. I wanted to have the value of my gridview boundfield so I did this. SelectedID = objGridView.Rows(0).Cells(4).Text.ToString At first this seemed to work. I played around a little created a hyperlinkfield wanted to get that value but got an empty string. After some looking around it t...

Determine absolute path of a file vb.net

I created a survey in vb.net where results are stored in an Excel file. Locally I can access and update the data of the file, but if I put online can not correctly access the excel file. How can I determine the absolute url of the file so, when a user submits the answers they can be inserted correctly in the excel file? Currently I use...

How to set a single ComboBoxCell in a TextBoxCell column of DataGridView?

I have a DataGridView with two columns defined like: Dim col As New DataGridViewColumn col.DefaultCellStyle.BackColor = Color.FromArgb(&HFFAAAAAA) col.Name = "Description" col.MinimumWidth = 80 col.DataPropertyName = "Description" col.ValueType = GetType(String) col.ReadOnly = True col.CellTemplate = New DataGridViewTextBoxCell S0Grid.C...

Listing folders in folders - then creating arrays in JS for each of the folders - ASP.NET VB

First of all, i'm a Graphic designer so please ignore if this programming question seems stupid ... I know this question could've been split into two or three smaller questions but since I'm really new to coding VB.NET it would've killed me trying to put together the stuff ... Directory Structure: I have a directory structure as follows...

Generate a string greater than a fixed length

In my application, a string generated its length can varying from 1 to 100 (not using random number algo). But I want if length is less than 7 than need to add integers 1,2,3.. untill its size reach to 7. I implements it using while loop as : If generatedUserName.Length < 7 Then Dim count As Int32 = 0 While generatedUserName.Len...

Links in Visual Studio Comments?

When investigating effective methods of documenting our VB .NET project, by experimentation I discovered that I can make a comment like 'See the file at file://path_to_file and I can then ctrl-click on this link to bring up the file in a new tab. Is this feature and perhaps other capabilities of Visual Studio comments documented anyw...

Issues dynamically arranging controls in vb.net

Hi, I am looking for the best way to dynamically arrange the location of labels (or any control for that matter) during runtime in a Windows Forms application using VB.net or C# in VS2008. I have a control that displays messages created by users. This control has a panel docked at the top which holds the header information for each mess...

How to split a string with multi-character delimiter in vb - asp.net?

Hi, How should I split a string separated by a multi-character delimiter in VB? i.e. If my string is say - Elephant##Monkey, How do I split it with "##" ? Thanks! ...

Excel download library in asp.net?

Do we have any free 3rd party library that we can use in asp.net for download Excel sheets? Please provide me some. ...

format a string to usa phone number in vb.net

just as the question says. I get numbers like 2125550938 or 20298277625552. these should change to (212) 555-0938 and (202) 982-7762 x 5552 respectively. this is in vb.net ...

Rendering a 2D Map in a Game - Cropping and Scrolling

OK. I'm in essense trying to make my own interpretation of the NES hardware, so I can make a game that ideally would resemble what a NES game would look like. I'm currently stuck with how to adjust how to draw the playfield to the video memory (back buffer). BACKBUFFER The NES had restrictions on the nametable, or backbuffer. For my ...

Lack of 'procedure view' option in vb.net?

vb6 used to support both procedure view and full module view. VB.net seems only to support the latter. Why would they do this? Is it perhaps because people generally have bigger screens now (and less need to scroll). I find that I have to scroll down a sub/function very slowly with full module view or else i'll inadvertently end up in a ...

Storing SQL strings in XML XElement instead of String to preserve line breaks

When it comes to storing SQL in code, most people use strings: Dim strSql As String = "Select Foo, Bar From FooBarTable Where Something = @Something" The problem is, when you have very long SQL strings, reading them in code becomes difficult. You can usually split the strings up like this: Dim strSql As String = "Select Foo, Bar From...

requiredfieldvalidator on a checkbox created programatically in vb.net

this is part of code for my checkbox. For Each c As Contact In contacts.Entries counter += 1 tr = New HtmlTableRow tc = New HtmlTableCell Dim chkbox As New CheckBox chkbox.ID = "id_" & counter tc.Controls.Add(chkbox) tr.Cells.Add(tc) Next now this ...

Different application settings depending on configuration mode

Is anyone aware of a way that I can set application (or user) level settings in a .Net application that are conditional on the applications current development mode? IE: Debug/Release To be more specific, I have a url reference to my webservices held in my application settings. During release mode I would like those settings to point to...

Passing data to ASP.NET webservice using JSON

Hi all, I have successfully returned data from a ASP.Net webservice in JSON format (using a service method that required no parameters) but have struggled with making a webservice call that requires a parameter. Webservice: <WebMethod()> _ <ScriptMethod(ResponseFormat:=ResponseFormat.Json, UseHttpGet:=True)> _ Public Function TestWebS...