vb.net

is it possible for a button to have an image in the background?

in vb.net 2008 express, is it possible me to specify an image that would be in the background of a command button? ...

setting background image of a taskbar?

in vb.net 2008 express, is it possible me to specify an image that would be in the background of a taskbar? ...

collapsible listview

i want to make the listview control collapsible to the groups alone. Like in Vista's My Computer, where only the group names are shown and then we click on the group to expand it. I am using VB.NET 3.5 ...

sending structs over sockets

Hi, i am using vb.net and i would to send some structs to a C++ tcp server. The problem is the structs i am sending might contain other structs. Struct{ uint length; byte really; customStruct customStuff; }FirstStruct; Struct{ uint length; char[] name; }CustomStruct; Lets say i want to send FirstStruct over to the C++...

making an application filling form with VB using ado.net

I have a table inside my database, and i wish to insert/update/delete entries in a FormView Manner (I mean no datagrid) but a set of textbox/combobox/listbox/checkbox for one record. Before modifying/adding data i have to perform some extra checks to enter correct values to my database. How will i be best off doing it? I am currently usi...

Secure(ish) encryption/decryption algorithms in vb.net using a string as a key

Is there a way to encrypt/decrypt text (string form) in VB.net using another string as a key? Meaning, if one user encrypts using this key, the other user needs to decrypt using the same key? I do NOT mean public and private key encryption or anything of the sort. Can someone help me build two subs for these? If not, what is the secon...

Simple C# or VB.NET examples to read a file from UNC

Does anybody knows how to fix the exception that occurs when an .EXE file is run from the the Network Share. This application works fine when running from the local machine. I have been trying a lot to fix this issue for a while, but without any success. Here is the simple code I am trying to test : string AssessmentFilePath = @"\\abc...

Explain ASP.NET Events

See Also: understanding events and event handlers in C# As a web dev, I don't typically have to get into building my own events for objects, since most are inherent in the page. However, now I'm into a pretty complex (web) project where I think I may have to use them. I just read a chapter out of Pro VB 2008 and the .NET 3.5 Pl...

Updating DotNetNuke module from another app

I have several DNN modules that I wish to update silently, using the portal's built-in module upgrade facilities called from a separate application, in this case a Windows service. I was able to make it all work with version 4.3 of the portal by modifying the DNN source in key areas to allow DotNetNuke.dll to function outside of a web ap...

Cross-Thread operation not valid VB.NET

I looked around the site and the questions I found relating to this subject were for C# (the application that I am maintaining is written in VB.NET), so I apologize if I overlooked one. Here is where I am calling my thread: Private Sub saveBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles saveBtn.Click I...

How do I validate email address formatting with the .NET Framework?

I want a function to test that a string is formatted like an email address. What comes built-in with the .NET framework to do this? This works: Function IsValidEmailFormat(ByVal s As String) As Boolean Try Dim a As New System.Net.Mail.MailAddress(s) Catch Return False End Try Return True End Function ...

Optional Readonly Property in VB.Net Interface

I am trying to develop a simple interface for allowing quick lists to be generated from classes. Basically, the interface needs to return an ID and a Name. However, some classes have a calculated name property which is read only, others just use a read/write name property. Basically, all I care is that it has a getter, it does not matter...

I did an 'imports' - error TYPE EXPECTED

I did this: Imports iTextSharp.text.rtf and then this: Dim grx As graphic = New graphic and on the first "graphic" I am getting a "type expected" graphic is a member of iTextSharp.text.rtf Here's the surrounding code: Public Sub New1() Console.WriteLine("Chapter 4 example 4: Simple Graphic") Dim document As Document = Ne...

WidthPercentage not a member of itextsharp

for this line: c.WidthPercentage = 100F i am getting this error: Error 1 'WidthPercentage' is not a member of 'iTextSharp.text.Table'. here's the entire code. it's taken directly from the tutorial Imports System Imports System.Drawing Imports System.IO Imports iTextSharp.text Imports iTextSharp.text.pdf Namespace iTextSharp.tuto...

P/Invoke Marshalling Help - Nested Structures - VB.NET

Ok, what the heck am I doing wrong here.. "System.TypeLoadException: Cannot marshal field 's2' of type 'MY_Struct1': The type definition of this field has layout information but has an invalid managed/unmanaged type combination or is unmarshalable." 'VENDORAPI short FunctionEx(Struct1* pstruct1); Declare Auto Function FunctionEx Lib "...

Implementing des-ede2 in vb.net

Can anyone help me getting started with this? We have a current keygen for a set of our apps that's using des-ede2 in C++. I need to make my vb.net app validate keys generated by that keygen. Anyone have any ideas where to start? I'm googling like mad, but hoping someone can point me in the right direction. Thank you! ...

Reading XML element & child nodes using LINQ in Vb.net- help me in where condition :(

Hi, I am new in LINQ world. I need an urgent help in reading the xml elements using LINQ with specific where condition. I need to find the max air_temp for a county i.e where county name = "Boone" and hour id = "06/03/2009 09:00CDT" i tried something like below, but no luck : Dim custs As IEnumerable = From c In Element.Load("C:\me...

Loop through Generic List in vb.net

Hello, In my VB.net application I am populating my customer object and looping through it as shown below. As there are thousands of customers, I want to do it 500 customers at a time. Is there anyway I can have one more For loop to process 500 customers at one shot in vB.net I am not using LinQ as the database is Oracle. is there an...

Problem using OpenProcess and ReadProcessMemory

I'm having some problems implementing an algorithm to read a foreign process' memory. Here is the main code: System.Diagnostics.Process.EnterDebugMode(); IntPtr retValue = WinApi.OpenProcess((int)WinApi.OpenProcess_Access.VMRead | (int)WinApi.OpenProcess_Access.QueryInformation, 0, (uint)_proc.Id); _p...

Is SeDebugPrivilege() api function the same as System.Diagnostics.Process.EnterDebugMode?

What the title says. Are they the same? I've noticed that the first does have arguments and such, but are they going to give the same end result? ...