Topics
-
- 2 replies
- 2.3k views
This is probably a really simple thing to fix (must be a very common issue) but I'm struggling to figure out what to do ... hope you can help. On a Paint event I am creating a bitmap that scales to the full drawing rect. It all works ok until the rect is increased in size (and then is ok sometimes and not others) It appears the device context is doing something behind the scenes to determine that it actually does not need to draw a specific part of the returned bitmap, however, the paint event is fired via an Invalidate call as opposed to a window being dragged over it, so not sure how it has determined what to draw and what not to draw. Anyway, the result it th…
Last reply by Dick Donny, -
- 0 replies
- 990 views
Hi i'm working on this control which exists of a ParentControl -> containercontrol ChildControls -> containercontrol when i add the childcontrols to the parentcontrol the parentcontrol calculates the size of the childcontrol all that works fine aswel in designer as in runtime but when i add controls(eg button,...) with the designer in the child control they show good but when i click the "build application" button the size of the controls in that childcontrol change they become much larger (note i do set the anchor value but still the behaviour is abnormal) i've been trying to find this problem for days now with no succes please if you have encountered …
Last reply by Engine252, -
-
- Leaders
- 0 replies
- 1.1k views
I am making a component that inherits from MenuItem, and another that inherits from MainMenu to contain my menu items. Much of the behavior of my menu items depends on properties of the MainMenu. My menu items can display images from an imagelist specified as a property of my main menu. I have implemented the ImageIndex and ImageList properties exactly as I have seen in many examples, like so: 'Specify Design time category, editor, and type converter <Category("Appearance"), _ Description("Image from specified image list to be displayed for this menu item, if nothing is specified for the property ""Image"""), _ Editor("System.Windows.Forms.Design.Im…
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 2.9k views
Hello, I think this will be an easy question to answer for an experienced .NET programmer. Can you change the colour of the text in a textbox that disabled? I have a light grey background to the text box which makes the text very difficult to read. Any help will be very much appreciated, Harold Clements
Last reply by AlexCode, -
-
- 6 replies
- 1.5k views
I work in Visual Studio .NET. I preview the page with Internet Explorer and everything looks ok. But I am a Firefox fan and when I preview the page in Firefox, everything related to asp.net controls looks different. Image buttons and Image boxes don't even show... textboxes, checkboxes etc , they look different. Any ideea on how to resolve this ? What I know is that I should chose a Target Schema of HTML 4.0, but it's not in the list from the page properties :( Pls :( Any sugestions are welcome
Last reply by PROKA, -
-
- Administrators
- 1 reply
- 1.1k views
Hi I want to change icon at runtime. How can I do it? I do not care if I read it from file or from some kind of imagelist, but when I wanted to fill imagelist there was an error: 'Invalid parameter used'. I use .ico files (3 icon resources in each - 16x16x24b, 32x32x24b, 48x48x24b) tx, matej
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.4k views
Hi there, I wonder if anybody can help me with this. I am trying to write a program that intercepts a command line for a game. The command line contains information on how to play the game on the internet, i.e.: The host IP address. The problem is that it uses the old DirectX 6 (Ripple Launch Technology) in playing internet games. More information can be found at: http://support.microsoft.com/kb/236614/EN-US/ When a game is launched the following example parameters are passed: midtown2.exe -nomovie -nolockcheck /dplay_ipc_guid:{d3a5a6d0-2619-4d83-a752-a9b2894b6799} What I hoping for is to pick up the "dplay_ipc_guid" and somehow get the information a…
Last reply by Pavcules, -
- 2 replies
- 2.4k views
I am actually scanning my computer right now for virii with housecall.antivirus.com 's over the internet scanning.. Basically what they do is download a cab file to your computer then scan your computer. Here is the cab: http://housecall-beta.trendmicro.com/housecall/xscan60.cab How hard would it be to utilize this scanning cab in a vb.net program (I don't really want to use a web page inside a form ) thanks for any pointers! Lee
Last reply by trend, -
- 1 reply
- 718 views
Hi, need some pointers in the right direction. I have three clients written in VB.net that retrieve data from a SQL server database. Each client watches the same table in the form of a datagrid. I would like it if when one client modifies data in the SQL table, it will automatically update the other clients view. I can get away with just having it refresh every 10 seconds or so, but my main goal is to have it automatically refresh instantaneously once an update is made to the database. The nature of the application depends on up-to-the second accurate information. Are there events that I can hook onto in SQL so that my clients can listen to them and trigger a …
Last reply by eramgarden, -
-
- Leaders
- 2 replies
- 1.1k views
Hi. I'm a little new to VB .Net, and I was wondering how to create and access simple data files that held String and Integer values. I know in VB 5 that you used "Open ("File Path ") For Input/Output/Append As #1", but I'm not sure how to do it in .Net. If someone could tell me how to create these files and then write and access data in them, I'd really appreciate it. Thanks.
Last reply by CanOz, -
-
-
- *Gurus*
- Administrators
- 13 replies
- 2k views
Would anyone here please evaluate my code? Is there something I am doing terribly wrong? using System; using System.Collections; using MySql; using MySql.Data; using MySql.Data.MySqlClient; public class ProductData { private int _ProductId; private string _ProductName; private decimal _ProductPrice; //Properties public ProductData() { } public int ProductId { get { return _ProductId;} set { _ProductId = value;} } public string ProductName { get { return _ProductName;} set { _ProductName = value;} } public decimal ProductPrice { get { return _ProductPrice;} set { _ProductPrice = value;} } } //…
Last reply by Mister E, -
-
-
- Leaders
- 3 replies
- 1.4k views
Some controls, for instance, the combo box and the datetime picker, popup a window that allows you to edit their value. When this window pops up it can be outside the bounds of the form that contains the control. It also does not take focus from the application's main form. How can this behavior be emulated in a .Net application? edit: I should have said this: My difficulty lies in not stealing the focus of the main window.
Last reply by snarfblam, -
-
-
- Administrators
- 4 replies
- 1.7k views
Hi! I´m working on a 3-layer architecture. And i'm using interfaces for all my classes in the Business Layer. I have a shared library for these interfaces. That was the way I found to make the Data Access Layer handle the Business Layer objects. So I have lots of properties, method calls, casting, parameter passing...and many of them through interfaces. I´d like to know whats the performance impact of this approach. Thanks.
Last reply by IngisKahn, -
-
- 3 replies
- 961 views
I'm still new to .net and been trying to understand Assemblies alot more. So I've been doing some reading and was wondering what exactly is the purpose of creating a "Single File Assembly" that has an .exe extension! -will IS it simular to ActiveX components with the .exe extension? -will
Last reply by IngisKahn, -
- 1 reply
- 1k views
Hi I have an asp.net webform which has a datagrid and a few other controls. I'm writing the code behind in vb.net I currently have a dataset that returns: Column1__Column2___Value __A____.___X____.___10 __A____.___Y____.___20 __B____.___X____.___30 __B____.___Z____.___40 __C____.___Y____.___50 __C____.___Z____.___60 Which I can get to display perfectly well on a datagrid. What I want to display on the page is the matrix form of this data, ie in this case: ____A__.__B__._C X__10__._30__._ 0 Y__20__._ 0__._50 Z__ 0__._40__._60 I have a few ideas but they all involve manually getting a list of the ABCs and XYZs, the…
Last reply by barski, -
- 1 reply
- 1.8k views
How can I loop through the rows in a datagrid ( I want to deselect the rows )? Is it easy to get the underlying row from a datarow in a datatable to the row in the datagrid? thanks / Henrik
Last reply by AlexCode, -
- 0 replies
- 1.4k views
Hi... Does anyone know how to create a MMC snap-in? I got some tuturial on CodeProject but this is a all-new, so called, framework... Any other ideas? Or must I stick with this one? Thanks Alex :p
Last reply by AlexCode, -
-
- Administrators
- 4 replies
- 2.3k views
Hi, I've to capture an enter event everytime when a user hit enter in richtext box for the new line. I want each line into array so that I could get each word separatly. How do I do that in c# ? Need some quick help with code. Regards,
Last reply by Roswell, -
-
- 2 replies
- 1.6k views
[PLAIN]System.Data Namespace Missing?[Resolved][/PLAIN] I am new to .net and was trying the quick start section that came with vbexpress ide; I noticed when trying to: imports system.data 'is missing and does not show 'on intellisense! it is missing from intellisense and I havn't the slightest idea how to fix. can someone please enlighten me?
Last reply by antecedents, -
-
- Leaders
- 3 replies
- 2k views
hi i wish to create textbox after i press a button if the user press the button 3 times, 3 textbox will be created these textbox are new..not invisible or disable can this be done? kindly guide me at this thank you in advance
Last reply by shingo99, -
-
Who's Online 1 Member, 0 Anonymous, 24 Guests (See full list)