vb.net

saving key in application settings

i am starting to use cryptostream class. i may be wrong, if you encrypt something, close the app, and then try to decrypt it, it will not be able to because a different key will be generated. because i do need this functionality, i am wondering if it's possible to save the key in application settings and whether this is the right way to ...

Exercises to advance a student programmer on down time?

Currently on an internship from my CS degree, we have some down time and I'd like to spend it working through a series of problems (although none too large) that would advance my programming skills and allow me to dip my toes in a large breadth of different topics and areas. Unfortunately, everything I do must be done in vb.net on .net ...

Preserve RichText formatting when storing in a database?

Hi, I've created a rich text box which stored the "textBox.Text" value in an SDF database. The storing works, but the formatting seems to be lost. Is this something that SDF databases can't handle? Do I need to store in binary or something? Not sure how to do that either. I'm using Visual Basic Express Edition with Winforms and writing...

Get Class of a DIV through VB.net

I'm working on a web app that uses javascript to change the classes of 3 div's depending on what buttons the user has pressed. Is it possible to get the value of the current class of a div? I tried adding runat="server" to the div tag and then using... thediv.Attributes.CssStyle.Value ... to get the value of the class. But it is re...

Merging 2 data tables in vb.net

Hello all: I have 2 DataTables in vb.net. Each is populated from it's own stored procedure. Table A contains a project number in the first column. Table B also contains the project number in the first column. Table A could have many records that have the same project number, but Table B will always have just one record in it per pro...

How do I access Collection keys during For Each in VB.net ?

I have some code like this: Dim col As Collection = New Collection col.Add(value1, "key1") col.Add(value2, "key2") ' later... For Each item As String In col ' want to get valueX and keyX here; currently, "item" holds the value Next How can I get both the value and key within the loop? Maybe there is another class that makes this ...

ASP.Net: Element <name> Is Not A Known Element

I've been trying to use the AutoComplete Extender from the ASP.NET Ajax Control Toolkit, however I've been having tons of trouble getting it to actually work. To install the AjaxControlToolKit, I've placed it inside my application's bin directoy, then I just dragged and dropped the control into the form. However, it keeps saying, "Ele...

considerations for saving data to ONE file or MULTIPLE?

i am going to be saving data with DPAPI encryption. i am not sure whether i should just have one big file with all the data or should i break up the data into separate files, where every file is its own record. i suspect the entire dataset would be less than 10mb, so i am not sure whether it's worth it to break it down into about a few h...

opening and saving file without save/open dialogue

i would like to do FILE I/O without a dialogue. the file always be the same and the location will always be the same, therefore i dont need a dialogue. i would like to know how can i do this? what is the code to open, write, and save to a file without the dialogue. ...

what is the difference between DPAPI and file.encrypt

what is the difference between DPAPI and file.encrypt (I/O)?? ...

SubSonic 3 / ActiveRecord: Find() on non-primary key field failing (VB.NET only)

I'm getting an SqlException when I call Find() on a non-primary key field. I only experience this when I make this call in VB. Details: SubSonic 3.0.0.3 and ActiveRecord Visual Studio 2008 solution SubSonic and T4 templates in a C# class library project My VB application in a separate project referencing the SubSonic project In m...

Multiple Variables

Is there a way to give a value to multiple variables (integers in this case), instead of all at once? For instance, I have Dim aceVal, twoVal, threeVal, fourVal, fiveVal, sixVal, sevenVal, eightVal, nineVal, tenVal As Integer and, pending listbox selection, I'd like to assign threeVal fourVal and sixVal all values of -1. How can I do ...

vb.net class library

I have created one class library file in vb.net 2005 and then used that dll in one project. I have install that project one system. But that person Used my DLL his project. I have System validate(security) Exe and Code in vb.net. How to use this code in Class library or that Dll. Which is first load in Dll file. ...

Desktop shortcut for click once deployed application

I would like to create a desktop shortcut for my clickonce deployed application. The IDE is VS2005 and there is no need for upgrading to 2008 yet. Any help would be greatfully appreciated. ...

What symbol is this that appears on the VS.NET IDE?

Hello. Everyonce in a while I click in something that makes this symbol appear. What is it and what does it serve for? ...

Where to find a good database (factory) class with connectionpooling?

I found a lot of information about how to make a database factory or how to deal with connection pooling but i nowhere found a complete solution. I have always used my own solutions, but they're not complete i think or could be improved. Are there some good designed classes any of you use that i can find on the net? Thanks ;-) ...

How to save image to folder

hi guys, I am using webservice to call method in businesslogics(one class written in vb).I am getting inputppath and path to where i have to save image in that method.I have to create thumbnail and also i have to save original image.Means i want to save masterimage in one folder and its thumnail in different folder. I used followi...

How to programmatically export a PDF to a file in VB.NET

I want to export a .pdf file. That step is ok. But the problem I have is that this PDF does not show our native language. An example, English words are fine, but Chinese words are not shown in the report. How can we show the Chinese words too? We are programming in VB.NET. ...

Binding-Workaround in DataTemplate

Hi, I'm using this workaround to get a CommandProperty for mouse actions such as a left double click: http://www.wpfmentor.com/2009/01/how-to-add-binding-to-commandparameter.html It works fine... I'd like to use that workaround with a DataTemplate but {Binding Path=ID} doesn't seem to work for the DataResource.BindingTarget as it do...

Testing if code executes in debug mode

How can i test that the code executes in debug mode. Here is what i would like to do in pseudocode if not debugMode then Do something() end if ...