vb.net

stuck while uploading image file in sql server though vb.net

Reposting the same question because after posting, could not edit the question. please read the bottom especially, if u read this question before - ok so this is the code i used from this site. everything works fine, but i need a little different code to upload image, and i dont know what to do - here's the code - Private Sub btnAttach...

VB.NET - Mouse Coordinates

Hello everyone, I have a vb.net application, and I want to know how to find the coordinates of the pointer (mouse) when it is clicked on the form. Not much else to say, so I'll leave it like that.. :D Thanks ...

How do I create a factory object that does not cause an infinite loop

Whenever I try to create a new CD object I get a stack overflow. I want a parameter to be passed into mediaFactory so that it could be determined what type of media is created. Could anyone point out why I might be having problems with this when I do this "Dim media As CD = New CD()" Thanks Public MustInherit Class MediaFactory Inherit...

FIltering what characters can be added to a text box

I have a series of text boxes on my form, and my client wants me to filter out characters that aren't allowed, for example in the name field you cannot have symbols or numbers. Now, he wants it so when you try and put in a special character it simply will not get entered into the text box. I know the logistics to this, but I'm not sure ...

Trigger a javascript click event from vb.net

I have a set of accordian divs (powered by the prototype library) in an asp.net page. I would like to save the state of the accordian, so when a postback event occurs, the same div is open rather than reloading the page entirely and opening the default div. My plan was to set a page control value with the ID of the open div using the di...

How to increment a version number programmatically ??

How do I programmatically increment a given version's number to the next version of the highest one? For example if I have a file Program.exe with the following version numbers : Program.exe 1.0.0.0 Program.exe 1.0.0.4 Program.exe 1.1.0.76 Program.exe 1.0.0.66 The next version number in this case would be 1.1.0.77 What's the easies...

Odd ComboBox behavior on resize

I have an issue where a ComboBox control will change it's Text value when it is resized. Here is some sample code that I worked up: Option Explicit On Option Strict On Public Class FMain Private Sub FMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load uxComboBox.DropDownStyle = ComboBoxSty...

get all form details in vb.net

hello sir, i want list all forms in current project. example listbox1.items.add(form1.name & form1.text) i want load all form details in current project. the following code give for only open forms. For linti As Integer = Application.OpenForms.Count - 1 To 0 Step -1 Application.OpenForms.Item(linti).Text Application.O...

listbox selecteditem error

There have an error "Object Reference not set to an instance of an object" when using objusername.intuserid=listbox1.selecteditem.value. ...

COMPARISON: MS ACCESS & MYSQL

In terms of capacity and performance in manipulating large amounts of data. Which is better, ms access manipulated by vb.net or mysql manipulated by php. ...

In VB.NET create a string from parts of a different string

This string is automatically generated with an application I can't access or change: "http://www.site.com/locale=euen&mag=testit&issue=322&page=5&template=testit-t1" I need to change the string to "http://www.site.com/322_5" where: http://www.site.com/ comes from the previous string 322 comes from issue=322 5 comes f...

Using Html.RenderAction and Ajax.ActionLink together.....

when i do this, i get the ACTION being called TWICE, what should i do about this? if i call html.partial instead to just render the control, then i need to specify all the objects/values manually, which i shouldn't need to do this as the ACTION itself takes care of this stuff. i maeks sense to have both these work together but they don...

Linq to XML how to do this in vb.net

This snippet is from this answer var reports = from report in xml.Descendants("report") where report.Element("name").Value.Contains("Adjustment Report") select new { Name = report.Element("name").Value, Extension = report.Element("extension").Value, FileType = report.Element("filetype").Value, Fi...

Virtual property with private set

I am trying to use fluent nhibernate in a MVC project... i am very new to nhibernate and fluent... It seems the entities should have properties that are virtual and the set should be private for IDs... i use vb language...so tried using overrideable...it gives an error... Public Overridable Property DesignId() As Integer Get En...

How to get image from vb6 MSFlexGrid OLEDragDrop event

I have a VB project that is converted from VB6 to VB.NET. In this, I have a MSFlexGrid that is used as an interop compatibiliy. That means it is somewhat converted to .NET, but internally, many of the mechanisms are still from VB6/COM. I need to drag an image from a PictureBox (which is .NET) and drop it on the flexgrid. This is what ...

What are the distance units in com.vividsolutions.jts.geom.Geometry class?

Our VB.NET project is using a Java library from Vivid Solutoins (com.vividsolutions.jts.geom.Geometry) to do Geometry calculations. The help is here: http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/geom/Geometry.html What I can't figure out are the units specifically for the Buffer property, or any other distance for that...

VB 2008 or VB 2010 Dataset help

I have three forms similar to the one in the link. I want add a Total textbox to every form. The total will add the values that will be entered in the montant textbox. So the total will take the specific value of that texbox for all the entries that the user will have and add them. How I can do so???? Thanks http://i1006.photobucket.co...

Read bytes array

In web service I have function that return bytes array. Now, I call it from VbScript and I need to catch result of this function. How I can catch result of this function in value that is gone be like a value that function return (bytes array)? ...

images vb.net file used by another process error

Hi I'm writing a little program where I select a picture through an open file dialogue. When I selected a picture I want it to overwrite the current picture and display the new image. Now I don't have any problems with picking an image with a different extension. So when I currently have a .png I can select a .jpg but when I choose an i...

Is it too early to start designing for Task Parallel Library?

I have been following the development of the .NET Task Parallel Library (TPL) with great interest since Microsoft first announced it. There is no doubt in my mind that we will eventually take advantage of TPL. What I am questioning is whether it makes sense to start taking advantage of TPL when Visual Studio 2010 and .NET 4.0 are relea...