| Control order of attributes? (VIP replies) |
| ASPFriends.com 'aspngcontrolscs' list |
| I'm having a problem w/ the following control.(oh, and feel free to use the code ;) The issue is that the first attribute needs to be rel 3D"stylesheet" otherwise netscape doesnt understand the tag. But instead it is the ID attribute. Is there a way to control the order of the attributes that gets output? 20 TIA, Seth Berger sberger@estco.net % @Control Language 3D"C#" % script runat 3D"server" la... |
|
| Control Repaint (VIP replies) |
| microsoft.public.dotnet.framework.drawing |
| Hi I made a user control It has a click event that sets a var for its back color I put in a Windows form When I click it it will not automatically repaint It does repaint if I move a window over it so I know my click is working it is just forcing the repaint that I can not do) To try to force the repaint I put this code in the click event of the control: private void UserControl1 Click(object send... |
|
| Control Transparency (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Hey guys, Does anyone know how to make the background of a control transparent? I read a couple of articles on other forums and MSDN that claim you can accomplish this by using the setstyles method, but that doesn't work. The control still draws with the default background color. Has anyone achieved this? Thanks in advance. |
|
| control with "popup" (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| It's fairly easy to make a control that, upon clicking it, displays a popup panel with buttons on it. It's also easy to hide it if an user selects a button within the panel. However, how to make it disappear if an user clicks /outside/ the panel? I have tried overriding numerous messages, without success. I guess an option would be to override the form's mouse click event, but I don't find a good ... |
|
| Control.Dispose hangs in SelectNextControl (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello Situation: WinForms 1.1 application has three Non Modal Forms being shown at the same time: formA is the main form (started with Application.Run) formB has an ActiveX control on it and is minimized formC is an ordinary form, which is activated formC now wants to close formB using formB.Dispose. somewhere in the Dispose method of formB, the ActiveX control gets disposed too. The system now ha... |
|
| Control.Location (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Alright found a bug in the framework I think... Someone try this... Build 2 forms. In form one, add a button that will open form 2. so Public Class Form1 inherits System.Windows.Forms.Form ... private sub onButtonClick (sender as object, e as system.eventargs) handles button1.click dim f2 as new Form2 f2.Location new Point(250,250) f2.Showdialog() end sub end class on form 2... add a label on your... |
|
| Control.MousePosition & ContextMenu Problem (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hello All, I have looked back through the postings in this group and there seems to be a recognised problem with getting the MousePosition for a control when a ContextMenu is assigned to that control. It seems that a tap 'n hold event does not update the MousePosition. There doesn't seem to be a problem when using the emulator only when running code on an actual device. The following code shows th... |
|
| Control_Paint produces garbage (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| Hi, i'm trying to paint a small border with a custom color around a panel with the following code: Private Sub objPreviewPane Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles objPreviewPane.Paint With e.Graphics .Clear(System.Drawing.Color.Beige) .DrawRectangle(System.Drawing.Pens.Blue, New Rectangle(0, 0, objPreviewPane.Width 1, objPreviewPane.Height 1)) End W... |
|
| Controlbox menu in custom form (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| I have a custom drawn form with FormWindowBorder.None, and I would like to be able to show the standard menu when the user clicks the control box in the upper left corner of the form. Is this possible without creating the menu by myself? The Move item feels a bit complicated :) I haven't found a way to get hold of the menu in .NET but I found GetSystemMenu in User32.dll, but I don't know what to d... |
|
| controlling datalist controls when dropdownlist is selected (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| I am having problems controlling an asp:textbox from within a datalist when a asp:dropdownlist index is changed in a datarow. I have a datalist control that when bounded contains an asp:dropdownlist and an asp:textbox. When the dropdown list is selected, I have handled the event as follows: asp:DropDownList ID "ddlMailAgeVerbose" OnSelectedIndexChanged "setOptions SelectedIndexChanged" AutoPostBac... |
|
| Controls on Splitter Control (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi Is it possible to position a button for instance on a splitter control so when the splitter is moved, the button stays positioned over the splitter? Regards, Carl. |
|
| Convert C# to vb.net help (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| (IT is saying the Operator ' ' is not defined for types 'System.Drawing.Color' and 'System.Drawing.Color'. (btnface is a color) If btnFace Color.White OrElse btnFace Color.Black Then res highlight Else res Color.FromArgb(GetLightIndex(colorInfo1, btnFace.R, highlight.R, window.R), GetLightIndex(colorInfo1, btnFace.G, highlight.G, window.G), GetLightIndex(colorInfo1, btnFace.B, highlight.B, window.... |
|
| Convert C# to vb.net help (VIP replies) |
| microsoft.public.dotnet.framework |
| (IT is saying the Operator ' ' is not defined for types 'System.Drawing.Color' and 'System.Drawing.Color'. (btnface is a color) If btnFace Color.White OrElse btnFace Color.Black Then res highlight Else res Color.FromArgb(GetLightIndex(colorInfo1, btnFace.R, highlight.R, window.R), GetLightIndex(colorInfo1, btnFace.G, highlight.G, window.G), GetLightIndex(colorInfo1, btnFace.B, highlight.B, window.... |
|
| convert code (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| is there a tool that will convert cold fusion code to C#? Or anything out there to help in this process? thx |
|
| convert code written without editor to editor compatible? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I have an application in C# that was written as a bunch of individual CS files. I would like to combine these all into single solution that can be editied with the Visual Studio 2003 editor. Does anyone have any tips on how to quickly bring this code into the VS2003 environment? Below is a sample of the code for an about box: For this example, it wouldn't be all that difficult to just create a new... |
|
| Convert DataGrid to Excel (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.webcontrols |
| Hi, I wrote a small function, thaht converts a DataGrid to Excel from a Web Application (C#). Running the function with 100 200 rows it just works fine. Starting a "special" Report produces a DataDrid with about 13650 Rows. Now the conversion to Excel does not work. Are there any known restrictions? The code looks like this: private void btnExcel Click(object sender, System.EventArgs e) { Response... |
|
| convert date to ticks? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hi, Does anybody know how to convert date to ticks from a dateTimePicker? What I'm using now isn't working. I'm trying to use a dateTimePicker to set an appointment in Outlook with a reminder. I need this reminder to remind the recipient 14 days in advance. I'm having problems with the ReminderMinutesBeforeStart. If I simply multiply the minutes by the days, the reminder doesn't have the checkbox ... |
|
| Convert this VB code? (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| I'm a C# beginner. Can someone convert this VB code to C#? Dim i as Integer for i 0 to 4 dim pnl as Panel ctype(FindControl("pnl" & i.tostring), Panel) if mytabstrip.SelectedIndex i then pnl.Visible "True" else pnl.Visible "False" End If next End Sub Thanks in advance. pj |
|
| Converting an object to a byte array (VIP replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, Can anyone please tell me how to convert an object say, a System.Web.Mail.MailMessage object, to a byte array and then convert the byte array to a Base64 string? Any assistance gratefully received. Best regards, Mark Rae |
|
| Converting Recordset to DataView (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a dataview with a count 0. Can someone explain why and how I might work around this problem? Here is the code for my function: Public Shared Function GetViewFromRS(ByVal pRS As ADODB.Recordset) As DataView D... |
|
| converting to pixelformat16brgb565 (VIP replies) |
| microsoft.public.dotnet.framework.drawing |
| ASP.NET VB VisualStudio.net Enterprise Whereas: most windows bitmaps are 24bit RGB or 32 bit ARGB, and whereas: I have an app that MUST have a single 2byte word for each pixel in RGB565 format. How does one do this in a webapp? I have tried the .clone method to see if that converted anything it doesn't, though this begs the question of why is "PixelFormat" a required argument? I have tried to crea... |
|
| Copy a folder/Directory (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have been working on a class that moves files around and have come to a need to move an entire directory at one time. I thought that this would be really simple (some kind of CopyDirectory command) but no such luck. How can you move a Folder/Directory in vb.net? Thanks Brad |
|
| Copy and Paste with one Button (VIP replies) |
| microsoft.public.vsnet.general |
| How do I Copy and Paste with the same Button like on notpad or another Object. I'm new at this Thanks Steve |
|
| Copy directory listing to text file (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I'd like to copy the listing of a directory (& sub directories) to a text file in vb.net. I'm looking for teh equivilant of the DOS command dir [SourceDirectory] /s TargetFile.txt. Thanks! |
|
| Could not find installable ISAM. (VIP replies) |
| ASPFriends.com 'ngfx-oledb' list |
| Hi all, A newbie to ASP.Net. I am trying to retrieve database rows with a dataset and I am getting the error above. Thanks inAdvance Regards Srini Source Error: Line 17: Line 18: dim ds as Dataset new Dataset() Line 19: myCommand.Fill(ds, "tblUsers") Line 20: end sub Line 21: /script The code is given below %@ Page Language "VB" debug "true"% %@ Import NameSpace "System.Data" % %@ Import Namespace... |
|