Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
all groups > vb.net > december 2004 > threads for thursday december 2

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Page load time
Posted by Tim Gaunt at 12/2/2004 11:54:14 PM
Hi, I have a photo album and I would like to measure the time it takes for the page to load, in classic ASP I used something a long the lines of: <% Timerstart = Now() %> <% Response.Write("Time to load was: " DateDiff(n, Now(), Timerstart) %> The problem is that I don't know how to do...more >>


Resize Image
Posted by DichkoSoft at 12/2/2004 11:52:48 PM
Dear All I don't know haw i resize inage in VB.NET I want load image with size 800x600 then rezize it to 80x60 pixels and save to a file. -- DichkoSoft ...more >>

adding records to a table
Posted by Nkagi at 12/2/2004 11:49:03 PM
Hi All, I have a problem of adding records into table, if the cursor is on the first record the record that I add replaces the first record and then I moved it to the last record and the new record replaces that last record in the table. Is there a method that I can use to make sure this d...more >>

XML reader
Posted by Maileen at 12/2/2004 9:40:51 PM
Hi, I have a XML file which consists of several elements and I would like to retrieve the value of 1 element particularly. for example : .... <Database_Location> C:\test\db1.mdb </Database_Location> I try to get the value of "C:\test\db1.mdb" with the following code : While XmlR...more >>

problem through the VB.NET installation
Posted by Leon Nicolaou via DotNetMonster.com at 12/2/2004 9:30:33 PM
When Im trying to install VB.NET an error like that occurs: ERROR: Error 1305.Error reading from file: d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atldef.h. Verify that the file exists and that you can access it. Please tell me what the problem is and how I can fix it....more >>

Controls disappear from designer...
Posted by Aaron Smith at 12/2/2004 8:52:30 PM
I have a problem... Have a form, made some changes.. now all the controls are gone. I didn't make any changes to the designer generated region.. I'm not really sure what happened to them, but this has happened before where one or two will disappear.. They are still in the code too.. And if I...more >>

Consuming operator overloaded c#
Posted by Nick at 12/2/2004 8:28:38 PM
I have the following wrapper classed defined in a C# assembley namely: public class wrapInt32 { private Int32 m_Int32; //additional object composition public wrapInt32(){m_Int32 = 0;} public integer Value() { return m_Int32; } //other functions public static wrapInt32 operat...more >>

Is it possible to create a modular project?
Posted by Gary Kahrau at 12/2/2004 6:35:04 PM
Can the following be done with vb.net? Would c# do a better job? I am thing of creating a very large project in vb.net (hundreds of forms?). I would like to have many project files each containing a managable number of forms and dealing with a logical business function (scheduling, purchasin...more >>



connecting to a Access Database in a Class
Posted by molemoore at 12/2/2004 6:29:01 PM
Im trying to connect to an Access database using a class. I think I have been able to establish the connection but when trying to test it by pulling data from the database im getting the error: "An unhandled exception of type 'System.NullReferenceException' occurred in DB.exe Additional ...more >>

Help with Data bound ListView
Posted by Simon Verona at 12/2/2004 6:09:59 PM
This is a multi-part message in MIME format. ------=_NextPart_000_01B0_01C4D89A.23389350 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm trying to create a dataview in code and bind it to a combobox using = the code below. =20 When it get...more >>

StringBuilder and dataset
Posted by jenniferhu46 NO[at]SPAM hotmail-dot-com.no-spam.invalid at 12/2/2004 6:01:24 PM
Hi experts, I received a sample from bank for the header record in the output file (attached at the bottom). I want to use same method to have a stringbuilder to arrange the fix length positions, and the fields will be retrieved from database and put into the dataset. But I am familiar at ...more >>

Access VB.Net Assemblies From VBScript
Posted by Joe at 12/2/2004 5:04:49 PM
Is it possible to access VB.Net Assemblies from VBScript? I have a Visual Basic DLL that is accessed from VBScript. I would like to rewrite the dll in VB.Net. How would I do this, if it is possible? Thanks, Joe...more >>

datagrid add checkboxes
Posted by Maarten at 12/2/2004 4:34:27 PM
i have the folowing code to setup my datagrid collumns Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load gridsetup() end sub Private Sub gridsetup() O.Columns.Add("Channel") O.Columns.Add("Name") O.Columns.Add("Status") ...more >>

Me.Opacity Vs. Me.Visible ?
Posted by yosh NO[at]SPAM liquidzone.net at 12/2/2004 4:32:28 PM
Trying to make a splashscreen, i can make it work if i in sub new() on the main form set opacity to 0, show the splashscreen and then in the splashscreen set the main forms opacity to 100 right before closing the splashscreen... but thats gives me some nasty performance problems... the form is...more >>

Directory.GetFileSystemEntries qestion
Posted by Just Me at 12/2/2004 4:30:14 PM
I need a Directory.GetFileSystemEntries where the search pattern is *.dll;*.exe That is find all the *.dll and all the *.exe files I think Directory.GetFileSystemEntries search pattern can not contain more than 1 pattern. Correct? Is there a simple way to accomplish that. I know I can code...more >>

how do u like...
Posted by Supra at 12/2/2004 3:19:55 PM
how do u like my url link? http://www.getgiftsforfree.com/bin/freegifts.php?ref_id=41484 feel free to ask ne ? regards ...more >>

Deserialize Serialize this example:
Posted by peter NO[at]SPAM mclinn.com at 12/2/2004 3:17:19 PM
How would would you deserialize this example below? Imports System Imports System.Collections Imports System.IO Imports System.Xml.Serialization Public Class App1 Shared Sub Main() Dim list As ArrayList = New ArrayList() Dim out As StreamWriter = New StreamWriter("arra...more >>

System.Web
Posted by Bryan Martin at 12/2/2004 3:08:48 PM
I have a program which has ran every night fine until last night. Now it bombs with the following errors. I have also broke this down to its simplest form for sending the mail (http://support.microsoft.com/default.aspx?scid=KB;EN-US;314201) which gives the same error. This server does not hav...more >>

Crystal Reports Viewer
Posted by Aaron Smith at 12/2/2004 3:01:13 PM
Is there a way with the CR For .Net Viewer control to get the field and the value if a user clicks on a field in a report? I know if previous versions you could do this... If you can't do it with the CR for .Net that comes with Visual Studio, what is needed to do that? Aaron -- --- Aaro...more >>

Referring to a control with variables?
Posted by (tantiboh NO[at]SPAM hotmail.com) at 12/2/2004 2:42:14 PM
I've got a situation where I'm trying to refer to a control in terms of a counter. I've got a 4x4 grid of labels, uniformly named according to their position in the grid, I.E. lbl00, lbl01, lbl02, lbl03, lbl10, lbl11, etc. I'd like to refer to these controls with counters so that I don't have ...more >>

OOP hurdle
Posted by Jason at 12/2/2004 2:32:06 PM
I have a fun OOP question. I want to have a base class that contains methods that should always be overridden... I can't mark the base class methods as MustOverride because they will "overridden" by Shared (static) methods, so I have to code a "work around". In the code below, I've ide...more >>

make usercontrol invisible at design time
Posted by davermcl NO[at]SPAM hotmail.com at 12/2/2004 2:22:52 PM
hi, I'm have a control which inherits from the panel control and I want to make it invisible at design time -- like the Timer control. Any suggestions?? Thanks, davermcl...more >>

Client and Server
Posted by dcstech at 12/2/2004 2:05:02 PM
I have a program that write information to a database. I'm currently in the process of writing another program that monitors the database and everytime a new entry is made this program will update its datagrid. I guess you could call this program a monitoring program. The problem is that I ...more >>

PowerPoint and VB.Net
Posted by Dave at 12/2/2004 1:54:24 PM
I'm am very new to VB.Net. I'm wondering if someone can show my how to run PowerPoint presentations from the command-line? Basically, I need a program that will read a specific directory and display the PowerPoint presentations. I have figure out how to do this in VS., but VB.Net seems all to...more >>

how to include external to VB.NET
Posted by sympatico at 12/2/2004 1:43:17 PM
Is there anyone that know how to include external file or textfile or .dll into VB.NET emulator smartphone? Thanks ...more >>

I know SOMEONE knows the answer to this...
Posted by Zorpiedoman at 12/2/2004 1:01:04 PM
Ok.... 1. Take a windows form. 2. Add a TabControl 3. Add a TabPage by right-clicking the Tabcontrol and selecting "Add Tab" The TabPage is actually added to the form, not just visually, but the code is added to the "Windows Form Designer generated code" region. I want to be able to ...more >>

Context Menu Not Refreshing
Posted by PJSimon at 12/2/2004 12:47:20 PM
I have a system tray icon for my application. Each time the user pastes some text into the application, I add a submenu item in the system tray's context menu. The first time I right-click the icon in the system tray, the submenu item is there. After that, any subsequent right-clicks only show...more >>

Local Security Policy
Posted by jacksneed2000 NO[at]SPAM yahoo.com at 12/2/2004 12:40:00 PM
I am trying to write a vb.net app that can read and/or write local security policy settings on standalone workstations. BTW, counting on domain group policy is not an option, since some of our workstations do not sit on the network. Anyway, I've been trying to use DirectoryServices to get a...more >>

Write once read meny section of the registry?
Posted by yosh NO[at]SPAM liquidzone.net at 12/2/2004 12:39:44 PM
This might be alittle off topic, but im wondering if anyone knows if theres somewhere in the registry that i can write to but not delete or change. im making a application with 30 days trial on it but i dont really know where to store the first date the program was run. any suggestions apprici...more >>

Workday Date Calculations
Posted by Wayne at 12/2/2004 12:17:24 PM
Hi all I'm trying to calculate the number of days (or workdays) between 2 given dates that do not include weekend days or public holidays (public holidays are user defined from a dbase, have a start date & an end date & may span a weekend) If a start date (workday) & an end date (workday) are...more >>

Get dateformat in yyyymm
Posted by Agnes at 12/2/2004 12:11:14 PM
If my input date is 2004-02-05, I want to get '200402' Can anyone know the simple way to do ? Thanks a lot -- .. ...more >>

Picturebox Control, Borderstyle property and mousemove event probl
Posted by BrianW at 12/2/2004 11:31:06 AM
I am working on a program that has multiple picturebox controls that a user is allowed to move around which are contained within a panel control for visual placement. In my mousedown event, I set the picturebox control's borderstyle to Fixed3D, but upon doing so, I am not able to track the ...more >>

SolidBrush, coloring graphics gives unexpected result
Posted by Morten Snedker at 12/2/2004 11:26:26 AM
I have an Access application where my forms have to different colors. These I wish to use in my vb.net app as well. I copy screen and paste into Photoshop and use the color picker to get the color. It returns RGB 58,110,165. That makes me come up with: Dim myBrush As New SolidBrush(Color.Fr...more >>

Putting 2 checks on the same line when Object might be Nothing
Posted by Steve Amey at 12/2/2004 11:20:01 AM
Hi all At the moment I am using the following code to check to see if the oTempDataSet is not nothing and that it has tables in it: If Not oTempDataSet Is Nothing Then If oTempDataSet.Tables.Count > 0 Then End If End If Is it possible using new language features in .NET to put both ...more >>

Thread Part 3
Posted by Charles A. Lackman at 12/2/2004 11:14:08 AM
Hello and Thanks again, Maybe I am not explaining what I am looking for good enough and maybe I should not be using muli-threads at all. What I am after is the following: Form1 instantiates Form2 using SHOW, which is always on top. Form2 is a clipboard, where the user can copy and paste ...more >>

How to fill one ComboBox from other ComboBox control?
Posted by Sakharam Phapale at 12/2/2004 11:13:05 AM
Hi All, How to fill one ComboBox from other ComboBox control? 1) Only setting the reference does the trick but doesn't show items in control. If you see in immediate window, it shows the item count correctly in destination ComboBox control. Me.ComboBox1 = objFrmMain.ComboBox1 ...more >>

Passing variables values
Posted by ruca at 12/2/2004 11:12:20 AM
Hi gurus, I have a little complex question for you all, that I hope you can help me. I have a windows application that comunicate with another dll's applications. My Win app have some menus (like Outlook bar) and each menu can have many icons or function as you want. This icons can call form...more >>

Can someone tell how to preserve the clipboard contents?
Posted by Just Me at 12/2/2004 10:48:34 AM
Dim iData As IDataObject = Clipboard.GetDataObject() Dim img As System.Drawing.Bitmap img = img.FromFile(ofd.FileName, True) Clipboard.SetDataObject(img) TextControl1.Paste() img.Dispose() : img = Nothing Clipboard.SetDataObject(iData) I want to insert an image and tried the above. I wan...more >>

Option Strict and reading bytes from File
Posted by Kejpa at 12/2/2004 10:16:14 AM
Hi, I want to read a fixed number of bytes from a file and when I turned on the Option Strict I get an error I just can't fix. The code: Dim baInfo(99) As Byte FileGet(iFilNr, baInfo, 5) The Error: Option Strict On disallows narrowing from type 'System.Array' to type '1-dimensional array...more >>

Open form, but don't take control away from other forms
Posted by Chris, Master of All Things Insignificant at 12/2/2004 10:09:22 AM
I have a popup notification, much like MSN or AIM does. The form pops up ok, but it is taking control away from the current application. It is nice enough to give it back once it closes, but how can I stop it from taking over focus? I know one of you .net geniouses know how to do this.... ...more >>

.NET Security Concerns re: Client/Server Systems
Posted by Jeff Stewart at 12/2/2004 9:52:40 AM
I'm about to start development on a large client/server system using .NET for both, barring any security concerns. Namely, I'm still a little vague on what is exposed to end-users in a .NET assembly. Does the possibility exist that a client assembly can be examined, using common tools -- say...more >>

Consuming visual managed controls from unmanaged apps (i.e. VB6)
Posted by Brett at 12/2/2004 9:49:33 AM
I have developed a managed (VB.NET) usercontrol and have consumed it in VB6 with limited success. I'm not sure I'm going about it the correct way, so I wanted to try to get a consensus from others. Basically I created the usercontrol and exposed it to COM using the standard (I think) methods...more >>

Current Method/Property Information
Posted by Mythran at 12/2/2004 9:27:18 AM
I would like to display the current method/property information (for debugging purposes)... Sub MyMethod() MsgBox("MyMethod()") End Sub Sub MyProperty() MsgBox("MyProperty") End Sub Is there any way to get the name so I don't have to hard code it every time? Normally I do ...more >>

Ecxel like tables
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 12/2/2004 8:57:25 AM
How Can I create excel like tables to input data in visual basic.net ???...more >>

VB.Net and My Network places
Posted by Todd at 12/2/2004 7:47:03 AM
I have been a VB programmer for about 2 years. I'm a new user to VB.net, about two weeks; I'm trying to write just a small App to start with, that will do a Net send function. I would like to fill a combobox with data from My Network places, in VB6 we can use the API function WNetOpenenum an...more >>

Security Issue
Posted by Jim Heavey at 12/2/2004 6:45:41 AM
I have created a console application which run fine on my workstation. I have move the code to a shared drive and I have created a "bat" file which will invoke the application. When I double click on this file and attempt to run, I get a security error. If I log on to the shared drive an ru...more >>

getting the default printer
Posted by Geraldine Hobley at 12/2/2004 4:59:01 AM
Hello, I have the following code that sets the default printer using the WMI (windows management system). ' Add a Reference to System.Management Dim moReturn As Management.ManagementObjectCollection Dim moSearch As Management.ManagementObjectSearcher Dim mo A...more >>

obfuscated assembly
Posted by David Gacek at 12/2/2004 3:20:15 AM
How can i obfuscated an assembly, that is still usuable. I have tried to use dotfuscator community edition and for 1 is strips out the manifest / StrongName and can no longer be added to vs.net ? 2) and if i can added it then all the functions are all renamed . Has anyone used docuscator suc...more >>

I/O handles can't be released
Posted by LBT at 12/2/2004 3:05:04 AM
I have a window service written in VB.NET to scan directory and process file. During directory scanning (scheduled by timer using System.IO.Directory.GetFiles method), I can observe that the column "Handles" in "Task Manager" will increase gradually but will be dropped after a short while. ...more >>

Can i do sth like that in .NET?
Posted by **ham at 12/2/2004 2:10:06 AM
I wonder if I could make a windows application which hosts html pages, and instead of the typical .NET controls uses the HTML controls, but at the same time executes commands of the main application from that html page. I actually want to make sth like McAfee 8, which has html pages as its stand...more >>

Need Help understanding TrueType Fonts
Posted by Jim Flanagan at 12/2/2004 1:47:38 AM
Hi... I want to write a small app/tool in vb.net that will allow me to read in a font file, interpret the data and create a file that could be used in an led sign system. i.e. convert the font data into a dot matrix format. I seem to be having problems finding some reasonable information ...more >>

voice recognisation system
Posted by krishna at 12/2/2004 1:43:45 AM
Hi, I want to design the application in such way that my application should open one microsoft word automatically that should accept voice(what ever you speek) and is should translate into text and display in the word. Regards, krishna. ...more >>

How to get in front MDI child form?
Posted by Billy at 12/2/2004 12:40:52 AM
Hello! I have a main form as MDIContainer in VB.NET 2002 App. Form has menu which call several forms. I call forms that way: -- Dim f As New frmNameX() LoadForm(f) -- Procedure LoadForm check if form is already loaded. Private Sub LoadForm(ByVal frmName As Form) If Not IsLoaded(frmNam...more >>


DevelopmentNow Blog