Topics
-
-
- Leaders
- 3 replies
- 1.5k views
Dear all, In VB.NET Pro 2003 I always managed to make the forecolor of a label control nicely fade into the background using lblSomething.Forecolor = Color.FromArgb(a, 255, 255, 255) Where a is counted up or down to get a nice smooth fading effect. BUT now in VB.NET Express 2005 this code doesn't work anymore ??? I tried several options, like transparent backcolor, and the Usecompatibletextrendering but nothing works. The text simply stays opaque. The color is changeable though if I edit the red/green/blue values, but the alpha value doesn't do anything. I can use the opacity function with forms though, so it's not a video driver issue imho. Thanks in adva…
Last reply by snarfblam, -
-
- 0 replies
- 1k views
I have this : <body onload="window.opener=top;window.open('login.aspx','something','menubar=no,resizable=yes, height=768,width=1024');window.close()" > ... </body> Resoultion on my box is 1280x800. The width looks fine but the height looks very very long! I tried the same thing on another box with resolution of 1024x768..again the height looks very very long .I have to resize to see the bottom of page. Also tried using Page.ClientScript.RegisterStartupScript in the code behind and still the same result.. This is my other code: Dim popupScript As String = "<script language='javascript'>" & _ …
Last reply by eramgarden, -
-
- Administrators
- 4 replies
- 11.1k views
I was reading (now i cant find the link) that it's better to use <div> to design pages in ASP.Net instead of Tables because it takes time for tables to render.. is this correct? If so, per this page, <div> is used with Absoulte positioning. I thought pages should have relative positioning... http://www.lissaexplains.com/html7.shtml
Last reply by mskeel, -
-
-
- *Experts*
- 5 replies
- 1.1k views
Hi I'm having problem getting a class to be referenced from several forms. The class in question is a simple class to log output to a file. So at any point i can write LogEvent("12 rows were returned") and this will be written out to a log file. I would like to instigate the class when the main screen loads and have every other form call this class with just using the above code. Can someone please tell me how i can do this? Thanks Jay
Last reply by Jay1b, -
-
- 1 reply
- 1.3k views
Hello, I'm tring to write a simple application that scans hard drive contents to find some files... I'm getting stucked with a particular directory ( C:\System Volume Information). As soon as I try to do directory.GetDirectories() I receive an UnAuthorizedException. Is there a way to check permission before trying to access to the directory? For now I've got around using try{}catch{} and creating a new FileSystemInfo[] ( I start from FileSystemInfo then I check if it's a dir/file using is DirectoryInfo/FileInfo). Am I right or there's a better way? Thanks
Last reply by silvercoin, -
-
- Administrators
- Leaders
- 5 replies
- 2.9k views
A Hashtable is perfect for storing a section of an ini file in memory because it has the key/value combination like an ini file. So I wish to use a Hash table but there are two features of a Hashtable I don't like. 1. ht["name"] is not the same as ht["Name"] (ie. Case sensitive). For an ini file this is bad because ini files don't need case sensitive text to work. In this case I can't have this case sensitive. 2. Enumerating a hash table wont return the items in the order they were added: Eg. IDictionaryEnumerator en = ht.GetEnumerator(); while (en.MoveNext()) { MessageBox.Show(en.Key + "=" + en.Value); } While it's not important that I have the items enum…
Last reply by snarfblam, -
-
-
- Leaders
- 5 replies
- 1.1k views
Is there a good place to find out approximately how much memory/system resources one control uses verses another control? I have many buttons on this project. I like the way the buttons look the best in toolbar form. I'm wondering what 20 toolbars with 3-4 buttons each would cost me resource wise verses 60-80 separate (non-toolbared) buttons.
Last reply by NeuralJack, -
-
- 1 reply
- 7k views
I have searched all over for this one.... I have foundout how to highlight one word but each instance of a word... rtb1.Find("Line", RichTextBoxFinds.MatchCase) rtb1.SelectionBackColor = Color.Yellow This will find the first instance of the word and Highlight it but how can I get every instance of the word within the rtb1 text and highlight them? I have found 3rd party controls but surely this can be done without them! vbMarkO
Last reply by Cags, -
- 0 replies
- 803 views
Ok I have successful binded attributes from the xml file I'm using to the treeview, I have set both the target and NavigateURLfield properties, but when I load the aspx page the links don't navigate like they are supposed to. If I look at the properities of a link at runtime the address is javascript:__doPostBack('TreeView1','sWelcome\\Funny Stuff\\The B.O.F.H.') not the value of the href attribute, and the properties dialog indicates that the page will open in the same frame, not the one specified in the target. What gives? I tried setting EnableClientScript to false to see if this was the problem but that didn't change anything. Can someone tell me what I'm overlo…
Last reply by caeanis, -
- 2 replies
- 2.1k views
Hi, I am trying to bind an xml file to a tree view. I get the following error when attempting to designate which attribute of a node will be the target or link: Error Parsing Control: Could not bind to the 'Nav' Property (specified by NavigateURLField) while data binding TreeView. Check the Bindings fields. Here is an example of the nodes I am attempting to bind to: <TreeNode Title="Fugue" Nav="fugue.htm"/> Can anyone tell me what I may be doing wrong? Caeanis
Last reply by caeanis, -
- 0 replies
- 1k views
I have created a GridView that selects data from a MySql database via ODBC 3.51 The select command works just fine as the table is being displayed properly. However, i do not know how to set the Update command manually. [You can't seem to be able to get the update feature by merely clicking on the checkbox in the advanced button - you have to do it manually if you're using ODBC]. some of the commands i've tried and didn't work are: (just look at the updatecommand) #1 ProviderName="<%$ ConnectionStrings:bionicConnec... %>" SelectCommand="SELECT supplier_id, supplier_name, supplier_address1 from suppliers" UpdateCommand="update suppliers set supplier_name=:s…
Last reply by remondo, -
-
- Administrators
- 3 replies
- 981 views
Ok, I am fairly new to .net and do not know how to utilize all of the new features. I am at a point where I have to build a xml file based upon a schema. In the past I would just create nested loops to build the xml. With .Net there are new tools wich I will probably use although I am not sure what is best or if my expectations of them are reasonable so any guidence would be useful. xml writer...seems like the same way as I am used to but with different tags to help see what is going on. xml datadocument..not too sure how this works dataset...load in the schema creates multiple tables but I am unsure how to insert the related data. These are the things that…
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 0 replies
- 5.1k views
The DesignMode property of the Control class is meant to be testable to see if the control is in design mode, allowing the programmer to produce different behavior at design time than at runtime. Unfortunately, the behavior of this property is particularly unreliable. It certainly has frustrated me at times and I'm sure that it has frustrated others, so I did a quick google search and found a few work-arounds on a blog and another blog. Test the value of GetService(typeof(IDesignerHost)) for null within a component. A null value indicates that the component is not hosted in a designer. This method did not work for me consistently. Check System.ComponentModel.Licen…
Last reply by snarfblam, -
-
- 0 replies
- 762 views
I am just wondering if there is a way I can check to see if one of my columns is empty before I display it in my repeater control. <table width="100%"> <tr> <td> <p> <i>Materials: <%#DataBinder.Eval(Container.DataItem, "Materials", "{0:c}")%></i> </p> </td> <td> <p> …
Last reply by Nate Bross, -
-
- Leaders
- 6 replies
- 1.6k views
Hi, my first post to the boards so hello! :) I've written a class that will auto size the height of a label based on the text inside. It works fine for normal text, but if I make the text bold it seems to ignore that it's bold and still measure the label as if it was regular text. This means it won't resize the label properly. I have to have this working for bold text! Does anyone have any ideas how I can modify it to work with bold text? public class clsAutoSizeLabel { [DllImport("gdi32.dll")] private static extern bool DeleteObject(IntPtr hObject); [DllImport("user32.dll")] private static extern int DrawText(IntPtr hDC, string lpString, int nCount, ref RECT lpRect,…
Last reply by snarfblam, -
-
I need to communicate with a perirpheral via USB. I tried searching for "USB" on these forums but it is to short to search on. Any hints to get me started or links to tutorials? Thanks MT
Last reply by MTSkull, -
- 3 replies
- 1.3k views
I have an application that loops through a set of code a certain number of times. After each loop I need to pause the process for number of seconds and then iterate through the loop again. In VB 2003 I used Thread. Sleep(no of seconds) and it worked fine. I also used Thread.Suspend and Resume which are not supported in VB 2005. Any ideas how I can do the same in VB 2005 without using Threading? Thanks.
Last reply by pcf108, -
- 1 reply
- 1.3k views
MonthCalendar and Context menu - RESOLVED Dear All, I've had a look over the net, and at the forum for this, but cannot find a way of doing this (though it may be fairly straight forward)... When a user right-clicks (to bring up a context menu) on a date on the MonthCalendar control, I want the SelectedDate to change to the one right-clicked prior to the contact menu being displayed. I've tried a couple of things, but haven't found a way of doing this yet. If anyone has any tips or tricks I'd appreciate it. Thanks in advance, Paul.
Last reply by mandelbrot, -
-
- Administrators
- 2 replies
- 2.8k views
hi, I can not add winfax.dll in vb.net. I got following error. " reference to "c:\winnt\system32\winfax.dll could not be added. this is nota valid assembly or com component. only assemblies with extension 'dll' and com components can be referenced. please make sure that the file is accessible, and that it is as valid assembly or com component." Is there any way to use winfax.dll or import winfax.lib in vb.net. Thanks. Joyal
Last reply by Joyal, -
-
- 1 reply
- 992 views
Hello everyone, I am creating a small application that will use SQL Server 2005 Express as database. This little piece of software will be used in different locations and at the end of the day it will have to synchronize the data from all the places where SQL Server will be installed. The next day all the locations' databases will contain the same information. Working in real time on the same database is not an option due to the possibly large distances between the locations. I haven't done this before, so i am asking you how to do this...what would be the best approach? Thank you!
Last reply by Gill Bates,
-
Who's Online 0 Members, 0 Anonymous, 48 Guests (See full list)
- There are no registered users currently online