vb.net

How to store selected value from DataGridViewComboBoxColumn?

VB.NET 2008 .NET 3.5 Using WinForms. I have a class that is bound to a DataGridView through a BindingSource. This class contains a List as one of it's properties. The List contains another custom class. Both classes are part of an automated shipping program: Class OrderShipment Public Property OrderID as String Get ...

Determine location to install software with click once deployment

I would like to make sure that my application is installed in the correct location on the hard drive or allow the user to determine the install location. How can I do that? Thanks ...

MS Runtime required for app to run, how can I include with setup?

My application requires access to be installed on the computer or at least the MS Access runtime. Is their a way to include that with the application to check for that component/resource or install it if it isn't? Or would it just be easier to include a link to tell the user where to get the runtime if the error happens? I am using V...

How Do You Create A Panel in WPF that Can Be Dragged Outside the Main Window?

Trying to replicate the docking controls in Visual Studio 2008. My application replays the RADAR environment for the FAA and I want the ability for dual monitor users to drag the control panels to the other monotor to leave the main canvas clear. This functionality is similar to the way the different panels in VS can be dragged outside...

asp.net vb user control raising an event on the calling page

i'm trying to learn about user controls. I created a user control that has a textbox and a button. What i'd like to be able to do is when i click the button in the user control, populate a label in the aspx page. I understand that i could just have a button on the page that uses some properties on the user control to get that informa...

What is the preferred method of building extremely lightweight business object / DAL now that I have finished a simple database?

Hello, I have completed a simple database for a project. Only 6tables. Of the 6, one is a "lookup" table. There is one "master" table that is the driver for the system. It is referenced as a foreign key by the other four tables. Give that this step is completed. What is the FASTEST, EASIEST way to create POCOs/BizObjects that can l...

linq to xml query with potential empty parameters passed

I have several columns that I'd like to search against. My code might not get passed anything for a given column to search against. So for the example below either lastname or firstname might be an empty string. Whenever I search against a column with an empty string it messes up the query. I've fixed the problem by checking to see if...

.NET Window Capture

Good day, I would like to know if the .NET framework gives you a way to retrive the littles thumbnails Windows XP+ generates when you alt+tab. The application I try to make should be able to get a window capture (ALT+PrtScr) of another Window that is not necessary Active and could be partially or completly hidden behind another one. I...

Quick fix, Read text in a text box?

I have a simple text reading code for Visual Basic: Dim fileReader As String fileReader = My.Computer.FileSystem.ReadAllText("C:\test.txt") MsgBox(fileReader) I have used this in the past, but I usually make the text display in a text box. I know this is sort of a "newb" question but I can't remember how to display the text in a textb...

Referencing both an old version and new version of the same DLL (VB.Net)

Consider the following situation: WidgetCompany produced a .NET DLL in 2006 called Widget.dll, version 1.0. I consumed this Widget.dll file throughout my VB.Net application. Over time, WidgetCompany has been updating Widget.dll, I never bothered to keep up, continuing to ship version 1.0 of Widget.dll with my software. It's now 2010,...

Continuing education with Visual Basic 9

I am completely new to programming and starting my education with visual basic 9 and SQL. I have read Visual Basic, in easy steps, 2nd edition by Mike Mcgrath. Although it was very easy to understand, it only gave me an introduction to learning VB. I'm looking for something more in depth, albeit for a beginner. I've read through the q...

2 listbox to exchange value with DBML

Hi, i'have two Listbox. the think is i do the transfert like : click on field in the left listbox, hit "move right" button and it wll display in the right list box.' The other think it's the first Listbox is bind on Dataset and the second on Entity (Linq-to sql). So when i click on the move next i do that : Dim newSite As New List(Of v...

What is wrong with this Anonymous Object Initializate Syntax?

What is wrong with this Anonymous Object Initialize syntax? If (Not row Is Nothing) Then Dim info As New CultureInfo(Conversions.ToString(row.Item("cultureId"))) With { _ .NumberFormat = New With {.CurrencySymbol = Conversions.ToString(row.Item("symbol")), _ .CurrencyGroupSeparator = Conversions.ToStrin...

problem in subreport

suppose i have 2 schema,i.e. fy0910 and fy1011.so when i see the report in schema fy0910 or in fy1011 i have to change every time the schema reference for the subreport,but when i see the report in the specific schema after setting the schema reference then there is no problem in subreport but when i go to another schema then again i hav...

I've caught an exception!! Now what?

Hi folks, I've started using try catch blocks (bit late i know!) but now im not sure what to do with the exception once i've caught it. What do people usually do here? -- Jonesy Try connection.Open() Dim sqlCmd As New SqlCommand("do some SQL", connection) Dim sqlDa As New SqlDataAdapter(sqlCmd) ...

crc32 decrypt short string

I am retrieving lists of crc32 hashes that contain names of files, not there contents. I need to be able to decrypt the strings which are hashed names like "vacationplans_2010.txt" which are less then 25 characters long. is this possible? ...

How to populate a listview in ASP.NET 3.5 through a dataset?

Is it possible to populate a listview with a dataset? I have a function that returns a dataset. Why im asking this is because my SQL is quite complicated and i can't convert it to a SQLDataSource... Public Function getMessages() As DataSet Dim dSet As DataSet = New DataSet Dim da As SqlDataAdapter Dim cmd As SqlCommand D...

Storing SMTP credentials for a VB.Net application

sHi folk, I've been storing SQL connection strings in web.conf which is fine but now I need to store SMTP credentials somewhere protected. web.conf seems like the likeliest place since its protected but how can they be stored? I've added the details to my web.conf but amnot sure how to reference them <system.net> <mailSettings> ...

VB.Net Question

I am working on a VB.Net project and trying to get it to pull data from a database. I have the data base located in my bin folder with in the project but I do not know the exact path how to do it. The code that I am using is noted below Private Sub btnTotalTravelCost_Click(ByVal sender As System.Object, ByVal e As System.Ev...

Creating a web chat facility in visual studio 2008 using Visual Basic

I am creating a web chat facility in visual studio 2008 using Visual Basic,I want to be able to highlight certain keywords that are sent and received to each user, can someone please tell me how I can do this? Thanks in advance ...