vb

TCP Freezing with VB .Net

Hello, I made a game in VB .Net that uses tcp and sends messages back and forth. What is happening is, every so often, the message cannot be sent quickly enough, so then the TCPObj.connect() method goes into a loop, until it reaches the timeout and then spits out an error. Most of the time though, it never gets to the error, my applica...

Download the html text collected in a string builder to word document in VB.NET Console Application

I have a requirement to move the html text available in a string builder to a word document and open the word document after the data is appended in a VB.NET console application. I am new to console applications and am not sure how this could be done, but I am aware that if I am using a Web Application then I can use the following code: ...

C++ style menu bar in VB .Net?

Hello, Ive been looking a long time for this, but can't seem to find it. When I add a menu strip in vb .net, it looks like this: and I want it to look like the WinRar, Calculator, Notepad etc menus like this: From what I gathered, in vb 6 you could create a mainmenu and do it this way, but in vb .net it seems like all there is is...

Why does WatiN timeout when it is indirectly called by a unit test?

I'm using WatiN to run IE inside a VB .NET function: Dim ie8 As New IE("[some website]") Login(ie8) Logout(ie8) It runs perfectly fine when I call the function from a console application. However, when I call the function from a unit test, then WatiN throws a TimeOut exception on the Dim statement. I tried putting: Dim ie8 As New I...

Brightness/exposure function with vb .net

Hello, I'm making a simple image editor in vb .net, and one of the functions is brightness/ exposure. this is how I'm doing it: For i = 0 To img.Width - 1 For j = 0 To img.Height - 1 Dim s As Color = img.GetPixel(i, j) Dim r As Integer = s.R * 2 Dim g As Integer = s.G * 2 Dim b ...

MS Excel 2003 - Anyone know how to delete rows that contain duplicate data?

I have an excel spreadsheet that has about 18k rows and three columns. I want to use this as a key in an Access database. So the three columns are [IDKeyNumber] [Name] [Category] The problem is in certain places the IDnumber is duplicated because the category has two category codes (typeA & typeB) All I really need to know how ...

Concerned with datalist

hi guys, I have a datalist.My designer code is like this. <asp:DataList ID="dlView" runat="server" CssClass="basix" RepeatColumns="4" > <ItemTemplate> <tr> <td> <asp:Image ID="imgPlan" runat="server" ImageUrl='<%#GetImage(Eval("ImageName")) %>' /> </td> <td> <asp:LinkButton ID="lnkChangeLogo" runat="server" Text="ChangeLogo"...

C# Implement Late Binding for Native Code

We are working with an existing native application (most likely written in VB) that loads assemblies and calls methods with "Late Binding." We do NOT have access to its source code. We want to implement this interface in C#, and have the native application call our C# assembly. Is this something that's possible? Is this anything we h...

Intercepting combobox dropdown

Urgh, I have spent the last couple of hours on this now. I normally end up finding the answer from a bit of Googling, but not with this one. Bit of a headache. My questions: How can I catch when a user clicks the dropdown arrow on a combobox and prevent the dropdown list from being displayed. How can I then clear and populate the dr...

Weird behavior when adding heading/footing around Word Table programatically

I am writing a macro to insert a Word table and surround it by a heading and footing, the heading and footing are pre-edited into a couple of documents. My macro is doing this: insert the heading from an external doc ask the user for table dimension and create the table insert the footing from an external doc I am getting a weird be...

References failing to import to a VS 2005 (VB) ASP.NET Web Service Application Project

I have this VB ASP.NET Web Service Application project running VS 2005. I'm trying to add references. To do so I click on the "Properties" icon in the Solution Explorer window which presents me with a window to add/update/remove references. I click "Add", I select the reference I want and then "OK". Lo en behold, NOTHING! It simply won't...

Is it possible to call C# dlls from Visual Basic code contained in a Word 2007 file?

I have some Visual Basic methods that are acting as the click handlers for a custom Word Ribbon. Unfortunately, I already have the implementation of what the handlers have to do written in C# which is loaded into the Word document as an XML Expansion Pack. I don't see any way to add a reference to the C# .dlls to Word's Visual Basic Ed...

Access 2003 - Front End GUI Display question

Just wondering, is there a way to tell access to only display the forms/reports without displaying the access window itself (the "shell" window that the access forms populate inside of). just wondering. ...

How do I compare the size of executeables in VB6?

I have a project where I need to compare 2 executeable files and see if they are of the same file size. Unfortunately, this is an addition to an existing VB6 project. I'm not entirely sure how to do it other than compare filestreams? Could someone point me in the right direction? Thanks in advance for any help. ...

Where can I learn about visual basic? A video guide would be great.

Where can I learn about programing and visual basic? A video guide would be great. ...

VB, VB.NET, Lotus Script: Script to copy address entries.

I am looking for the possibility to copy all (backup) my address book entries into plain text, or CSV, or XLS from Lotus Notes mail client. My aim is to later copy these details into Outlook. Is it possible. I haven't done lotus scripting before. But I am going through the reference links. If possible provide links or pointers for accom...

To display Number With 2 Decimal Places

hi guys, I have a field in datatable .If 1000 is the value in it, i want to display it as 1000.00.Then if user changes to 1000.50 it should display as it is.Is there anyway to do this?Can anybody help? ...

class not registered

I am installing an application on a client machine. The application is throwing an exception that I am logging that states "Class Not Registered". This an app written in Visual Studio 2005 using VB.NET. The dll dependencies of my .exe are located in the same folder as the .exe. What class is this talking about and how can I resolve t...

I need to round a value up in vb.net

Hallo I,m developing a debt calculation program 'my problem is when i have to calculate the months to pay back the debt it comes to 28.04 and i have to get it to 29 can some one pls help me out. Thank you in advance my code looks like this: Dim b, SubMtP As Integer Dim outsUm, si outsUm = TextBox1.Text SubMtP = Forma...

Looking for VB and C# Textbooks/Resources

I currently have some time on my hands at work and want to advance my vb/c# skills. I have found that most of the tutorials/resources on the net are fairly basic. I am looking for intermediate to advanced exercises. I have seen the books that people have recommended in other posts here on Stack Overflow and they look great. It's just t...