vb.net

How i can minimize the child window when i click the StatusStripLabel

I have create a procedure to open dynamicaly a StatusStripLabel for my child window, also when i close the child window the label in Status Bar is closed as well. Now that what i want is to click once the StatusStripLabel and the child window minimized (hide) and when i click it back the child window restored. Also when i minimize the ch...

Arraylist of custom classes inside My.Settings

I have a Visual Basic .Net 2.0 program. I'm moving the settings from an older settings file, to an app.config program settings file. I'm trying to do this as nicely as possible. So, I added my setting as shown in this image. On load I do this: If My.Settings.databaseConnectionSettings Is Nothing Then My.Settings.database...

Getting files from a sub-directory of Resources in vb.net

I'm making a map creator that chooses images randomly from various sets. What I'm trying to do is set up subfolders in Resources and put the different images in each folder - e.g., a folder for streets, a folder for monuments, etc. Then I just make an array of images out of the files in the folder, and pick one. For some reason, I can't...

vb.net mantissa and exponent calculation from double

Hi there. Can anyone offer any advice on how to get the mantissa and exponent from a double in VB.net? I know I can do a string parse and some conversion to ints but I wondered if anyone had a mathematical equivalent formula that would allow me to do this? Many thanks ...

Howto clear a textfile without deleting file ?

Question: I have an ini file which I need to clear before I add info to it. Unfortunately, if I just delete the file, the permissions are gone as well. Is there a way to delete a file's content without deleting the file ? ...

How to apply colour formatting to a Richtextbox *as the user types* (VB.Net)

Hi. I have a RichTextBox with an OnChanged event. The OnChanged event should look at each line in the RichTextBox and if the line is of prime length colour it red, otherwise colour it black. How do I do this? I think it is possible to select from index a to index b and set selection colour, but I think this will lose my cursor position. ...

Linq-to-Entities: LEFT OUTER JOIN with WHERE clause and projection

I'm having a heckuva time figuring out how to translate a simple SQL LEFT OUTER JOIN with a two condition where clause into a working Linq-to-Entities query. There are only two tables. I need values for all rows from Table1, regardless of matches in Table2, but the WHERE clause uses fields from Table2. In SQL, the two parameters would...

asp.Net ListView/GridView Databound Error

I am attempting to use a GridView in asp using VB and I get an error message about content. I did some research and reformatted the XML document the datasource is referencing but still cant seem to get the GridView to generate. Error Message: "The data source for GridView with id 'GridView1' did not have any properties or attributes fr...

.tostring() preserve leading zeros

Converting an object .tostring() removes the leading zeros. The object is not a fixed length, so I can't do object.tostring("0000000") where the number of zeros represents the fixed length. An example object value is "0357" when I convert that object .tostring it becomes "357". Is there a method for keeping the leading zeros where the...

Class library or not?

I have two projects; A and B, where B needs to use some classes that are in project A. Hence, I added B to A's solution, and in B I added a reference to project A. Is that sensible? Or should I rather put those classes in a class library? I see that if I further want to open form/program B from a menu option in project A, then A ne...

How to access and understand old dll from C#

I have been given an old dll and the assignment of accessing it through C# .NET 3.5. I believe the dll was originally built with VB6, but am not positive. There is no documentation or source for the dll aside from an example for how to use the it in VB6. I have been able to succesfully access it through VB.NET 3.5. Example code for acces...

How to get a EditorAdornment to Modify text from a TextView?

I am trying to create a "Quick Edit" adornment which would help the user in providing the information below. This is the Nafestis Info text in a .vb class file #Region "Nafestis Information Block" '**<!--Scroll over to the line above this one to use the quick editor**'--> '**<name>Create a JSPF page from a config file</name> '**<prefix...

Help Translating a small C# WCF app into Visual Basic (part 2)

Hi - I recently asked a question about translating a code sample I found on on the internet from C# into VB and I was given links to websites that automate code translation (http://converter.telerik.com/ & http://www.developerfusion.com/tools/convert/csharp-to-vb/). I am very new to VB and unfortunately the VB that the translators retur...

adobe displays blank page

When the update adobe dialog box appears when sending files to adobe and the user closes it without updating, the page that is left on top is a blank page. Has anyone seen this behavior? I am running a vb.net website and would like to programatically turn off the update question, or if anyone has a workaround to this problem please hel...

Need help with a large ASP.NET application

Hi, We have an ASP classic ERP (very large application) that we want to rewrite using ASP.NET. I am looking for a way to organize the application so we are going to be able to separate every program / webpage (over 400) from each other. Every program needs to be independent because many developers will work on the project at the same ...

How to avoid getting empty fields in a databound combo box?

How to avoid getting empty fields in a databound combo box? ...

How do you convert the following encryption code from Perl (or from PHP) to VB.NET?

I have some encryption code that has been written in Perl (also a code snippet in PHP) - but I just can't get a version written in VB.NET to work with the third party. Example in Perl package Sitemaker::API::Crypt; use warnings; use strict; use base qw( Exporter ); use Crypt::CBC; use MIME::Base64; our @E...

Left value of an integer

Hi, I have a value in variable, say it is dim a as integer = 145.98 I tried to take the Left(a,2) but it returned an error instead of returning 14 I also tried left(a.Tostring,2) but error is the same. Please help me solve it. Thanks Furqan ...

windows mobile phone 7 - C# only?

I've heard that app development on the new windows phone 7 is C# only. Is that true? I haven't been able to verify that on my own. Can you please provide a link to this? If true, is there any rumors about allowing VB.Net to create apps as well? ...

Alternative to Excel as ASP.Net Report Generator

I use excel through vb.net/asp.net to generate reports from a web page and then send the file down to the user. We've had some issues with Excel being super slow/inefficient/not closing (even when we keep track of the process id and try to kill it in code...). So I'm looking for some flexible alternatives. We need a replacement that ...