Hello!
Could you please tell why the Asc() function returns incorrect result?
Dim TestChar = Chr(128)
Dim CharInt = Asc(TestChar) ' this is a mistake on Windows 7 x64. Asc(TestChar) returns 136 instead of 128
I executed this code on another computer and the result was 128.
Thanks.
...
Hello everyone!
The following function copies a file from Source & Path to Dest & Path, normally setting file attributes to normal before copying.
Yet, a user of my app has reported it to fail when copying readonly files, returning a permissions-related error. The user is however running the code as administrator, and the error happens...
Does anyone know of a way to disable the mouse scroll wheel when a control such as a combobox or listbox has focus? For my purposes, combobox is all I need the answer for.
I have a combobox set to trigger a SQL query on SelectedIndexChanged, and accidentally scrolling the wheel while the combobox has focus causes about six SQL queries t...
we are running into an issue with our ASP server.
If you try to access a password protected page it does a security check and redirects you if you are not logged in, retaining the URL (ie. Members/MemberLogin.aspx?doc=/PodCast/Default.aspx)
The vb script places the "/PodCast/Default.aspx" in a variable and holds it until the login proc...
I'm using a stored procedure in a sql database as the data source for a SqlDataSourceControl on my .aspx page. I'm then using the SqlDataSourceControl as the data source for a gridview on my page. Paging is set to true on the gridview. What i would like to do is set the text of a label to the total number of rows in the gridview. I c...
First of all, I have bound a datapager control to a listview.
I would like to scroll to the first item of the listview control on the DataPager click. I guess by using javascript, but it seems that the datapager does not allow that...
So what option do i have? How can i scroll, onto a specific anchor, when clicking on the DataPager?
...
I'm using VB 2010 Express.
When an error occurs in the form load function, the form load function simply terminates.
Then, when I click on one of my buttons, the button click sub also terminates if it has an error.
I can wrap the code that produces the errors in try/catch blocks, but I'd very much rather the debugger to throw an imm...
I am attempting to show a specific form using a treeview control, the nodes of which have their tag value set to an instance of the Form I need to show. The code I have in the DoubleClick event works great for the first time I show a form, but after that I get an object disposed exception. As you can see, I tried handling it by resetti...
Dim myRequest As System.Net.WebRequest = System.Net.WebRequest.Create(url)
Dim myResponse As System.Net.WebResponse = myRequest.GetResponse()
Dim rssStream As System.IO.Stream = myResponse.GetResponseStream()
Dim rssDoc As New System.Xml.XmlDocument()
Try
rssDoc.Load(rssStream)
Catch nosupport As NotSuppor...
Can't seem to figure out how to use a function return variable in global Dims
example code:
Public Class Main
Dim Path As String = FixPath()
Dim fixwrongtxt As String = Path & "tryme.txt"
Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FixPath()
On_load()
End Sub
...
I have a asp.net website and i need to import address books from yahoo, msn and aol. I have already done gmail import by downloading the google contacts api. But i cannot find the same for yahoo,msn and aol. does anyone know if there's a single dll avilable that can do this? or any other way is fine.
...
I am trying to create a settings class.
The Property Test() is a list of strings.
When I add a string such as: t.test.Add("asasasAAAAA")
I want it to autmatically turn lowercase.
For some reason it is not. Any Ideas?
p.s.
using t.test.Add(("asasasAAAAA").ToLower) will not work for what I need.
Thank you.
Public Class Form1
Priv...
Hi,
I am making an application in VB.NET that allows a user to highlight some text in images of documents so that the highlights could be saved for future reference, but the original images would not be modified. I figured I can achieve it by creating a graphics out of an image file and allowing the user to draw on that graphics. The pro...
I have this function which evaluates the contents of a textbox (or combobox or maskedtextbox) control and, in conjunction with a KeyPress event, will either allow or disallow the input. It is quite useful for dates or textboxes for which only numeric input is valid. It allows a set number of digits after a single decimal point, if spec...
Hi guys,
I am trying to add shared members in derived classes and use that values in base classes...
I have base
class DBLayer
public shared function GetDetail(byval UIN as integer)
dim StrSql = string.format("select * from {0} where uin = {1}", tablename, uin)
....
end function
end class
my derived class
class Us...
Hi,
I want to execute a method on VB.Net to return a date which is in the stored procedure. I tried using ExecuteScalar but it doesnt work it retruns error
'Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query'
Any help would be much appreciated please?
thank you
below is the...
How do I create a multidimension array in VB.net? I want to specify the dimensions of the array in the code, but the array must be global.
Dim canvas()() As Integer
Then later on
x = someValue
y = someValue
canvas = New Integer(x)(y)
Cheers!
...
I have been asked to show the benefits and limitations of Parallelism and evaluate it for use within our company. We are predominantly a data orientated business, and essentially load objects from the database, then put them through some business logic, display to the user, then save back to the DB. In my mind, there isn't too much in th...
I've got some legacy data which is still in use, reading the binary files is not the problem, the number format is. All floating point numbers are saved in MBF format (Single and Double). I've found a topic about that on the MSDN boards but that one only deals with Single values. I'd also would like to stay away from API-Calls as far as ...
We are using SHDocVw.InternetExplorer in VB.Net to navigate to a web page and insert the login credentials since we have to log into multiple accounts throughout the day.
We want to be able to be logged into to multiple accounts in different windows at the same time, but I don't know how to get a new session started.
If I log into acco...