I have a DataGridView bound to a DataTable that has 1+16 columns defined as Integer.
The default cell style is hexadecimal 2 digits (.Format="X2").
When entering in cell editing I would like to provide to the user, the possibility to write the value in decimal or hexdacimal.
Hexadecimal could be written like, for example, 0x00, 0X01,...
Currently we're using in code <System.Web.Services.WebService(Namespace:="https://ourservice/")> to set the namespace, can this be done in web.config, instead? I've looked but can't find where?
VS2008, ASMX web service.
...
I want my User Control to be able to have Literal Content inside of it. For Example:
<fc:Text runat="server">Please enter your login information:</fc:Text>
Currently the code for my user control is:
<ParseChildren(True, "Content")> _
Partial Public Class ctrFormText
Inherits UserControl
Private _content As ArrayList
<P...
I am an experienced C/C++/C# programmer who has just gotten into VB.NET. I generally use CType (and CInt, CBool, CStr) for casts because it is less characters and was the first way of casting which I was exposed to, but I am aware of DirectCast and TryCast as well.
Simply, are there any differences (effect of cast, performance, etc.)...
I need to have the following : (name1 + "a") + (name2 + "a") + ...
Dim separator() As String = {"|"}
myString.Split(separator, StringSplitOptions.None).SomeLinq(...)
I don't know what to add at the end to add an "a" to each element...
...
I have string that contains "1.3" and I am checking with Date.TryParse method. It automatically converting into "1/3/2010". How to handle this?
...
Hello,
I want to create labels in my page dynamicly, for example the user will choose in a textbox the number of labels, and I will display the number of this label with .text = "XYZ".
Thanks.
...
I need to create a vb.net program that consists of a unmovable, always on top bitmap, with no menu bar or anything, and does not show up in the task bar as program.
It needs to always start in the same place.
Essentially I need to mask a part of the screen by using a bitmap that blends into the scenery.
I am not sure which properties I...
hi .. im want to learn how to build a web service using vb.net.
unfortunately i couldn't find any websites that provides good tutorial..
can any one suggest a web site? thank u in advance ..
...
Dim dt As New DataTable
Dim da As New SqlDataAdapter(s, c)
c.Open()
If Not IsNothing(da) Then
da.Fill(dt)
dt.Select("GroupingID = 0")
End If
GridView1.DataSource = dt
GridView1.DataBind()
c.Close()
When I call da.fill I am inserting all records from my query. I w...
Edit
I've added the following code, however I get an error @ SendInput:
File I/O of a structure with field 'dwExtraInfo' of type 'IntPtr' is not valid
Public Sub DoDoubleClick(ByVal wait As Integer, ByVal x As Integer, ByVal y As Integer)
Dim inputEvents(0) As Input
Dim p As MOUSEKEYBDHARDWAREINPUT
p.mi.dx = x
p.m...
I have an ascx usercontrol acting like as a standard createUser formular.
Code is written in VB.Net 3.5
The control also has some radiobuttons with the property autopostback=true set.
The Radiobuttons controls if the member should be a Company or an Individual.
If a radiobutton is clicked, the formular will display or hide certain text...
Hello, I am trying to copy a sql database into a vb.net application however it is not maintaining the default values when I do this. Is it possible to import the default values and have them automatically assigned when creating a new row or do I have to manually assign the default values again in my code?
...
How can I get the Y position of the ContextMenuStrip?
...
I have a combobobox on my form, and I use the following code to populate the data from SQL Server:
cbname.DataSource = DSAssetName.Tables(0)
cbname.DisplayMember = "IDWLNAME"
cbname.ValueMember = "FIDWID"
I need the value specified in the value member for the reporting section of my app to work. This all works great a...
I have a webapp in ASP.Net with a VB codebehind. I need a List variable I have declared to persist as long as the person is on the page, but currently any time a control posts back to the code, everything is cleared out. I am completely new to ASP.net, so I have no idea if this is even possible. Can it be done with a Session variable?...
I need to print several textboxes from Form on VB.net, but I do not succeeded to have more than one . It should be on different locations on my Form.
Can somebody help me with a piece of code or at least a hint ?
Many thanks in advance
...
Hi, I'm looping through a zip file trying to add the file name of each file within.
Is this the correct method?
Dim ZipNameArray(?)
Using zip As ZipFile = ZipFile.Read(ZipToUnpack)
For Each file In zip
ZipNameArray(?) = file .FileName
Next
End Using
I do not know the array size until I start looping through the zip (T...
So, right now I've got a number of columns the user can sort by (Name, County, Active) and that's easy but messy. Looks something like this...
Select Case e.SortExpression
Case "Name"
If (isDescending) Then
resultsList.OrderByDescending(Function(a) a.Name).ToList()
...
Hi,
In 2004/5 I built web services to be consumed by a clients partner site in VS2003 ASP.NET 1.1 VB. I have just completed rebuilding the services in VS2008 ASP.NET 3.5 VB. During functional testing from the partner site, it seems none of the services work correctly and some not at all. Yet when tested using SOAPUI or via VS2008 debug...