vb.net

saving a string as a csv file?

in a winform how do i get one of those fancy windows "save file as" dialogues to appear so that the user can save a string as a file to a user-specified location on their hardrive? ...

you have four numbers, how do you figure out which one is greatest?

title says it all! is there a very simple algorithm to figure out which of 4 numbers is the greatest? ...

ASP.Net MissingMethodException - "ctor" method not found

We are getting intermittent problems on a production server that we cannot recreate. There are two very strange things about the issue. Firstly it's a method not found error on the constructor (ctor) for an exception handling helper class and secondly we have custom errors switched on for remote users and this property is being ignored....

Using FLASH with ASP.NET - YAY or NAY?

I know i can use AJAX and SILVERLIGHT with my ASP.NET web page. But what do you think about using flash with asp.net? Can this be done? How can this be done? Would you recommend me using flash at all with ASP.NET? I will NOT be using WEB SERVICES, just a plain ASP.NET website. Thanks in advanced! EDIT: What about performance issues??? ...

Is it possible to use the "impersonate" function with a string (username) rather than intptr?

The System.Security.Principal.WindowsIdentity.Impersonate function takes a System.intptr parameter, which seems awfully useless in my situation (with my limited understanding). I am developing an intranet application that uses integrated security to authorize users page-by-page against a role associated with their Windows Identity. I...

How to change this find control for drop down to text box?

I am trying to select a value from a drop down control before it was text box. I have given the same ID for drop down which was similar to the text box. Below is the code: Do counter=counter+1 tempPanelInputBox = form1.FindControl("txt_" + panelUsed + "_input" + counter.ToString()) Loop untill counter=CounterEnd a...

installing application published in vb.net?

i built a very simple application in vb.net, installed it, it worked. then i did some very slight updates, build it, tried to install it but got the following errors. i restarted computer, uninstalled app for the uninstall menu, and tried to run setup.exe and still have been getting this error. can someone help! PLATFORM VERSION INFO ...

clickonce nightmare System.Deployment.Application.DeploymentDownloadException

anyone know how to fix this? this is what i get when i try to run setup.exe PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3053 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000) dfdll.dll : 2.0.50...

another way to publish besides clickonce?

does vb.net have a different way to build an application without using clickonce? ...

Null returned when selecting a node in XML document

New to XML. I have a 3rd party webservice that supplies an XML document that I have to update the element values and pass back. The core issue issue is I get an NullReferenceException error when calling the node.RemoveAll() method in the code below. I'm calling the RemoveAll() method because each element has the xsi:nil attribute whe...

XPS to Word 2007

Is there a way to convert XPS to Word or RTF using VB.NET? ...

what's wrong with my xml formatting?

can someone please tell me why this xml formatting is incorrect and why my vb.net application does not want to read it? http://sites.google.com/site/shadchanproject/Home/lots1.xml is it OK to have an apostrophe between the tags? my vb debugger is saying: Invalid character in the given encoding. Line 33, position 10. (this is where i p...

Detecting remote desktop connection

Is there anyway, in a program, to detect if a program is being run from inside a remote desktop session or if the program is being run normal in .NET 2.0? What I'm trying to do is, I create a timeclock application which will clock a person in and out and keep track. But this particular person, I suspect, is remoting into their computer a...

when running project, not all form_load code runs

this code was just working! but for some reason it stopped to work now. when i run this project the following code is supposed to execute but it does not! please help. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim xmldoc As New System.Xml.XmlDocument() 'Load from file...

Error while adding a dropdown in website

I am getting the following error while i submit a form after i added a dropdown box in my designer System.NullReferenceException: Object reference not set to an instance of an object. at WebApplication1._Default.collectEmailBodyText() in C:\v1.5_production_05June09\Default.aspx.vb:line 219 Below is the extra two lines that i added in ...

How do I call a SQL Server 2000 DTS package in VB.net

How do I call a DTS from a VB.net application? ...

Dropdown probem

Below code i have to ammend for adding a dropdown in my asp website. I have already added could you please check what is wrong. Function collectEmailBodyText() Try Dim counterEnd As Integer = subActivated_HowManyControlsInAPanel() Dim counter As Integer = 0 Dim tempPanelLabel As Label ...

Struggling with VB .net Lambdas

I'm trying to use lambdas in some VB.Net code, essentially I'm trying to set a flag when databound is called. Simplified it looks like this: Dim dropdownlist As New DropDownList() dropdownlist.DataSource = New String() {"one", "two"} Dim databoundCalled As Boolean = False AddHandler dropdownlist.DataBound, Function(o, e) (databoundCall...

Why Setupper created by Publish feature does not copy files to c:/PROGRAM FILES

I have VB project and I tried to use PUBLISH feature. It seems to create nicely some kind of setup program, but the setup program does not ask where to copy files (it does not seem to copy filesto target machine "PROGRAM FILES".) Is this setup program somehow different from usual installers? NOTE: I want that app files are installed to...

Refreshing a page continuously crashes IE

I need to poll the server for updated contents. So I added a META REFRESH tag to the page. But it seems that META REFRESH has memory leak issues and it crashes IE. What is the best way to poll data from server continuously? My app is quite old (partly ASP and partly asp.net). I can't invest on technologies like HTTP Push... ...