Home All Groups Group Topic Archive Search About

Visual Basic .NET

microsoft.public.dotnet.languages.vb
Score Problem with ToolStripTextBox
Lloyd Sheen - 17 Nov 2007 11:35 PM - 5 messages
I just want to select the complete text when someone enters the textbox (mouse click etc.).  When I am executing within the IDE (VS 2005 Pro) no problem. Execute outside the IDE and no select takes place. Code: Private Sub tbSearchTxt_Enter(ByVal sender As System.Object, ByVal e As ...
Score Insert smaller images into one Image object
Brian - 17 Nov 2007 5:07 PM - 4 messages
I have a windows forms project done in vb.net.  One of the forms creates graphs based on the data supplied to it.  I want to take multiple graphs and paste them into a larger Image object.  I already ...
Score design pattern vb.net
guoqi zheng - 17 Nov 2007 2:06 PM - 4 messages
Any one know some good tutorial regarding design pattern which give example in vb.net code? Most of the code example I found are either c++ or java! regards, Guoqi Zheng [link] url:[link] ...
Score VB calling DLL only with _stdcall?
bpsdg - 17 Nov 2007 2:06 PM - 21 messages
Hi, I am currently still programming in VB6. On comp.lang.basic.visual.misc I asked this question. And alhough there might be solutions, I wondered whether this is also a problem in vb.net or isn't it? Regards, Bas. ...
Score Need Advice - ado.net 1.x ----> 2.0
Rachana - 17 Nov 2007 4:54 AM - 2 messages
Hi, I am having vb.net 1.0.  & presently trying dummy codes - (data adapter, data set etc.). Within a couple of weeks , I have to go for real projects. At present all my projects are window based( not Web). ...
Score Access of Shared member...
mr t - 17 Nov 2007 1:43 AM - 2 messages
I create a process p like this: dim p as new System.Diagnostics.Process() the reason I am doing this, is to be able to read the Output and Error streams like this: p.StandardOutput.ReadToEnd() now, I .net 2.0, I get a warning when I try to go... ...
Score Getting a subset of DataRows from a DataTable
Nathan Sokalski - 17 Nov 2007 1:19 AM - 10 messages
I have a DataTable from which I only need a certain range of the DataRows. What I would like to do is copy a range of rows from one DataTable to a new DataTable like the following: For i As Integer = start To last ...
Score Newbie question about combobox/adding row to lookup table
EManning - 16 Nov 2007 10:33 PM - 3 messages
I have a bound combobox to a lookup table in Access.  If an item is entered that's not currently in the combo list, I want to add it to the list and subsequently to the table.  I've done a lot of looking thru various forums ...
Score setdatabinding
cj - 16 Nov 2007 8:08 PM - 6 messages
VB 2003 allowed datagrid1.datasource = catds.tables("calls") and also datagrid1.setdatabinding(catds, "calls") What was the difference?  I not sure I ever knew. Now in VB2005 there is no datagrid but instead a datagridview.  It only offers DataGridView1.DataSource = catds.tables("calls") ...
Score save changes to datatable back to database
cj - 16 Nov 2007 7:26 PM - 3 messages
Dim myExcelConnection As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & filename & "; Extended Properties=""Excel 8.0""") Dim myExcelSqlCommand As String = "SELECT * FROM [all ANIs$]" Dim myExcelAdapter = New System.Data.OleDb.OleDbDataAdapter(myExcelSqlCommand, myExcelConnection) ...
Score Exception issue, vb.net 2005
Sid Price - 16 Nov 2007 6:13 PM - 3 messages
I have an application with the following code: Try oFile = New FileStream(strConfigFile, FileMode.Create, FileAccess.Write, FileShare.None) ' ' File is opened, write to it using XMLDocument ' Dim oXMLFile As New Xml.XmlDocument() ' ' Set doc type ' Dim xmlDeclaration As Xml.XmlDeclaration = ...
Score Comments disappear from appSettings after Save()
Antonio Ooi - 16 Nov 2007 6:01 PM - 10 messages
Hi, I have the following appSettings in my app.config file:   <appSettings>       <!-- Some comments here -->       <add key="MyKey1" value="1"/>       <!-- Some comments here --> ...
Score Getting image from wewbsite
Johnny Jörgensen - 16 Nov 2007 5:02 PM - 15 messages
Does anybody know how you can extract an image fron a webpage loaded into a webbrowser control and either save it to file OR save it in a database? Cheers, Johnny J. ...
Score Is this a bug with the Hashtable?
SP - 16 Nov 2007 4:34 PM - 5 messages
I am developing a multithreaded AS2 server, when the service starts I read an XML file and creates a hash table for the possible recipients. During testing I noticed that "Blank" entries were appearing in my hash table, they have no key or object associated with them (as seen in the watch ...
Score Creating Graphical Objects is VB.NET
Mark - 16 Nov 2007 4:20 PM - 3 messages
Hello everyone: I'm trying to teach myself Visual Basic 2005 .NET and the best way I have found is to create a project in Visual Basic 2005 .NET. The project concept is: I want to create a  'canvas' upon a form. On the ...
Score Add System.Net reference
jeff - 16 Nov 2007 4:00 PM - 4 messages
Hi All. I create a project to use System.Net However, when I want to add the reference, I can not find the lib. where should I download it? or where is it installed? My IDE is .NET 2003, VB Project. ...
Score Rading values from a Serial Port in VB2005
cmdolcet69 - 16 Nov 2007 3:36 PM - 12 messages
The sub below reads the value of position from my serial write command. However i need to read only the (3) and (4) index of the byte array and then need to convert it into a integer. When i get to the ...
Score How to retriever network computer's Host Name and Mac Address?
martin lanny - 16 Nov 2007 2:34 PM - 3 messages
Simple network scanner is a part of my dotnet solution. It pings ip addresses in a selected network range and gives me the response time for each computer it finds. Anyhow, I would need to retrieve two more pieces of information for each ...
Score Form looks good in XP but on Vista..
Kenneth - 16 Nov 2007 12:53 PM - 3 messages
Hi Have made simple form which consists of two controls besides of each other. It looks fine for me on my XP machine but when I run the app on a Vista machine the controls is not besides anymore but one of the ...
Score Checking the spelling and suggesting the correct one in VB.Net
zafar - 16 Nov 2007 11:17 AM - 2 messages
Hi, I want to make a personal digital library, For that I need make a search engine, User can search by giving the key words, but the spelling of given key word may be incorrect, so It is needed that ...
Score Reporting Services: TextBoxes always on same page
Pieter - 16 Nov 2007 9:45 AM - 3 messages
Hi, I have a group of TextBoxes on my report that I want to be put always on the same page. These are like for isntance 5 lines of textboxes, and I don't want to have 3 of them on 1 page, and 2 on the second: If there isn't enough ...
Score Bind Property of Child-Objecty to DataGridView
Pieter - 16 Nov 2007 9:17 AM - 5 messages
Hi, I want to bind a proeprty of a child object to a DataGridView, but it doesn't work. For instance: Imagen that I have an object Company, and this object company has a child object Address. Address has a property Street. ...
Score Retrieve Selected Items in a Listbox
Randy - 16 Nov 2007 6:23 AM - 2 messages
Hi, I have a listbox that allows multiple selections.  I need to loop through each selection and execute code based on the text of the item.  I'm sure that this is really simple, but I can't quite figure ...
Score Copy selected text from an external application
macrow - 16 Nov 2007 3:19 AM - 2 messages
Hi All, I was wondering if it was possible in vb.net to select text from an external application such as IE, then press a hotkey which would copy the contents to clipboard? I have no problems with setting up system wide hotkeys and with ...
Score DataGridView without databinding?
John Wright - 15 Nov 2007 9:49 PM - 5 messages
I have set up a datagrid on my form with six columns.  I want to capture the data from six textboxes on the form and add them to the datagrid.  All the info I can find about this is with datatables and databinding.  I don't want ...
Score masked text box mask
Bob - 15 Nov 2007 9:43 PM - 2 messages
According to the documentation, the mask value 0 should allow only input of 0-9 in the mask and the value 9 should allow only input of 0-9 and space.  When I use a 0 as the mask value it is still allowing the space character to ...
Score VB.NET Boolean vs Visual Fortran Logical
ags5406 - 15 Nov 2007 9:36 PM - 2 messages
Hi -- I posted this in a Fortran group but thought I'd post here as well. Any help is appreciated. I have a IVF10 DLL that is the calculation engine for a frontend application written in VB.NET 2005. I've noticed that when I pass a Boolean/Logical from VB.NET to IVF10 ...
Score Synchronize Two Comboboxes
Anthony Bollinger - 15 Nov 2007 8:11 PM - 6 messages
I have two tables in a master-detail relationship.  When I make a selection in one combobox, how do I have it display the values from a second combobox? Each table has a key and a text value for each record.  I don't yet see the ...
Score Project works on dev machine only
Tim Zych - 15 Nov 2007 6:36 PM - 9 messages
Stumped here. When I access a ComClass enabled library in Excel on the development machine, it works fine. When I install the app on another machine, and try to access it, I get an error: "File or assembly name DotNetApp, or one of its dependencies, was not ...
Score Newbie: start external program in .net compact framework
Francesco Ranieri - 15 Nov 2007 6:22 PM - 4 messages
Hi to all, I've started programming vb.net last week and I'm a newbie... I don't know if this newsgroup is right... if no, please point me in right direction! I'm programming my navigation system with: ...
Score HTTP Request: strip out html tags / get text that browser would show
Simon - 15 Nov 2007 4:53 PM - 4 messages
Hi We have an application that needs to just get the text that you would 'see' when you open a webpage in Internet Explorer with no code. Is it possible to strip out the html tags from the result of such code as ...
Score When to Check-out/check-in files in Visual Source Safe
Rick - 15 Nov 2007 3:52 PM - 3 messages
I am looking for some suggestions from the group on Source Safe. 1.  What is the best practice/rule for the Source Safe to check-out and check-in files for a small group of developers? 2.  What is the best practice/rule for the Source Safe to check-out and ...
Score datagridview hover
cj - 15 Nov 2007 1:53 PM - 3 messages
When you move the mouse over/hover over a cell in a datagridview and it holds more text than the column width shows it pops up a little box/window/bubble that attempts to display all the data in that cell. ...
Score Calling a IUnknown derived COM object from VB.NET (framework 1.1 )
rep_movsd - 15 Nov 2007 1:46 PM - 4 messages
Hi I have a C++ com object that exposes IStream and IPropertyBag, this is derived from IUnknown, there is no typelib or IDispatch etc I need to write a simple VB.NET app in VB 2003 that can create the COM ...
Score Scanning
Fine - 15 Nov 2007 11:33 AM - 2 messages
When any person enters any shop and buy some items then goes to where he pays the prices of his items, the person there make scanning to each item to know what's the price? I am asking how this is done? what's  program Language used to create this ...
Score Silverlight/WPF?
Imran Shaik - 15 Nov 2007 2:54 AM - 2 messages
Hello Everyone, Does anyone know a newsgroup community for Silverlight 1.1 or WPF using VB.NET? There are many communities and sample codes on C#, but why VB.NET is left behind every time? In my personal opinion VB.NET would be more productive ...
Score PInvoke question (caling conventions of C DLLs)
Anonymous - 15 Nov 2007 12:01 AM - 4 messages
I want to call functions in a Win32 DLL from VB. The DLL in question, is the Python DLL (python25.dll). I have noticed something strange. When I declare the functions in VB6 (i.e. VB classic), I get an error : "Bad DLL calling convention" - yet ...
Score Copy a form (for reuse) in a project?
Terry - 14 Nov 2007 11:56 PM - 10 messages
Hi,    Is it possible (w/o generating a gazillion errors) to copy a form in VS 2005 so that it can be modified and reused.  In other words, I have a form, alot of which I wish to use in a different form.  An no, I don't want to ...
Score Threading won't work on a function with parameters
esource - 14 Nov 2007 10:35 PM - 3 messages
Hi all, I'm trying to use threading model in my web service but addressof does not work with functions I'm using VS 2005 my code: Public Function Start() as Boolean     Dim MyThread As New Thread(AddressOf DoSomething) ...
Score How to open a pdf file that has been embedded as a resource
Shawn Yates - 14 Nov 2007 10:21 PM - 3 messages
Hello, I am currently learning VB and am still a beginner. I have embedded a pdf file as a resource and now I want to be able to view it in adobe reader by pushing a button. I have searched and searched but ...
Score VB.Net program stopped working
Manuel Wäschle - 14 Nov 2007 8:41 PM - 3 messages
Hello, I created a program with Microsoft visual basic 2005 express edition. It perfectly run at my notebook (win xp, sp2, framework 3.0, windows installer 3.1) a few weeks. After reinstalling windows, my program stopped working. why? can you help me? It have to work because all the ...
Score Off Topic possibly
Jack Russell - 14 Nov 2007 8:12 PM - 18 messages
I use comma delimited strings in data files. If I set my computer region/ culture to Spanish / Argentina the decimal character and the list separator are both set to "'" (comma. This makes decoding the strings almost impossible in certain cases. ...
Score edit item in CcomboBox after start run app
martin1 - 14 Nov 2007 8:06 PM - 6 messages
Hi, All, how to edit item in the comboBox in main form afetr start run app? Thanks, Martin ...
Score how to get present time?
Mich - 14 Nov 2007 7:44 PM - 5 messages
Hi, i want to put the present time (hours, minutes , seconds only) in a variable. I tried with dim ti as date dim ti as datetime dim ti as dateandtime .... without succes Thanks for help Mich ...
Score change field value in Datarow
cj - 14 Nov 2007 7:14 PM - 8 messages
If I'm sitting on a datarow for a customer and want to change his phone number only if it's blank what would I write? if myDr("phone")= "" then    myDr("phone") = "mphone" endif mydr.acceptchanges() ...
Score add item to comboBox
martin1 - 14 Nov 2007 7:08 PM - 5 messages
Hi, All, when starting run app, how to let user add item/edit item to comboBox on the Form, Thanks, Martin ...
Score call an event in code
clara - 14 Nov 2007 7:04 PM - 3 messages
Hi all, How can an event ( such as button.click) be call in code like any sub? Clara ...
Score Three-tier Model and Coupling: Raising Events and passing Business Objects
Charles Law - 14 Nov 2007 4:52 PM - 9 messages
This is a sort of pattern question, but relating to how components are coupled in a three-tier system. I have a presentation layer, business layer and data access layer, the first is the EXE, whilst the other two are implemented as DLLs. The EXE also ...
Score Localization issues VB6 SP6 vs SQL Server 2000 SP SP3a
Brad Ashforth - 14 Nov 2007 4:33 PM - 3 messages
We have the environment mentioned above. The Server OS is Windows Server 2003 SP2 and the client machine is XPPro SP 2. Several years ago we coded the application to "support localization". At that time we supported british and italian only and were not aware of any issues. A new client is coming on ...
Score DateTimePicker Usage
clara - 14 Nov 2007 4:19 PM - 3 messages
Hi all, How control( or erase ) a  datetimepicker's display and make it look like an ordinary combobox before clicking it? Clara ...
Score Efficiency of Chr() (or &=)?
Paulo Becker - 14 Nov 2007 3:28 PM - 8 messages
Hi! I'm coding an RC4 simulator, and in order to manipulate some data I've created functions that transform strings into byte arrays (where each array position contains the ASCII code of the character in the string), and from byte arrays into strings. ...
Score How To : List the user names online in asp.net
Dan - 14 Nov 2007 3:20 PM - 5 messages
Hi Group Memebers: I am pretty new to asp.net.vb. Please dont mistake me if my Q is silly... I want to list the user names online in home page.... I am adopting this metod: Get the user name after login and insert the names in a table who log ...
Score Option Strict On Disallows Late Binding -- What to do?
DK - 14 Nov 2007 3:20 PM - 4 messages
This particular area of the program builds a Excel spreadsheet for the user to manipulate further. After turning Option Strict On and correcting everything I can the following line remains -- any ideas how to reconstruct this so it doesn't think its a late bound object? ...
Score what is meant by typed/untyped/strongly typed datasets?
Rachana - 14 Nov 2007 2:38 PM - 5 messages
Hi, I have understood Data Sets but what is meant by  typed/untyped/ strongly typed datasets. Can any one explain me or suggest any site/ article,   to get  these concepts (and  their  comparisions) cleared? ...
Score Can you test for the debugger at runtime?
John Heitmuller. - 14 Nov 2007 2:34 PM - 4 messages
Hi, does anybody know if you can programmatically test within a VS 2005 VB.NET Windows app to see if the application is running in the debugger?  I have some extra controls on a Windows form that display useful info when testing the app.  I've set visible to false for these ...
Score Referring to page name
Jeff - 14 Nov 2007 2:05 PM - 2 messages
....still new with vb in visual studio 2005 how can I refer to the name of my .aspx page to use it in code? E.g., I have a series of .aspx pages and each has a corresponding column in ...
Score 'Form1' is a type in 'XXX.Module1' and cannot be used as an expression.
Anonymous - 14 Nov 2007 1:36 PM - 4 messages
I have this error when I try buiding a VB project: Error    1    'Form1' is a type in 'XXX.Module1' and cannot be used as an expression.    C:\code\vbstuff\Form1.vb    0    0 ...
Score invalid operation exception error
Pradeep - 14 Nov 2007 10:35 AM - 3 messages
My application runs as a service on a server. The applications runs fine for a few days. But after few days the service ceases to run. This happened twice. The event viewer of the server showed the below msg. The thing which is confusing me is tha the program runs fine for ...
Score Shadow Copy Wrapper?
CMM - 14 Nov 2007 6:20 AM - 11 messages
I've been scouring the net for the last few days looking for a way to copy a locked file (create a shadow volume, expose it... that's it) from within my program. I'm aware of the kludgy vshadow.exe commandline tool, but what I ...
Score Setup windows service
René Jensen - 14 Nov 2007 6:18 AM - 5 messages
Hi I have 2 questions about distribution of windows services. 1: How do you perform a click once on a windows service, so that I can be updated on a regular basis? I can only find out how to distribute ...
Score How to set default value for char
tshad - 14 Nov 2007 3:53 AM - 5 messages
I can't seem to find anywhere how to set a null value (default) to a char variable. I know you typically set a char as: Dim temp as Char = "a" But how do you set it to binary 0 (null). ...
Score Example of System::Collections::Generic::LinkedList [noobie]
sejong510 - 14 Nov 2007 3:53 AM - 3 messages
MSDN has an example of creating a LinkedList populated with String objects: [link] But, how would you have a LinkedList of a created class? LinkedList<CreatedClass> ll = new LinkedList<CreatedClass>(); ...
Score Split a large application
Mike TI - 14 Nov 2007 1:37 AM - 8 messages
Nov 13, 2007 Hi all I have an application that comprises of three modules. Initially a screen is displayed. Upon selection from a menu on this screen, module 1, module 2 or module 3 is invoked. Please note here that some ...
Score Build a string for arithmetic operation
Mike TI - 14 Nov 2007 1:31 AM - 12 messages
Nov 13, 2007 Hi all Can I build a string for arithmetic operation. (VB NET 2005) e.g. I want to build an arithmetic operation from within the program as mVariable="A1+A2+A3"    (where A1=1, A2=5, A3=10) (A1,A2 & A3 are variables ...
Score WebBrowser Control - NO events fired for frames within a frameset
foreverayid - 13 Nov 2007 11:58 PM - 2 messages
So i have spent fruitless hours (dont want to count them) looking for a solution to this one. My webbrowser control, that i use to grab data from the document property, is supposed to fire the documentcompleted event for each time a frame has finished loading. ...
Score Convert (Centimeter or Inches) to Pixel
Rob - 13 Nov 2007 11:12 PM - 3 messages
Hi Gurus, Is there any way to convert Centimeter or Inches to Pixel. Thanks for any help you can provide. Rob. ...
Score Replacing control arrays in .NET
Paul - 13 Nov 2007 6:24 PM - 6 messages
Hi everyone, I've just started using vb.net (vs.net 2005) after programming in VB6. I've noticed that control arrays are no longer used and need a little help. In VB6 I would have done this to loop through my recordset and set some values for ...
Score Force form to foreground?
M O J O - 13 Nov 2007 3:58 PM - 18 messages
Hi, How can I force a form to the foreground no matter what application is in front? Thanks! M O J O ...
Score Using an Excel sheet as a DB table
cj - 13 Nov 2007 3:42 PM - 5 messages
I have to take an excel sheet and for each of the 40,000 some customer records look up their address from a Sql Server database using their customer number found in the first column of the excel table and add the ...
Score How to synchronized a function
jeff - 13 Nov 2007 3:25 PM - 3 messages
Hi, I am a newpie for VB NET I want to synchronized a function, but I do not hot to do it? In Java, public synchronized void function(....) {      ..... } how to do in VS.NET 2003 Public Sub Function(.....) ...
Score clearing dataset or datatable
cj - 13 Nov 2007 2:00 PM - 11 messages
I have a program to display queries to a SQL db.  I type my query in a textbox and click a button and the results display in a datagrid.  I could use either dataset or datatable to read the data in then I make ...
Score Why does BinaryWriter write garbage before my stuff
Anil Gupte - 13 Nov 2007 9:41 AM - 6 messages
I am using the following code to write a file.  The initial part (i.e. strHeader) is just a string, then there is some Binary Data and then again a very short string.  I find that at the start of my file, there are some ...
Score Structures and Delegates and ByRef Arguments
eBob.com - 13 Nov 2007 4:56 AM - 6 messages
If I have a structure and I pass it ByRef to a Subroutine via a Delegate, any changes to the structure are not seen by the caller.  This sure seems unfortunate to me and I would welcome any explanation of why this is ...
Score ShellExecute error
H. Martins - 12 Nov 2007 4:50 PM - 2 messages
Hi. I have the following code: Option Compare Database     Public Declare Function ShellExecute Lib "Shell32.dll" Alias "ShellExecuteA" _     (ByVal hwnd As Long, _     ByVal lpOperation As String, _     ByVal lpFile As String, _ ...
Score Pause doesn't work in vb.net
James - 12 Nov 2007 4:34 PM - 4 messages
anyone know why the pause button doesn't work in vb.net 2003? it works on some small applications but not this large one im currently working on. i will appreciate any ideas! ...
Score filling textbox from datagrid
cj - 12 Nov 2007 3:57 PM - 6 messages
This should be easy.  I have a datagrid filled with data and when I click on a cell I want that data displayed in a text box.  How do I do this?  Thanks.  P.S. this is a 2005 windows app. ...
Score Limit on Access where clause?
BobAchgill - 11 Nov 2007 5:44 PM - 5 messages
Is there a resource limit on how many items can be put in the Where clause of a select command that retrieves rows to a OleDbDataAdapter dataset?  Can it be unlimited if I change some settings? I bumped my head when I got to ... ...
Score Any good sources on video game programming in vb.net?
COHENMARVIN - 11 Nov 2007 1:47 PM - 4 messages
Are there any good sources on video game programming in vb.net? Is "DirectX" a set of libraries for video game programmers? The reason I ask is that I'd like to convert a board game into a computer game.  Its a game with up to 4 players, so it seems like it ...
Score Starting default mail program
Jack Russell - 11 Nov 2007 4:32 AM - 5 messages
I have the following code     Public Sub StartDefaultMail( _      ByVal [To] As String, _      Optional ByVal Subject As String = "", _      Optional ByVal Message As String = "" _ ...
Next » 2 3 4 5 6 7 8 9 10