Groups | Blog | Home


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 2007 > threads for december 1 - 7, 2007

Filter by week: 1 2 3 4 5

Strange Access DB Updat Behavior :-(
Posted by Johnny Jörgensen at 12/7/2007 10:06:45 PM
Somebody please explain this to me: I've got an Access database with a table containing some 20 fields. A few are boolean and integer, but most of them are string(50). And then I've got one field that is a PM (Memo) field. That one is supposed to contain image data in string format and the ...more >>


This Code
Posted by Great at 12/7/2007 4:46:55 PM
This code is written by Visual studio 2005, language is VB. It has errors and written after clicking the "Source" tab. ------------------------------------------------------------------- <%@ Page Explicit=3D"true" Language=3D"VB" Debug=3D"true" %> <html> <body> <form runat=3D"server"> ...more >>

System.Environment.SpecialFolder.Personal
Posted by Anil Gupte at 12/7/2007 3:27:51 PM
Why does System.Environment.SpecialFolder.Personal return "5"? How do I get the actual directory? Thanx, Anil Gupte www.keeninc.net www.icinema.com ...more >>

StreamWriter Problem
Posted by kimiraikkonen at 12/7/2007 2:48:07 PM
Hello, Here's a very annoying problem that i couldn't make out. The problem is that: I open a text file using "streamreader" with no problem then when i save my existing txt file using streamWriter, sometimes it works very well, but sometimes it doesn't save and overwrite existing file. (Texbox...more >>

Moving Treenodes
Posted by Bart Steur at 12/7/2007 1:33:00 PM
Hi, I would like to know what is the best way to move a node within a tree/treenodecollection (not using Drag/Drop). It can't be done by changing the index. Found some examples with remove/insert, but is that the only way? Thanks, Bart ...more >>

Licencias programa en remoto
Posted by SilviaLl at 12/7/2007 1:23:15 PM
Hola buenos dias, Estoy haciendo un programa en VB 6 que se ejecutara en remoto con Terminal Server o con CITRIX. Pero tengo que hacer un control de licencias, pensava en hacer un control por el ordenador que està visualizando el programa. És posible saber la dirección MAC o el serial del d...more >>

Adding Treenodes
Posted by Bart Steur at 12/7/2007 12:41:57 PM
Hi As a VB6 user I'm unfamiliar with the Treeview control of VB2005. I read it was changed but I have a hard time finding the right help/samples for my problem. In VB6 you had 1 collection, and adding a node was quite simple. Just specify the nodes key and position relative to the key wh...more >>

Multiuser database access
Posted by cj at 12/7/2007 12:13:02 PM
The program I just finished allows users to pull a set of records from sql server and edit them. It is meant to be a one user system but it makes me start thinking. Suppose two users use the program at the same time. Both get the same starting set of data. Both users change the same reco...more >>



Arraylist Index Question
Posted by cmdolcet69 at 12/7/2007 11:16:46 AM
If need to know how to take all arraylist value and compare them in an if statement. if i have the following code: if Ctype(newgraphics.readinglabelarralist(intloop), label).test="4096.00" then End if Note that i do declare me intloop in a for intloop =0 to a value.cout-1 However wha...more >>

Error handling when moving files
Posted by Jim in Arizona at 12/7/2007 10:37:20 AM
I've looked around the web but can't find anything to help me out. I was able to get some code to move some files from one directory to another, which works fine: ==================================== Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Han...more >>

dynamically creating controls in windows forms
Posted by BillE at 12/7/2007 10:12:33 AM
When I create a control dynamically and it grows according to the content, the control Height property still returns the original default control height instead of the height after expanding. How can I get the height of the control (in code) after it grows? I am building a windows form dyn...more >>

Using the proper service account to move files from one machine to another (windows service)
Posted by Jim in Arizona at 12/7/2007 9:45:55 AM
I made up a service that will move files from a folder on the machine that the service is running to a share on another machine. I use a try/catch incase an error is thrown and write that error to the application log. I have tried running the service first under LocalSystem and when that di...more >>

Selecting Debug Mode
Posted by Crazy Cat at 12/7/2007 9:24:24 AM
The documentation says that debug mode is selected automatically by selecting start from the debug menu. However I suspect that that is not happening in my case. I don't see any output from any of my debug.print statements in the output window, and the attached database for my application is b...more >>

Send key stroke command from one pc to another on the network
Posted by mabond at 12/7/2007 8:43:01 AM
Hi don't know if this is the best forum or if my request is possible...hope someone out there can suggest a pointer for me. I want to to be able to send a keyboard keystroke (specifically the "spacebar") from one PC on our network to another programatically. My scenario is this PC "A...more >>

close dispose nothing
Posted by andreas at 12/7/2007 7:00:43 AM
Can someone tell me 1) Is there a difference between closing or disposing a reference data type 2) about nothing dim fr as form2 isnothing(fr) gives true but dim fr as form2 fr = new form2 fr.dispose isnothing(fr) gives false what means nothing? ...more >>

IHTMLDocument Intellisense Blank
Posted by Spam Catcher at 12/7/2007 5:54:31 AM
Hi all, I added a reference to mshtml.tbl but IHTMLDocument is blank. Does anyone know why Intellisense isn't generated for this interface? Thanks! -- spamhoneypot@rogers.com (Do not e-mail)...more >>

Try, Catch - Where Am I Going Wrong?
Posted by RobP at 12/7/2007 5:31:47 AM
Hi, I thought I knew how error handling with Try, Catch worked and have used it before but now I'm stuck on it, and even the most basic thing isn't working how I expected it too which makes me question if I understand it at all. I just did this little example: ------------------------------...more >>

Checking if remote app is working
Posted by John at 12/6/2007 10:36:01 PM
Hi I have an app installed at a client side which is critical and needs to run all the time. What is the mechanism I can use to check that the app is always working? Can I "ping" it someway periodically to see if it is alive? What would be the mechanism in .net? Thanks Regards ...more >>

Window Handler issue
Posted by Sriman at 12/6/2007 8:42:00 PM
We are trying to bring the window on top if its already running(Restore). The code works fine 90% of the time but sometimes it does not. The reason it does not work at times is coz the window handle is not returned. need confirmation on this. Any help would be greatly appreciated. Code...more >>

Cannot access an variable from an array instance of a button
Posted by esteban40oz@gmail.com at 12/6/2007 8:35:36 PM
I have 9 buttons on my form. Button1, Button2, Button3, etc I want to create an array to access the value of each of them. Dim buttonArray() As Button = {Button1, Button2, Button3, Button4, button5, Button6, Button7, Button8, Button9} Now, I awnt to create 3 buttons using the array. Dim...more >>

base numeric type?
Posted by Arthur Dent at 12/6/2007 7:54:50 PM
Hi all... I'm playing around experimenting with Extensions and R&D'ing what's new. There's a procedure I would like to add to numbers, and I was wondering, is there any "base" number type, that I could put an extension on, as opposed to manually adding it to all the numeric types... decim...more >>

SCOPE_IDENTITY and parameters during insert
Posted by Israel at 12/6/2007 7:14:50 PM
I found that if I use parameters on my insert statement and then execute "select SCOPE_IDENTITY()" it always returns DbNull. However if I DO NOT use parameters in the insert statement then I get the id back correctly. Also if I use parameters and use "select @@identity" it works fine? Note th...more >>

why doesn't this work
Posted by cj at 12/6/2007 4:53:13 PM
Dim reqCustomerId As String = "uv$?????C??`?????C??@-?" If Val(reqCustomerId.Substring(0, 10) < 1111111111) Then the if gives me the error: Conversion from string "uv$?????C?" to type 'Double' is not valid. "uv$?????C?" should convert to 0...more >>

checkbox control look like button
Posted by cj at 12/6/2007 2:33:36 PM
How can I make a checkbox control look like a button with a check in it? I need to figure out the border color etc to make it look like a button....more >>

windows vista & visual studio 2003, 2005, & vb 6
Posted by ray at 12/6/2007 2:26:53 PM
my xp pro machine crashed, in order to service legacy programs i need to install the following on a windows vista machine. would i have a problem doing the following. 1) installing visual studio 2003 on a vista machine? 2) installing visual studio 2005 on a vista machine? 1) installing...more >>

Pass Variable to external VBS
Posted by mrmwalter@yahoo.co.uk at 12/6/2007 1:42:27 PM
Hi, I have a simple form. On it is a Text Box that asks for "Username to be entered". It also has a Radio Button that asks if the user needs to be added to the local admin account. I have an external vbs that adds user to local admin account, but how do I pass the vbs the "UserName" that is...more >>

Question about Mailmerge and Word
Posted by Marc at 12/6/2007 1:00:22 PM
Hello, I am trying to do a specific mailmerge and I can't see a way to do it. I want to merge more than one documents into a new one. For example, I have Doc1, Doc2, Doc3, Doc4... My program must open Doc1, do the mailmerge into NewDoc, open the Doc2 and mailmerge in the end of NewDoc And s...more >>

Publish Version Info in a label
Posted by igendreau at 12/6/2007 11:36:42 AM
Simple question... Using Visual Studio 2005 to create a small app. Under my project properties, publish tab, I have it auto incrementing the revision number every time I publish. Is there any way to put a label on my main form that displays the current revision? I'd just like a little label th...more >>

How to display values in labels
Posted by cmdolcet69 at 12/6/2007 11:36:15 AM
I need a way to get the .text property of a label however i dont want to display that property in the label box. I thought i could do somthing with the visible property however it will not show the label. I need the label to show however i want the actual text value blank in that lable....more >>

How to get all forms in a Project
Posted by Rob at 12/6/2007 9:08:06 AM
Hi, Is there any way to find out all the forms in a project at run time. Thanks for any help you can provide. Thanks, Rob ...more >>

See IP address
Posted by BobAchgill at 12/6/2007 9:01:02 AM
How can I see what the IP address of the computer my code is running on programmatically? I have tried something someone gave me but it seems to be obsolete (there is a wavy blue line under the "myip.Address." ) and returns a number that does not appear to be a IP address. It does not have...more >>

Splitting a string
Posted by Tom C at 12/6/2007 7:42:31 AM
Is there a faster, sleeker way to do the following? Maybe something with regular expressions? Dim Code As System.String = "(EntityName) Code" Dim pos As Integer = Code.IndexOf(" "c) Dim EntityName As System.String = Code.Substring(1, pos - 1I) EntityName = EntityName.Replace("(", "") EntityN...more >>

Hidden buttons in toolbar can still be clicked, how come ?
Posted by /dev/null at 12/6/2007 7:40:00 AM
Hello, i am using visual studio 2003 enterprise architect version. I am making apps for the .Net framework 1.1. While testing an interface, i discovered something strange. In this application we have a standard toolbar that is at the top of the form window. It contains about 8 buttons t...more >>

Handling missing dll exception
Posted by kimiraikkonen at 12/6/2007 7:33:11 AM
Hi, I have an mini application with a dll named classlibrary1. I used it via imports statement, but i tried something to catch a custom msgbox error if the dll is not found or bad for the user. I tried catch blabla as dllnotfoundexception with no help. Also try- catch couldn't handle missin...more >>

How to transfer data from worksheet to table
Posted by clara at 12/6/2007 7:10:04 AM
Hi all, I have some data in a worksheet and need to be transfered to a table in SQL Server 2005 using VB 2005, the question is how can I manipulate the Excel object model and access to the data in the worksheet. Clara thank you so much for your help...more >>

save window form as file on local C drive
Posted by martin1 at 12/6/2007 6:30:02 AM
All, I present some data on the window form, then I try to save window form as file on the local C drive, like save word file, can anyone know how? Thanks, Martin...more >>

FileSystemWatcher: How to distinguish between different change eve
Posted by Klaus Gollin at 12/6/2007 3:51:01 AM
Hi, I am using FileSystemWatcher like this: fsw = New IO.FileSystemWatcher(strPath, strFilename) fsw.NotifyFilter = NotifyFilters.Size or NotifyFilters.LastWrite fsw.EnableRaisingEvents = True This raises two events when saving file. Saving changes with notepad with or _without_ cha...more >>

index searching on Access indexed tables
Posted by jON Rowlan at 12/5/2007 8:56:06 PM
I am slowing get my head around the concept of treating tables as collections of rows as vb.net seems to prefer. However, I have an indexed table in an Access database that I want to scan. I want to match a certain field but don't want to issue one select statement for each row in my master ...more >>

mscomm available in VB.NET 2003?
Posted by thomasc1020@gmail.com at 12/5/2007 8:41:11 PM
Hi, I am trying to write a code which reads in the iput characters from a RS232C port(COM port). I found out that 'mscomm' can be used to solve this problem on VB.NET 2005. However, I was unable to find out any information about 'mscomm' from msdn that came with my caopy of VS.NET and any inf...more >>

detecting changes in a datagridview
Posted by cj at 12/5/2007 4:12:03 PM
As your probably aware the datagridview doesn't update it's source datatable with changes to a cell until you move off that cell. Suppose somone makes a change in a cell of my datagridview then clicks to go elsewhere in the program--how can I be assured that change is transmitted back to th...more >>

Beginner's questions re book etc.
Posted by Suzy at 12/5/2007 3:42:40 PM
Hi I'm currently an enthusiast for vb6 but quite prepared to learn dotnet. Is the transition a hard one? Can anyone recommend a complete beginner's book, preferable available in Australia? Thanks all ...more >>

Selecting other listview item after removing one
Posted by Bart Steur at 12/5/2007 3:41:48 PM
Hi, What's the best way to programmaticly select (click) another listview Item after removing the selected/focused one. using VB2005 Express. Thanks Bart ...more >>

Visual Basic - Button to run command or vb script?
Posted by mrmwalter@yahoo.co.uk at 12/5/2007 2:01:38 PM
Hi, I need to create a GUI that has a form, on the form it asks for username. I therefore decided to use Visual Basic (not much experience_ On the form will be a button, how do I get this button to then launch a vbscript, oe even a batch file when it is clicked? Thanks....more >>

plugin's and invalid cast.
Posted by Dan Bass at 12/5/2007 11:47:12 AM
VB.Net app, but applies to the C# articles I've seen (from Mr Skeet for example) so decided to cross post to glean some more wisdom... I've two instances of the plugin framework in my app for two separate interfaces. One works and one doesn't, and for the life of my I can't figure out the d...more >>

Help Desk App - Need ideas or directions
Posted by cfps.Christian at 12/5/2007 11:30:47 AM
We're in need of a program preferably ASP/ASP.NET (I realize the chances but we'll just start here) that will allow our help desk staff or other view what is on a user's computer without taking any control at all. This will be used to protect user's sensitive information but allow our staff to ...more >>

TextBox1_LostFocus
Posted by cj at 12/5/2007 10:34:03 AM
I save the data that's in textbox1 in it's lostfocus event. I find one problem. If someone types something in textbox1 then Closes the program it isn't saved. I tried: Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.F...more >>

Page Processing Events ques
Posted by Steve Taylor at 12/5/2007 10:06:32 AM
I have never understood why intellisense doesn't show the available page processing events (ie Page_Load) for easy inclusion in the code-behind. Ideas? The real question: I have master pages and content pages. The Master page processes the events like "Page_Load()" but the content page o...more >>

DataAdapter using stored procedures for Insert, Update and Delete
Posted by RB at 12/5/2007 10:03:25 AM
Hi All, I'm trying to use more data-adapters/data-sets in a project, because they are so awesome! Anyhoo, I want to use them with Stored Procedures, rather than raw SQL text. The hard part of working with SPs is passing the new values to the insert, update and delete stored procedures. I'...more >>

Assembly Version Number AutoIncrement
Posted by Rob at 12/5/2007 9:16:23 AM
Hi Gurus, Is there any way that whenever I compile my project it creates a new version number. I have set my AssemblyVersion as <Assembly:Assembly("5.1.*")>. But it changes the verison only once a day, not everytime I compile. I am looking for a way to get a new verison number automaticall...more >>

nuther WebBrowser Q
Posted by mcnews at 12/5/2007 8:55:38 AM
i need a good way to stay in a loop until the page/Document i want is the one i need. what i have below works, but using a timer loop isn't always going to work. sometimes the readystate works (waits long enough), but usually not. i need something less hit or miss. Me.WebBrowser1.Document.In...more >>

Scheduled VB.NEt program
Posted by LittleRob at 12/5/2007 8:00:14 AM
I'm having problems using Windows Task scheduler (or AT or SCHTASKS) to run a VB.NET program unattended. I'm able to reduce it to some really simple code that still fails My program has a Sub Main something like Sub Main() MainForm.showdialog End Sub In MainForm the New()...more >>

Structure with MarshalAs array size
Posted by ThomasR at 12/5/2007 5:38:01 AM
Hi together, I have following little problem with a structure which I need for unmanaged code: Public Structure Info Public Header As HeaderInfo <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.ByValArray, SizeConst:=256)> _ Public N...more >>

Using VB.NET dlls in VB6
Posted by prasathrk at 12/5/2007 5:33:33 AM
Hi, I am having a VB.net dll which refers the ASP library internally. I registered the .NET assemly into COM using REGASM tool. How do I register the depending dll ie ASP library? It is throwing error "Could not load file or assembly "Interop.ASPTypeLibrary". How do I register? Any help is...more >>

Java Requierment
Posted by pavani.c2c@gmail.com at 12/5/2007 4:07:44 AM
Hi, Dear business partners we have an urgent requirement in N.J Position Java developer JAVA DEVELOPERS:-- Title: Java Enterprise Developers Skills: Java, Java Servlets, JSP, Junit (Test First Methodology), Oracle PL/SQL, XML, UNIX, Linux. Trinity Consultancy Services is seeking appli...more >>

mask textbox problems
Posted by Elaine16025@yahoo.com at 12/4/2007 9:47:04 PM
Hi Everyone, I am using the VB 2005 database configuration wizard to build a form displaying the records from a SQL table. The problem is the masked textbox. The mask I set to is short date 00/00/0000, but it displayed the dates wrong. For example, if the DOB in the database is "02/03/1990", ...more >>

Screen resolution independent app
Posted by John at 12/4/2007 7:29:04 PM
Hi How can I develop a screen resolution independent winform app in vb.net? Do I need a third party tool to achieve this? Thanks Regards ...more >>

Web Scrapper project using vb.net
Posted by Radith at 12/4/2007 5:29:34 PM
Hi all, I am about to commence a web scrapper project using vb.net + sql server. I am currently a uni. student with no commerical experience (btw I am doing this as a commercial project). Firstly, the aim of this scrapper is to: Scrape content off a website and store them in a SQL Server dat...more >>

DBF FILE STRUCTURE
Posted by JimmyKoolPantz at 12/4/2007 5:06:03 PM
IDE: VB2005 FILE TYPE: DBF5 I appoligize if I am posting in the wrong group. Question: Is there a position in the dbf file structure that will allow me to delete a field, such as, the way the dbf file structure has a record deletion flag? I have wrote a class for reading and writing dbf f...more >>

How to know when a control is added to the form in Design
Posted by Skysurfer at 12/4/2007 4:21:35 PM
Is it possible to know when a control is added to a form in Design time? I tryed with ControlAdded, but this is also fired when the program starts. I want to set some properties only when a control is added to the form and not when the program starts. Thanks all. Skysurfer ...more >>

linking textbox to cell in a datagridview cell
Posted by cj at 12/4/2007 3:51:31 PM
When viewing a datatable in a datagridview one of the columns in it is a "note" field which can be quite long. I would like to have the note field of the currently selected row of the datagrid display in a textbox below the datgridview. I currently have it fixed so if you click on a row th...more >>

Set property of a control without cast
Posted by Skysurfer at 12/4/2007 3:48:42 PM
Hi. I have some control of different type which have a particolar property, for instance MyProp. Some other controls don't have this property. How can i make a generic sub that set this property without cast? I can test if the control has the property with this line: Control.GetType.GetProp...more >>

Installer message
Posted by Anil Gupte at 12/4/2007 3:23:16 PM
C:\Projects\L3\WizoInstall\WizoInstall.vdproj 'shdocvw.dll' should be excluded because its source file 'C:\WINDOWS\System32\shdocvw.dll' is under Windows System File Protection. Should I really do this? What are the ramifications? TIA, -- Anil Gupte www.keeninc.net www.icinema.com ...more >>

How to get the current class
Posted by gman at 12/4/2007 3:20:10 PM
How can you get the current class of a method? We are writting out trace error messages using the System.Reflection.MethodBase.GetCurrentMethod to get the Current Method but a string is passed telling for the class. I am a newbie to the .NET but I would think there should be a way to say GetC...more >>

datagridview
Posted by cj at 12/4/2007 3:16:00 PM
I need to make all but 2 of the columns in the datagridview readonly. Can I do this? How? Below is my code. Dim MySqlConnection As New SqlClient.SqlConnection Dim MySqlCommand As New SqlClient.SqlCommand Dim MySqlAdapter As New SqlClient.SqlDataAdapter Private Sub Form1_Load(ByVal sender...more >>

Keep Session variables seperate for each IE tab.
Posted by pvong at 12/4/2007 2:39:33 PM
Using .Net 2 / VB.Net If a user opens IE and searchs for a client and ask for the details, the onClick of GO grabs the ClientID and stores it as a session variable called "ClientID". A lot of times, my clients will leave this one client open and open another tab in IE and look for another ...more >>

Progress bar update from worker thread
Posted by dgleeson3@eircom.net at 12/4/2007 1:00:13 PM
Hello all Yes I know its been done before, but something silly is killing me on this. I have the standard progress bar and worker thread scenario with progress of the worker thread being fed back to the main UI and displayed on the progress bar. I have a delegate and am using BeginInvoke. ...more >>

Screen size for winform apps
Posted by John at 12/4/2007 12:55:34 PM
Hi I have been developing apps with screen size 800x600 for maximum compatibility. I am just wondering if I should start my newest app with screen size 1024x768. What is the commonly used standard? Thanks Regards ...more >>

Object life question [VB.NET 2005]
Posted by Sid Price at 12/4/2007 10:56:22 AM
I have been reading about the managed heap and garbage collection and I have a question. I have a class that has a very simple task and that is to send a UDP message to a remote computer. The caller simply creates an instance of the class with appropriate parameters and the class takes care of...more >>

Redisplaying modeless window.
Posted by cr113@hotmail.com at 12/4/2007 9:15:43 AM
Suppose you have Button1 on Form1. If the user clicks Button1, I want to show Form2 modelessly. If Form2 is already open I just want to redisplay it, not open a new window. Thru trial and error I came up with the following code. Is there a better way to do this? Public Class Form1 Dim obj...more >>

Cannot connect to SQL Server
Posted by SF at 12/4/2007 8:31:34 AM
Hi, I am new to vb.net. I start my my test program using VS2005 (VB application) with one form connect to Product table on SQL Server 2005 server. At home I have both VS and SQL Server on same machine, and I connect to Product table through VS wizard. Once I compile and run oon the other ma...more >>

Export data into an Excel file using OleDB
Posted by tommydnp at 12/4/2007 8:02:31 AM
Is there a possibility to insert values into excel using only an oledb connection? It's no problem for me to select all data, but when I want to insert data or create a table, there's a problem. When I want to insert I always get: "Operation must use an updateable query". When I want to creat...more >>

Delete Record
Posted by shapper at 12/4/2007 7:19:58 AM
Hello, I have a ListView defined as follows: Private Sub lv_Init(ByVal sender As Object, ByVal e As EventArgs) Handles lv.Init lv.DataKeyNames = New String() {"TagID"} lv.ID = "lv" lvTags.ItemTemplate = New MyItemTemplate() lvTags.LayoutTemplate = New MyLayoutTemplate() E...more >>

String to Single
Posted by Olie at 12/4/2007 4:15:33 AM
A user of my software is getting this exception: Conversion from string "0.5" to type 'Single' is not valid. I have about 30 other users who do not get this exception when running the same code and I have never seen it on my development PCs. As far as I can see there is nothing wrong with co...more >>

access a button from the Master page
Posted by kieran at 12/4/2007 3:18:33 AM
Hi, I have a button which appears on many content pages...I want to be able to make invisible to readers under a certain condition...how can i access the button from the master page to do this...for example...button1.visible = false. I cant seem to access the button or its properties from...more >>

Why checkbox within groupbox not respond to enable/disable
Posted by DougE at 12/4/2007 2:43:00 AM
Yes the groupbox is enabled and the checkbox is enabled. Using the click event does nothing to fire checkbox1.enable = false. the checkbox remains enabled, and the user can uncheck it. This is not good in this particular application. Other checkboxes in other groupboxes on the same form wo...more >>

Webbrowser and Proxy Authorization
Posted by AGP at 12/4/2007 2:14:22 AM
My project uses a Webbroswer control to navigate to certain websites and do some processing on the info found there. However, my company has a proxy server which I must authenticate through to get to the internet. I have tried several methods to automate the signing in to the proxy server but ...more >>

VS 2008 Team Suite pricing ahhhhh
Posted by Smokey Grindel at 12/3/2007 5:46:58 PM
Ok this is making me want to rip my hair out trying to figure out the real price of this thing... we are trying to make up our 2008 budget... we have VS 2005 Pro right now... we like the team features in 08... and want to figure out the price... I've seen everything from $2,500 to $15k... wich...more >>

Reporting services: Anchor.Bottom
Posted by Pieter at 12/3/2007 4:08:47 PM
Hi, I have a report (Reporting Services 2005) which may contain an undefined number of pages of records. At the end there are some totals and summary's that should be displayed. The problem is: These totals should come always at the bottom of the final page: some kind of Anchor.Bottom or...more >>

IIF with Array
Posted by Shawn at 12/3/2007 3:22:45 PM
OK, Please tell me if I am doing something wrong here... This does NOT work if args.Length = 0 (It gives an IndexOutOfRangeException on the args() array) Public Shared Sub Main(ByVal args() As String) Dim val As String = IIf(args.Length > 0, args(0).ToString, "10") Cons...more >>

Put monitor in standby
Posted by Jeroen at 12/3/2007 2:18:53 PM
Hi, I need an application to let the display go into sleep/standby mode while the computer stays on. But only between set time windows (e.g. at night). The app shows data on large format plasmas and don't need to display information outside opening hours. But the computer does receive infor...more >>

Launch a VB.Net app from its shortcut from an Access mdb?
Posted by Rich at 12/3/2007 2:18:04 PM
I have a VB2005 app that I deploy using the "Click Once" deployment feature of VS2005. Now I need to be able to start/Launch the VB2005 app from an Access mdb. Using the Process object, I can do this in a VB2005 app to launch another ..Net app that I have deployed using "Click Once" Dim...more >>

best way to make strong typed collection
Posted by Smokey Grindel at 12/3/2007 12:02:07 PM
I am rewriting some code someone else wrote and of course VS2008 is coming back in code analysis saying that you should use Collection<t> instead of collection base now... well whats the best way to go about doing this? should it inherit from a generic collection of the type or implement a c...more >>

Trick to getting Xcopy distribution to work?
Posted by Jack Black at 12/3/2007 10:38:48 AM
Is there a trick (or is it even possible) to get an xcopy distribution of an app to work on restricted-privilege domain users' workstations? I have the appropriate application properties set in the project: Auth mode: Windows Onclick enabled Full Trust Signed with Strong Name key file I ...more >>

Simple? Query the contents of an Imagebox
Posted by Phillip Taylor at 12/3/2007 9:15:37 AM
I have an image box I set like this: image1.image = my.resources.yes or image1.image = my.resources.no How can I query which image is in the box later? Neither image1.image is my.resources.yes or image1.image.equals(my.resources.yes) work. Can anybody help? Thanks ...more >>

My Places Bar
Posted by greg chu at 12/3/2007 6:48:01 AM
Currently if you want to do save as you see 3 choices -> desktop, my projects, my computer. Any one knows how to add more folder to "My Places Bar". Thanks. Greg...more >>

string
Posted by amatuer at 12/3/2007 2:41:43 AM
Hi, I have a variable that i am passing to a function that creates and sends an email. i would like to break the string into 2lines. Can anyone help with this? here's the string: strMessage = "Your personal details have been received & your Logon details are: Username: " & txtId.Text & "...more >>

hyperlink
Posted by amatuer at 12/2/2007 11:56:03 PM
Hi, I am trying to open a website from a hyperlink. hw do i do that? Please help. thanks...more >>

Does Application.UseWaitCursor Property actually apply to all threads in the application?
Posted by Academia at 12/2/2007 9:55:01 PM
Application.UseWaitCursor Property When this property is set to true, the UseWaitCursor property of all open forms in the application will be set to true. From what I see it actually applies only to the main thread where I have the Application.UseWaitCursor=True and not to other threads...more >>

prevent duplicate event handlers
Posted by Arthur Dent at 12/2/2007 9:31:28 PM
Anyone know, in VB.NET (2005) how to prevent duplicate occurrences of the same event handler on an event? e.g... I have some object which raises an event, and some other class which consumes them. So in essence what I want to do is something like this in the consumer class... If Not objE...more >>

listview loses highlighted item
Posted by Rich Raffenetti at 12/2/2007 11:16:00 AM
I have a form with a listview control and a textbox. When I change focus from the listview to the textbox, the highlighted item on the listview loses the highlight. That is not the behavior I need. I am using VB2008 express. I see that the behavior of a similar program in VB6 is the same...more >>

Detecting number of drives
Posted by HardySpicer at 12/2/2007 9:31:37 AM
Some pcs have only the c drive whilst others like mine have c,d,e,f and z! How do I detect this automatically if I want to search all drives in a pc? I also want to ignore the DVD and floppy of course. regards Hardy...more >>

Business Logic Layer
Posted by John Devlon at 12/2/2007 2:10:22 AM
Hi, I'm looking for some example code on how to use a business logic layer in a n-tier application, implementing roles, rolelists, objectstates, factoryobjects, ... Can anyone please help me ? Kind regards John ...more >>

Registry Modification to HKey Local Machine
Posted by Bernie Hunt at 12/1/2007 9:56:50 PM
Is there a way to modify a registry key in HKey Local Machine? I have a number of programs that store data in the registry, but always in HKey Current User. Anyone know how to read and write HKey Local Machine? Thanks, Bernie ...more >>

XmlNode for dataset xml
Posted by Alexander Vasilevsky at 12/1/2007 9:04:07 PM
Is that valid XmlNode for dataset xml. How to fill in those xml 'of a dataset? There DataSet.ReadXml (XmlReader), but you can initialize XmlReader only URI xml- file, and I have a xml data dataseta in XmlNode ... http://www.alvas.net - Audio tools for C# and VB.Net developers ...more >>

Variable function return type
Posted by John at 12/1/2007 1:59:47 PM
Hi I have a function that needs to return value from some column in a table. The column type is not known in advance. Is it possible for function to return a value whose type would be determined at runtime? If so, how? Thanks Regards ...more >>

Arrays
Posted by HardySpicer at 12/1/2007 1:40:23 PM
Ok I am referring to this rather nice search Class I found here http://www.vbforums.com/showthread.php?t=341919 It searches for various file extension types and works really well. Trouble is I need the full path as well as the name of the file. Somebody asks how to do this on the forum and ...more >>

vba equivalent
Posted by John at 12/1/2007 12:44:15 PM
Hi What are the vb.bet equivalents of the following; 1. Scripting.FileSystemObject ie a method to read text files 2. Dlookup function Thanks Regards ...more >>

Installation Problems
Posted by Greg at 12/1/2007 10:35:01 AM
I have no idea where to post this question, or even if its appropriate for me to post it here. I don't know if installing a VB.Net program has caused the problem I'm having or not. All I know is I did install a VB.Net program on my desktop computer and lately its been acting very strangely. It...more >>

Is this code the best way to measure a string?
Posted by Academia at 12/1/2007 8:04:44 AM
I need to create a Bitmap just big enough to display a string. Since I need a Graphic object to measure the string I create and dispose a Bitmap and a Graphic object only for that purpose. Isn't there a better way of doing this than with the code below? Thanks Dim bit As Bitmap = New B...more >>

How to show link in a textbox when mouse hovers on Webbrowser link?
Posted by kimiraikkonen at 12/1/2007 7:43:19 AM
Hi, I couldn't find a necessary class which shows when mouse hovers on a link in Webbrowser control. Think of there's a status bar(text), when mouse comes on a link, the URL must be shown in this status bar. How can i do this? Thanks....more >>

Combine installation of SQL database with deployment of application
Posted by JDS at 12/1/2007 6:22:53 AM
I have an application that needs to be deployed and include the setup of a SQL Server 2005 Express database. There are several tasks that need to be performed and I want to wrap them up in to a single deployment package using Windows Installer. However, I am new to deployment and I am struggling...more >>


DevelopmentNow Blog