| Invalid cast on SQL to other server (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Making the following call to a local MSAccess database works fine: Sub Session Start(ByVal sender As Object, ByVal e As EventArgs) Dim intRows As Integer Dim strSQL As String Dim ds As New DataSet ' Create connection Dim cn As New OleDbConnection With cn .connectionstring "provider Microsoft.Jet.OLEDB.4.0;" & "Data Source C:\PDB\Development\Database\PDB.mdb" End With ' Open connection cn.Open() ' ... |
|
| Invalid Namespace on (VIP replies) |
| microsoft.public.dotnet.framework.wmi |
| Calling ManagementObjectCollection oReturnCollection oSearcher.Get(); generates this error System.Management.ManagementException: Invalid namespace at System.Management.ThreadDispatch.Start() at System.Management.ManagementScope.Initialize() at System.Management.ManagementObjectSearcher.Initialize() at System.Management.ManagementObjectSearcher.Get() at test.Form1.button1 Click(Object sender, Even... |
|
| Invalidate Output Caches (VIP replies) |
| ASPFriends.com 'aspngcache' list |
| Is there an easy way to invalidate all the output caches for a site? When I update my template I need to clear all the output caches (the template it a .ascx included in a .aspx which is doing the caching). Thanks, Ryan |
|
| Invalidate() compared to Refresh() (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| picDocument is a picturebox When I do picDocument.Invalidate() the box paints. But if instead I do picDocument.Refresh() the box does not paint. What does Refresh do. I guessed it did an Invalidate and an Update. Can someone shed some light? Thanks |
|
| Inverted Transparency! (VIP replies) |
| microsoft.public.dotnet.framework.drawing |
| Hello, I'm developing a custom windows forms control which needs to support transparency... By following the GDI FAQ by Bob Powell I could make my component transparent...In this method, I can paint, let's say a text, with solid brush over my control and it works great... Now, I want to achieve a different thing. In this scenario, I want to make my background opaque and want to draw a transparent ... |
|
| Inverted Transparency! (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Hello, I'm developing a custom windows forms control which needs to support transparency... By following the GDI FAQ by Bob Powell I could make my component transparent...In this method, I can paint, let's say a text, with solid brush over my control and it works great... Now, I want to achieve a different thing. In this scenario, I want to make my background opaque and want to draw a transparent ... |
|
| Invoke but no call of the event (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I have a dialog that loads a file from a web server, this is done in an own thread. On finish or failure the thread is supposed to raise an event notifying the dialog. If the WebRequest now raises a timeout exception the invoke of the event is done, but the event is never executed. For testing purposes I exchanged the exception once by a simple divison by zero which works perfectly, the event is f... |
|
| Invoke doesn't return?! (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have 2 threads. 1 is UI thread, the other is a network receiver thread when my receiver thread receive something from the network; it will call invoke to change some (e.g. add a tree node in treeview) UI elements. the way I call invoke: void abc() { if (this.InvokeRequired true) { this.Invoke(new MethodInvoke(abc)); } else { // Update UI } } but i found that sometimes the network receiver thread... |
|
| Invoke? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| How can I "invoke" a method containing parameters? I've tried creating my own delegates and using them to do it, but can't get it working. Can't find any info on this anywhere. e.g.: public class MainForm : Form { private delegate void D(char c); private void Invoker() { D d new D(); this.Invoke(d('t')); } private void Invokee(char c) { this.Text c; } } |
|
| invokemember error (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| hi i am trying to invoke a member but this code gives me an error obj t.InvokeMember(m.Name, BindingFlags.DeclaredOnly Or BindingFlags.Public Or BindingFlags.NonPublic Or BindingFlags.Instance Or BindingFlags.InvokeMethod, Nothing, New Object, Nothing) kindly help m.name is just a method helo in my assembly |
|
| Invoking the Click event? (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Something like this: using System.Reflection; FieldInfo fi typeof(Control).GetField("Click", BindingFlags.Public|BindingFlags.NonPublic|BindingFlags.Instance); (fi.GetValue(button1)as EventHandler).Invoke(button1, new EventArgs()); From: "Zanna" znt.fabio@virgilio.it Subject: Invoking the Click event? Date: Wednesday, May 05, 2004 5:43 AM Hi all. Can I invoke the Button1.Click event without knowin... |
|
| Is it possible to clear containts of all textboxes on a form by issusing one command TIA (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| . |
|
| Is it possible to feed a dropdownlist from a XML document ? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| So far I've only worked with databound dropdownlists and I can't find any documentation/examples on feeding a dropdownlist data from a XML document. Any help would be greatly appreciated. Thanks in advance. Thomas |
|
| Is it possible to get the user IP address (VIP replies) |
| ASPFriends.com 'aspngfreeforall' list |
| Is it possible to get the active users IP addresses at session start Dennis H. West West Design dotnetDeveloper http://www.aspalliance.com/dotnetsolutions westdh@home.com |
|
| Is the process running in the CF? (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Can someone point me to the error of my ways here? I get a 'System.NotSupportedException' on the Process32Next call. Imports System.Runtime.InteropServices Private Const TH32CS SNAPPROCESS As Integer 2& Private Const MAX PATH As Integer 260 Private Structure PROCESSENTRY32 Dim dwSize As Integer Dim cntUsage As Integer Dim th32ProcessID As Integer Dim th32DefaultHeapID As Integer Dim th32ModuleID A... |
|
| Is there a way to insert an existing htm page into body of a mailmessage? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I have created a newsletter that I want to send to a list of 200 users (yes they all have requested it). I know this can be created line for line using htmlTextWriter but that is cumbersome at best. Is there a way to simply insert the page via referencing it into the body of the email. I tried the below but it did not work. Script runat "Server" Sub Submit Click ( s as Object, e as EventArgs) if p... |
|
| Is there an event generated when an application 'gets focus' within windows (VIP replies) |
| microsoft.public.dotnet.framework |
| When running an application, and the user uses the minimize button to shrink it from the screen, is there an event generated when the application is once more 'maximized'? Similarly, is this the same event that is generated when a user clicks on the application to 'bring it to the front' and make it the active app? regards Glyn Meek |
|
| Is there control of Tab Stops on webform controls? (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hello, I have several read only textbox fields on a web page, and was curious if there is any way to set them so when the user tabs through the web page, they are skipped? Thanks! Jim |
|
| Is this a bug in the humble ListBox?!? (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, I seem to be having a memory management issue with the ListBox control. Using .NET Memory Profiler, the Clear() method does not appear to actually remove references to objects in the list box immediately. I have been able to work around this by clearing the box, adding a dummy string entry, and then clearing it again. Here is some code to demonstrate this: private class TestObj { public overri... |
|
| IsAssembly( ) (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Is there a capability in the Assembly class to verify that the file being process actually contains Assemblies prior to processing them? Currently I do an Assembly.LoadFrom( ) followed by a GetTypes( ) and trap the exception that is thrown. This works but the performance is of course suboptimal. What I am holing for is something like IsAssembly( ) can be called to validate the file prior to proces... |
|
| IsPostBack with Response.Redirect to same page (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I've got a page that does a search... There is an ImageButton on it that allows the user to reset the search. The Click Handler for the button clears out the Data and then redirects to the same page with Response.Redirect("Search.Aspx", true); Sometimes the code in Page Load within the IsPostBack part of the if statement runs and sometimes it doesn't. IN other words, sometimes IsPostBack is true a... |
|
| Issue with inheritance (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi all, look this code, why the InvalidCastException are raised? How to workaround it? Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Label2 As New Windows.Forms.Label Dim Label3 As New New Label Label2.Text "TEST" Label3 Label2 End Sub Public Class New Label Inherits Windows.Forms.Label End Class Thaks in advance |
|
| Issue: Queued Component and Marshal.ReleaseComObject (VIP replies) |
| microsoft.public.dotnet.framework.interop |
| Hi, We used .NET EnterpriseServices Queued components in our application to for certain asynchronous processes (code fragments was attached) However, we found out that the "Objects", "Activated" counts in the Component Services MMC are growing constantly. The application is running on Windows Server 2003 with .NET 1.1 framework. I found some discussion threads from google search http://groups.goog... |
|
| Issues with connecting from .NET to Sybase ASE 12 (VIP replies) |
| microsoft.public.dotnet.framework.adonet |
| If anyone out there has been successful in connecting to Sybase ASE 12 from Visual Studio .NET 2003 either in a Windows Forms or Reporting Services project, can you please help me. ..... In summary, I wish to: (a) create a Windows Forms application using VB.NET (Visual Studio ..NET 2003 and .NET Framework 1.1) that will connect to Sybase ASE 12.0 to execute stored procedures. (b) create a SQL Serv... |
|
| Iterate thru controls collection on a form? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hello, I have a form with 5 textboxes named txt0, txt1, txt2, txt3, tx4. In VB6 I could iterate through these with For i 0 to 4 debug.print Me.controls("txt" & i).Name Next In dotNet, I can't seem to do that. Console.WriteLine(Me.Controls("txt" & i).Name) Could someone share how to do this in dotnet vb? Thanks, Rich |
|