Private _bgWorker As BackgroundWorker = Nothing
Private _bgWorkerMessage As String = String.Empty
Private _bgPercentComplete As Integer = 0
Private _dictQueries As Dictionary(Of String, String) = New Dictionary(Of String, String)
Public Sub New()
_dictQueries.Add("IPB", "")
_dictQueries.Add("Figure", "")
_dictQueries.Add("Pa...
Hello,
I have found this example on StackOverflow:
var people = new List<Person> {
new Person{Name="aaa", Salary=15000, isHip=false}
,new Person{Name="aaa", Salary=15000, isHip=false}
,new Person{Name="bbb", Salary=20000, isHip=false}
,new Person{Name="ccc", Salary=25000, isHip=false}
,new Person{Name="ddd", Salary=...
I am attempting to use the VB.Net Excel COM interop to programmatically change the location of the first horizontal page break on an Excel spreadsheet being generated by the program. Code to do so is as follows:
Dim range As Excel.Range
xlActualWS.Activate()
xlActualWS.PageSetup.PrintArea = "$A$1:$K$68"
range = xlActualW...
I have taken over support of an application at the company I work for. All of a sudden, the customer wants to be able to enter a registered trademark in a name field. The symbol, using ALT+0174, is being saved correctly, but the app is not encoding it properly. Essentially this is what I'm doing:
Private Sub btnSave_Click(ByVal s...
i have many aspx pages in one folder (100 pages) and they will keep increasing. I have 1 vb.net file which has the code for these pages. Can i call that pageload event in vb.net file from all these pages?
currently im using this code, but its not reading the pageload event.
<%@ Page Language="VB" %>
<script runat="server">
Protected...
Hello,
SEE BOTTOM OF THIS POST FOR UPDATE ON THIS PLEASE.
I have the below code that searches through directories and displays the largest file in the directory. the problem is that it displays it in KB - how on earth do I convert it to MB? The file size comes out way too large so want easier reading - thanks for the help:
Private Sub...
C# or VB.NET suggestion are welcome.
I have the following code to create Excel file with NPOI. It's working fine. I need to apply the cell style to those rows in the loops.
Dim hssfworkbook As New HSSFWorkbook()
Dim sheetOne As HSSFSheet = hssfworkbook.CreateSheet("Sheet1")
hssfworkbook.CreateSheet("Sheet2")
hssfworkbo...
Hi Guys,
I am Newbie in XMPP . I want to create chat application in VB.net using XMPP .
i am having ejabberd serverin my pc.
i dont know how to intract with ejabberd server via VB.net.
...
Dear All,
I have a small requirement and that is as follows:
I am populating a ListBox using stored procedures and the ListBox is populated as follows:
lstItems.DisplayMember = "emp_name"
lstItems.ValueMember = "login_id"
lstItems.DataSource = accessFunction.getEmployees
The ListBox gets populated correctly. After it is popul...
I have an VB.Net Console Application running and I do not want it to close when the user hit the ENTER button, rather I want it to close when they type EXIT and then press ENTER. What should I do?
...
I want to manually add two items as "Active" and "Inactive" in a ListBox. When the user selects "Active", i want to get the value "A" and when "Inactive" is selected, i want to get "I".
How do i do this in VB.NET.
Regards,
George
...
Hi,
I'm currently having to use someone else's login on this PC, basically because I'm the guy who replaced him at the company, and he's now living somewhere on another continent, and nobody can get this project he was working on to set up on any other machine...
Anyway, I'm trying to access the "My" namespace, and it's missing everyth...
I am trying to use an timer control in my console application Friend WithEvents XTIMER As System.Windows.Forms.Timer I am getting its all the properties.I have set the interval to 15000 ms.but even if i am setting the enabled state of the timer control to be true,the tick event is not firing.Can any one help me out please!!!!! Thanks ...
This may be a strange question and have no answer but I thought I would post it to see how you would go about doing it. I have a line of code:
Grade = Math.Round((Math.Abs(CorrectAnswers) / TotalQuestions) * 100)
Basically that line just figures out the grade no major code work there, what I want to do is execute that specific line wi...
I am using Datagride and I have a I have passed some parameters in it the code is as follow:
<asp:TemplateField HeaderText="Download">
<ItemTemplate>
<asp:LinkButton ID="lnkname" runat="server" Text="Download" PostBackUrl='<%#"~/logout.aspx?ID="+Eval("ID")+"&category=mobile"%>'></asp:LinkButton>
...
Still having trouble can you please help?
This needs to be written in Visual Basic
Here is a statement from the Main part of the program...
mylist.ForEach(AddressOf ProcessLink)
What this statement says is the following.... "For each item in the ArrayList "mylist" send item to the sub program "ProcessLink"
Note that ProcessLink is ...
My app fails at this line of code:
Dim objConnection As New SqlConnection(Application("ConnString"))
My connection string is:
"Server=testAITSQL;Database=SSCommerce;UID=PlanoWebApp;PWD=XXXXXXXX;"
I googled this problem and the solution for it was having a malformed connection string where the "provider" was being specified when it ...
Well guys I am in a bit of a pickle here...
I am doing some exercises on encrypting data. One of them are binary files. I am currently using triple DES to encrypt and decrypt the files both in VB.NET and C#...
Now the thing is, once it is decrypted in VB.NET and saved, i can execute it again...
But for some reason, my C# file is bigge...
hi,
I am doing code conversion from JavaScript to vb.net. I am stuck with the >>> operation.
see the sample code and my attempt below:
JavaScript:
function test(a, b){
return (a << b) | (a >>> (32 - b))
}
my attempt in vb.net:
Private Function test(ByVal a As Integer, ByVal b As Integer) As Integer
Return ((a << b) Or (...
Hi - learning about loops (still a beginner) in VB.net. I have got the below code and basically it is meant to stop the loop once it reaches a number above 20. Now, the problem is that it does stop after number 20 but the last number that is displayed in the list is always above 20.....any idea how I can stop it showing the last number a...