vb.net

How can I include Flash in VB.NET?

I would like to create a .exe wrapper for a Flash Player using VB.NET. I am having a few problems. 1.I seem to remember being able to import Flash Player as a control into Visual Studio (2008 Pro). For some reason, I can't seem to VS to import it anymore. (I tried using the OCX from Visual Studio) Perhaps I'm looking for the wrong file....

Exporting HTML to Excel Without Losing Formatting

Hi, I have a asp.net page that generates a report. For better or for worse, the entire thing is generated using nested tables. I am able to export the page to excel, however I lose all my formatting (can't set column widths, etc). Is there a way to handle this? I'm open to adding any goofy MS Office -specific tags that are required...

Need to use COMM port 2 to get information from a device. .Net doesnt support it though

I am writing a vb.net app that has a piece which needs to send a small command to comm port 2 and get the return result. The problem is .net doesnt have any support for serial communication seems like. Please help. I just need to send the command "headtype" and get the result. ...

ImageMagick.Net confusion

I've been trying to use the IsSimilarImage magick method from the ImageMagickNet project but I'm confused as to whether I have to route these methods through the Magick++ as any functionality available to the .net side originates in the Magick++. Has anyone added any custom functions to ImageMagickNet that could shed some light on where ...

How to get property.value from reflection.assembly?

How to get property.value from reflection.assembly? Dim assembly As Assembly = assembly.GetExecutingAssembly() For Each assemblyType As Type In assembly.GetTypes() If assemblyType.IsSubclassOf(GetType(Form)) Then 'Dim name As AssemblyName() = assembly.GetReferencedAssemblies() If assemblyType.BaseType....

How do i send an email using asp in a vb code page?

i tried this: Dim mail mail = Server.CreateObject("CDO.Message") mail.To = consul.Email mail.From = "[email protected]" mail.Subject = subj mail.HTMLBody = Bdy mail.Send() mail = Nothing It gave me the following error: The "SendUsing" configuration value is invalid. ...

Loop with Unique ID?

Hello fellow nerds, I have a database (using Sqlite) that has ID has a primary key with autoinc, that loads the values into a listbox control. If I loop through the database normally, adding the values of the database into my listbox, I can't get the ID by using SelectedIndex because the Index will not always be the same as the ID, and ...

Trying to open a docx file from a bytestream - file corruption error

we consistently get a file corrupted error message when opening a docx file from a saved bytestream, evry other file type works just ok Below is code from a sample form that replciate the issue Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Objective is to be able to...

File remains locked even after calling filestream.close

Hi, In my application, i am downloading file from DMS system to my server. Once the file gets downloaded, on some environment, the iis keeps lock of the file and when the application tries to redownload the file and put the file on same location, an error is generated that file is being used by another process. Following is the code : ...

How to repeat the row values

How to repeat the row values up to end date For Example Table1 Date Name Dept ----------------------- 12-02-2009 Raja IT 13-02-2009 Ravi CSE 14-02-2009 Ramu ECE From the above table value i want to repeat the value between the two dates from 12-02-2009 to 12-03-2009. Expected Output Date Name Dept ...

How to get computer name and IP address with vb.net

How to get the remote computer name and IP address with vb.net !!! We are running a vb.net application on Intranet. We have users in remote areas who use the application. So I would like to know their computername and password. ...

how to validate the groupbox in vb.net?

in my windows application,i had used the groupbox inside that more then text box how to validate the groupbox in vb.net any one provide the code ...

To set CommandTarget of WPF control as Textbox which is written in Win form user Control

i want to set the CommandTarget property of menu item to the TextControl which is written in win form or just tell me any way which can execute the command lets say cut copy paste on the control which is written in win form user control and added to xaml through WindowsFormsHost ...

2 line Active Directory call fails for offshore contractors using VPN to connect to our company network.

we have offshore contractors that are tryingt o run an app that performs the following Active Directory call, shown below in VB.NET Dim objRootDSE As New DirectoryEntry("LDAP://RootDSE") Return "GC://" & Replace(Replace(objRootDSE.Properties("rootDomainNamingContext").Value().ToString, ",", "."), "DC=", "") 'DC=uis,DC=unisys,DC=com ...

How to get convert into date value

How to convert text value into date Textbox1 column value = 31/12/2009 (dd/MM/yyyy) Tried Cdate(textbox1.text) The above code is not working. I want to get a date like this '31 Dec 2009' How to write a code for getting this format. Need vb.net code help ...

VB.Net Multithreading - Please Code Review

I'm new to multithreading and need to make sure the demo code below is implemented correctly. The actual application I need to multithread will be very similar, except I will have to run possibly hundreds of concurrent threads. Please code review. Imports System.Threading Public Class FooBar Private myData As New List(Of String)()...

Is there an intelligent 3rd merge tool that understands VB.NET

I am having problems with our merge tool as sometimes it fails to match the unchanged blocks in the two branches correctly. When this occurs the merge tool becomes useless, and the merge has to be done by hand. Therefore I am looking for a tool that: Understand what VB.NET function/method definitions looks like and gives them a h...

crosstab in datatable

Is there a way to do cross tab in the datatable ? eg : a function as following taking a datable and returning a crosstab datatable Public Function CrossTab(ByVal dtS As DataTable) As DataTable ' Change rows to columns and columns to rows ' The First Column Changes into Row Titles ' The Row Titles changes into the first column End Func...

Ensure a windows service is started from Visual Basic .Net

I have a WCF service being hosted in a Windows Service (using techniques discussed here) and it works great. I'm now writing a (VB.Net) frontend app that needs to call that service, but I don't want my users having to fiddle around with the services snap-in and starting the service manually. Can I write some code to ensure the Windows S...

Is there a source code control system that understands/records c#/vb.net factorings and how to merge them?

MolhadoRef is a refactoring-aware SCM tool that is capable of capturing and versioning of the semantics of Java program entities and refactoring operations that were performed on those entities. Does anyone know of such a system in the .NET universe? (Why is it that .NET always seems to be way behind java with the type of ...