vb.net

Is there a way to prevent .NET from ever disk caching a variable?

I'm not sure I wrote the headline right, but I've got a service that holds a password in memory. It's notification thing, and so will be running 24/7 ideally. It uses a password to some other resources that I send to it at startup in a UPD packet. I'd like to find a way to instruct windows never to stick that value in the disk cache s...

Can't hide button when mouse leaves form...

Hi, I have a form where I want buttons at the very bottom edge of the form, with no gap to the border. These buttons shall be "auto-hide", so they only show when the mouse is in for example the lower 20 pixels of the form. So I use the MouseMove event to trigger this, like code below. However, if mouse leaves the form across the bottom ...

Error in DataReader is not closed

Can anyone help me on how this error came up There is already an open DataReader associated with this Connection which must be closed first. the error fails when it trying to read this code. transConn = mySqlConn.BeginTransaction(IsolationLevel.ReadCommitted) Is there is a connection between the Datareader and in initializing the tr...

Can't see an assembly in add reference dialog box after installing it in gac

I have created a shared assemby MyLibray version 1.0.0.1 and installed it in gac. Again I created MyLibrary version 1.0.0.2 and installed it in gac. See the gac screen shot. But in Add Reference dialog box only older version 1.0.0.1 is available. See the screenshot. ...

Excel UDF 'not a valid addin' error

I am trying to create a custom vb.net Excel 2007 function (UDF) using VS 2010 and have gotten to this stage (borrowing heavily from Eric Carter's example at http://blogs.msdn.com/b/eric_carter/archive/2004/12/01/273127.aspx): Namespace AutomationAddin <Guid("1aeeb1b5-e099-4f7f-aeb0-3e9f19b64f62")> <ClassInterface(ClassInterfaceT...

Launching a Child Process and the windows 7 taskbar

We have an application that self-updates using a Laucher.exe process which copies down new App.exe and DLLs from a server then runs them in a separate process. This was all working very well until the arrival of the Windows 7 taskbar... Problem is in Windows 7, if the user pins the Launcher.exe to the task bar (by right-clicking the sh...

Adding usercontrol twice in asp.net

Hi, I got a user control that has a few links, one of them is "add article". It's placed on top of the article and bottom of it. When the user clicks on it, the text changes to 'article added'. But the text only gets changed for one of the links which has been clicked on. How can I make it so that both text changes no matter which one ...

An exception that cannot be caught?

Hey, I have the following code in my files: In Class Customer.Page: Try If Not SiteContent.CurrentUser(False) Is Nothing Then If Not SiteContent.CurrentUser(False).IsAdministrator OrElse SiteVariables.CustomerMode Then SiteContent.PageViewManager.Create(New List(Of Control)) End If Else Site...

How to suppress VB's "Iteration variable shouldn't been used in lambda expression"

I'm working with LINQ in VB.NET and sometimes I get to a query like For i = 0 To 10 Dim num = (From n In numbers Where n Mod i = 0 Select n).First() Next and then it comes the warning "Using the iteration variable in a lambda expression may have unexpected results. Instead, create a local variable within the loop and assign it the...

Multiple Tasks is one Click Event

IS there any method to perform two different tasks in one click event Like By clicking OK button i can do 1- Instantiate a new form 2- Add somthing to listview or can do something else But these tasks not to me simultaneous. One task at a time Please if any one can help then i shall be thankful to him\her ...

Using an IN clause in Vb.net to save something to the database using SQL

Hello, I have a textbox and a button on a form. I wish to run a query (in Vb.Net) that will produce a query with the IN Values. Below is an example of my code myConnection = New SqlConnection("Data Source=sqldb\;Initial Catalog=Rec;Integrated Security=True") myConnection.Open() myCommand = New SqlCommand("UPDATE dbo.Recordings SET S...

Using drupal profile date in vb.net

I am using drupal databas ein one of my application. Drupal profile saves date in following format: a:3:{s:5:"month";s:1:"2";s:3:"day";s:2:"18";s:4:"year";s:4:"1995";} I can read this with data reader but how to convert in a proper display like DD/MM/YYYY or YYYY/MM/DD ...

Check if dataset contains a specific value

Hi, How can i check if a dataset contains a specific value? It's crazy that no one has done this before. Couldn't find it on the net!!! ...

Adding application to startup of Vista or Win7

Hi, How can I add application to startup of VISTA or Win7, using Setup and Deployment package? Thanks Furqan ...

Trying to stop using asp concepts in asp.net...

Hello, I get the feeling I am still using asp type scripting techniques in the script below instead of proper asp.net scripting... If this is true, how do I do the below the proper .net way? <%@ Page Language="VB" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SqlClient" %> <%@ Import Namespace="System.Tex...

VB.NET DrawRectangle For A Table

I want to draw a table in my print output using the System.Drawing.Printing's Graphics object. I'm trying to use the DrawRectangle to draw my table cells. This requires drawing several rectangles in a row. It should be pretty easy, right? Well it appears that DrawRectangle four parameters are x, y, width, and height. However x and y are...

Why my program doesnt work without the help of visual studio?

I am really confused! My program doesnt work if I dont have visual studio here in my pc. To test it I have uninstalled visual studio. But my program doesnt work though flash player is present there(I have used flash animation in first form). To be more sure about it I have installed Flash. But its not working! That means flash animation ...

vb.net PDF integration

We have a database that has decompiled data versions of PDF files stored as blobs. The old method to retrieve the information was to grab the blob, compile the file on the local disk, and then use process.start to launch the new .pdf file that was created. I guess I am looking for a class that can accept the decompile PDF data, turn it...

include javascript query parameters in URL?

I am currently working on downloading the data automatically on this page: http://jcmramp.pjm.com/jcmRamp/ramp-data.jsp I would like to somehow be able to control the URL so that, say, when I use the URL: jcmramp.pjm.com/jcmRamp/ramp-data.jsp?directionSlt=1 the option selected for Location parameter would be PJM and when I do jcmr...

How to pass the id of the parent to the create view of a child

I'm new to MVC2 and my question should be pretty basic. At least I thought so until I could'nt find any answer on the web, so here I am. I have a parent object Pool that can have 0 to many children Question. In my Details view of Pool, in addition to the Pool's property, I render his childs using RenderAction on the Question action Lis...