ASPFriends.com 'aspngvb' list Archive - October 2001
Messages
Page: 1
Custom Collections (3 replies)
ASPFriends.com 'aspngvb' list
What is the best technique for creating a custom collection? In VB6 we just created a class that mimicked the properties of the a VB Collection, then exposed the enumerator so we can get For/Each functionality. Does anyone have any code samples? I have looked at inheritance of the collection class and implementing the interface from the ICollection interface and the ILists interface as well as rol...
VB.Net to CSharp (2 replies)
ASPFriends.com 'aspngvb' list
Hello All.... I am trying to convert the following VB Function to C#, but I seem to be missing something, when ever it compiles I get a "CS1002: ; expected" error on line 2. My VB Version: 1. Function GetStream(strURI As String) As StreamReader 2. Dim objURI As URI New URI(strURI) 3. Dim objWebRequest As WebRequest WebRequestFactory.Create(objURI) 4. Dim objWebResponse As WebResponse objWebRequest...
transactions in vb.net (3 replies)
ASPFriends.com 'aspngvb' list
Hey I have a application where I need to run sql statements inside a transaction. Can anyone help me with a code sample how this work! Do you still you the connection object to begin and commit a transaction? David
problem in connecting to Foxpro .dbf file thr' VB.NET. (2 replies)
ASPFriends.com 'aspngvb' list
Hi, I have problem in connecting to Foxpro .dbf file thr' VB.NET. I have used MS ADO.NET, VFP Driver for connection. I am using the following code ***************************************************** Public m sConnection As String Public m cnConnection As ADO.ADOConnection Dim arrParameters() As ADO.ADOParameter Dim sStoredProcedureName As String Dim sTableName As String Dim dsLoad As New DataSet...
Calling function with function pointers (3 replies)
ASPFriends.com 'aspngvb' list
Hi All, Do you have any example how to call function with function pointers in the parameter list? eg. In RegEx Object [Visual Basic] Overloads Public Function Replace(String, MatchEvaluator) As String Thanks Regards, Eddy
control array (3 replies)
ASPFriends.com 'aspngvb' list
Hi there all!!! This is my first time use of this wonderful list server. I dont know whether this issue has been taken in this list before but I am a fan of control arrays in visual basic and I have used it wherever possible in my project. But now when microsoft has stabbed it from the back (like it did to clippy : )), I wonder whether I have any alternative to control array in VB.net. I would app...
Image generation with beta 2 (6 replies)
ASPFriends.com 'aspngvb' list
I've looked for information and examples on how to generate graphics/images with the beta 2 framework but so far no good. The only example I have found was for beta 1 and doesn't run well with the beta 2. All I need is just a simple code that generates gif files based on a fonttype and fontsize, just clean and simple black&white. Working with VB.NET so it would be best to have some example with th...
Do UserControls have to be put in the GAC? (4 replies)
ASPFriends.com 'aspngvb' list
Do UserControls have to be put in the Global Assembly Cache? I'm getting an error trying to include a user control on a page. When I look at the log file using the fuslogvw.exe file the error reads that the DEVPATH variable is not set and the compiler can't find the CSharp compiler (I'm working in VB). Any ideas?
exe doesn't work without .NET framework (6 replies)
ASPFriends.com 'aspngvb' list
Hi, I'm just starting out with VB.NET My Hello World exe does not run on a computer without .NET Framework SDK or VS.NET. Standard exes of VB6 work so why shouldn't this? The code: Imports System Public Module modMain Sub Main() Console.WriteLine("Hello World!") End Sub End Module It compiles and runs if the computer has the .NET Framework SDK installed. I compiled using the following batch file: ...
NOT ANSWERED - ServiceBase.OnCustomCommand and ServiceController.ExecuteCommand (5 replies)
ASPFriends.com 'aspngvb' list
Hello, I am trying to use the ServiceController.ExecuteCommand(Integer) / ServiceBase.OnCustomCommand(Integer) methods to communicate with a Windows Service that I wrote. The OnCustomCommand receives the appropriate command identifier (in this case, 128), but I can't figure a way to return any kind of information back to the calling program. It's like the service is cut off from communicating back...
Bizarre Dataset problem (5 replies)
ASPFriends.com 'aspngvb' list
I am having a very strange problem. I have a very simple class that has one method that is supposed to return a DataSet (see code below). However when I try to compile this using the command line compiler I get errors (see error message below) that seem to complain that I don't have a reference to System.XML.Serialization (which makes no sense at all to me). As far as I can figure all I need is th...
No Events button in Properties window (2 replies)
ASPFriends.com 'aspngvb' list
Hi, I can't find the Events button in the Properties window. Without this a custom eventhandler name can't be assigned to a default event e.g. AnyEventName to Button Click(ByVal sender as object, ByVal e as EventArgs), in design mode. There were no errors during my installation on a clean box. I'm using Beta 2 Version 7.0.9188 Am I missing something? TIA Maloy &# N;extPart 000 0019 01C12506.036FE1...
Services UI: Was ServiceBase.OnCustomCommand and ServiceController.ExecuteCommand (3 replies)
ASPFriends.com 'aspngvb' list
Rob, At last! Someone knowledgable about services! I'm implementing an application as a service in VB.NET and I am making great progress on it. The service itself is not the problem. The problem is creating the control panel applet with which I can manage the service. I've seen no examples of creating control panel applets with any .NET language and I'd hate to have to revert to low level C code i...
NewBie: Need code for File Access (2 replies)
ASPFriends.com 'aspngvb' list
Please give me code for IO (File Access) using any class. Actually I was using System.IO.TextReader for input, but got stuck with the Stream problem. How do u put something on the Stream. Please help me. Salman Ahmad Khan.
System.Runtime.Remoting.Channels.Tcp (3 replies)
ASPFriends.com 'aspngvb' list
This message, which was originally sent to "aspngcommunity", has been moved to "aspngvb" mailing list by the List Master Trying to compile the following sample code: Imports System Imports System.Runtime.Remoting Imports System.Runtime.Remoting.Channels Imports System.Runtime.Remoting.Channels.Tcp Namespace RemotingSamples Public Class Sample Shared Sub Main() Dim chan As TCPChannel chan New TCPCh...
Paging in DataGrid using a Datasource as ADODataReader. (3 replies, VIP)
ASPFriends.com 'aspngvb' list
Hi all, I have a problem with paging using datareader as datasource. There are examples on net for paging using a dataview but not for datareader The below code calls a component and returns a datareader. Then it will be bound to the datagrid with allow paging set to true The following error is returned by the below code Error : VirtualItemCount must be set for DataGrid with name '{0}' when AllowP...
Datgrid error asp:boundcolumn (5 replies, VIP)
ASPFriends.com 'aspngvb' list
I am just starting out with VS.Net using VB and have created a datagrid that is connected to an SQL Server table using a dataset. The project is a web application. The data grid initially displayed in my browser without complaint. I changed some formatting options, at least that is what I remember changing, and then the browser displays the following error message (Line 15 is in red): Parser Error...
Using ArrayList.Sort() (4 replies)
ASPFriends.com 'aspngvb' list
I am having trouble understanding how to use the Sort method of an ArrayList. I have an ArrayList object that contains an array of objects. One of the properties of these objects is a create date. Is is possible using the Sort method to order these objects from oldest date to newest date? Thanks! Devin
Drag 'n Drop (5 replies)
ASPFriends.com 'aspngvb' list
hi, I am developing an ASP.NET application. I have a Web page in which I have 2 Link Buttons. What I have to do is, I have to allow the user to Drag LinkButton 1 and Drop it into LinkButton2 so that the Path which the LinkButton2 refers may be got at that time. But I am unable to see such a feature. Is there any possibility of such Drag and Drop operations in ASP.NET? If so, how can I do that in t...
Upload file with vb.net (4 replies)
ASPFriends.com 'aspngvb' list
Moved from [aspngvs] to [aspngvb] by The Sorting Hat Hi all, Someone knows the method to upload a file on the server with asp.net Thanks Regards, Cyril
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com