vb.net

Combine multiple dataset columns to one dataset

I have multiple datasets that I would like to combine into one. There is a common ID field that can be associated to each row. Calling Merge on the dataset will add additional rows to the dataset, but I would like to combine the additional columns. There are too many fields to do this in one query and therefore would make it unmanagea...

list(of byte) to Picturebox

I have a jpeg file that is being held as a list(of Byte) Currently I have code that I can use to load and save the jpeg file as either a binary (.jpeg) or a csv of bytes (asadsda.csv). I would like to be able to take the list(of Byte) and convert it directly to a Picturebox without saving it to disk and then loading it to the picturebox...

Trying to create a WPF Touch Screen Keyboard Appliaction, Can't get WPF App to Send Keys to another window? Any suggestions?

My touch screen keyboard is highly customizable interface and has every component I need except for sending keys, anyone see a problem with this. Originally when I was creating it I was going to use the Forms.SendKeys.Send() but it's a WPF application... no go. For starters VB.Net in its infinite wisdom decided it would not handle defaul...

Possible to implement an IsViewPortVisible dependencyproperty for an item in an ItemsControl?

I need to enable/disable spell checking in a richtextbox in an ItemsControl, based on whether the RichTextBox is visible in the ItemsControl's Scrollviewer. I think the route is to implement an IsViewPortVisible dependency property and wire an event handler for a changed event... I found this article that describes the lengthy process ...

Error exposing event through interface

I have this interface Interface IProDataSource Delegate Sub DstartingHandler(ByVal sender As Object, ByVal e As EventArgs) Event starting_Sinc As DstartingHandler End Interface Trying to use the interface like this Public Class DataSource : Implements IProDataSource Public Event starting_Sinc As DstartingHandler Impl...

How to do this in VB 2010 (C# to VB conversion)

I would like to have the following to be translated to VB 2010 (with advanced syntaxes) _domainContext.SubmitChanges( submitOperation => { _domainContext.Load<Customer>( _domainContext.GetCustomersQuery(), LoadBehavior.RefreshCurrent, loadOperation => { ...

How best to implement "favourites" feature? (like favourite products on a data driven website)

Hi, I have written a dynamic database driven, object oriented website with an administration frontend etc etc. I would like to add a feature where customers can save items as "favourites", without having to create an account and login, to come back to them later, but I dont know how exactly to go about doing this... I see three options:...

Optimize LINQ Query for use with jQuery Autocomplete

I'm working on building an HTTPHandler that will serve up plain text for use with jQuery Autocomplete. I have it working now except for when I insert the first bit of text it does not take me to the right portion of the alphabet. Example: If I enter Ne my drop down returns Nlabama Arkansas Notice the "N" from Ne and the "labam...

shortcut in toolbar

how to create shorcut key in toolbar or shortcut to call both procedure or function ...

Problem using DataGridView Control of VB.NET 2008

Hi, I am using VB.NET 2008 based on Framework 3.5 I use a datagridview control on a form and the form's load event as follows: Private Sub frmServiceSettings_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load With dgvFinishedProduct Dim myCombo As New DataGridViewComboBoxColumn ... I...

How to capture each frame of a USB webcam using VB.net?

While I have got some leads from an older SO post and from this site, I haven't been able to figure out how to capture each frame of a web-cam. What I would like to do is something like this capture a frame then do some image processing on it and display the output and then move on to the next frame. Can I can access to web-cam frame ev...

How to solve the performance decay of a VB.NET 1.1 application?

I have single-thread windows form application written with VB.NET and targeting Framework 1.1. The software communicates with external boards through a serial interface, and it mainly consist of a state machine that run some tests, driven in a loop done with a Timer and an Interval of 50ms. The feedback on the user interface is done thr...

How do i get (is it possible to) a reference to the class that creates an instance of another class.

Odd situation... I need to create a new instance of a class that needs a member of the calling class. But i can't pass a reference to the calling class through the constructor. The solution i am looking for is something like this: Public Class ChildClass Public Sub New(args) _MyMember = GetMemberFromCallingClass() ....

multiple Button click

hello there i have 5 buttons in row (btn1,btn2,btn3,btn4,btn5) and 1 OK button when i click indivisually to each button of 5 buttons its color changes to red and after click on OK button the color of buttons which are red turns green the problem is that i don't know how to insert induvisual record of each button of which color is gree...

C#. Document conversion to PDF

Hi. I need to convert below mentioned file formats to pdf using C#/VB.Net. User will upload the file using FileUpload control and system will returns the pdf file after converting the document. doc/docx to pdf xls/xlsx to pdf ppt/pps to pdf Does ITextSharp provide such facility ? Please Only mentioned open source or free libraries. T...

Am I thinking too complicated? How can I simplify this piece of code?

Well sometimes, I believe am thinking toooooo complicated or just got tired of thinking too much or something else that you could point. I am trying to copy the pager found in YouTube for a Windows Forms application of mine. And here is what I have done so far: Private Sub btnPrevious_Click(ByVal sender As System.Object, ByVal e As S...

Can Visual Studio 2010 outlining be fixed for VB.NET?

After upgrading from VS 2008 to VS 2010 we have noticed a few annoyances (including issues with resource based imagelists on 64bit systems), but none have been as bad as the way VS 2010 shows outlined methods for VB.NET. Previously in VS 2008 when a method is outlined you got the method outline with correctly colored keywords. Now all y...

[VB.NET] Same name methods in different modules cause ambiguity.

I have 2 modules. Each contains a Sub with the same name. See below: Module moduleA Public Sub f(ByVal arg1 As myType) Console.WriteLine("module A") End Sub End Module Module moduleB Public Sub f(ByVal arg1 As myType, ByVal arg2 As Boolean) Console.WriteLine("module B") End Sub End Module But the compi...

How zip folder from vb.net

How to make z7 from vb.net ...

Why does the text property overridden in user control is not showing at design time

I have a usercontrol which overrides the property Text. But this property is not shown at design time. If I rename it to caption or value it is shown in properties at design time but Text is not shown. public Class SomeControl Inherits System.Windows.Forms.UserControl Public Overrides Property Text() As String Get ...