Topics
-
-
- Leaders
- 4 replies
- 1.6k views
I need o trigger events for my custom properties residing in a custom control. Basically, I need a trigger for each property the control has and whenever they change. I've seen some examples on the web but I did not get a clear picture of how the whole thing works. This is what I have so far: public partial class EFile_ComboBox : UserControl { public event EventHandler TextChanged; [Category("Appearance")] [Description("Specifies if a shadow should be draw for the button text.")] [DisplayName("Text")] [EditorBrowsable(EditorBrowsableState.Always), Browsable(true), DesignerSerializationVisibility(DesignerSerializationVi…
Last reply by EFileTahi-A, -
-
- 0 replies
- 1.8k views
Re: Moving Items Up Or Down in A Listview Box Split from Moving Items Up Or Down in A Listview Box gud day .. how to save this after arranging ? cause when you close the application the arrangement of the database still the same? nid help im new in this one thanks :confused: Note from moderator: Welcome to the forum! When asking a new question that relates to an old topic, it's preferred that you create a new topic with a link to the old topic. You're more than welcome to quote relevant text, too. Thanks!
Last reply by jojemar, -
-
- Leaders
- 2 replies
- 3.6k views
Im trying to create a pixel search function, but i keep getting memory leaks and i cant figure out why. I fixed 1 put another popped up. Was wondering what im doing wrong. } public Bitmap capturescreen(Rectangle rect) { Size sz = Screen.PrimaryScreen.Bounds.Size; IntPtr hDesk = GetDesktopWindow(); IntPtr hSrce = GetWindowDC(hDesk); IntPtr hDest = CreateCompatibleDC(hSrce); IntPtr hBmp = CreateCompatibleBitmap(hSrce, sz.Width, sz.Height); IntPtr hOldBmp = SelectObject(hDest, hBmp); bool b = BitBlt(hDest, 0, 0, rect.Width, rect.Height, hSrce, 0, 0, CopyPixelOperation.Source…
Last reply by snarfblam, -
-
- 0 replies
- 2.3k views
Does anybody have any examples of how to get a scheduler in a datagridview? I want to have a datagridview(probably 3) Month, Week and day(these 3 similar to how Google calendar looks). I have seen it done, but for the life of it i cannot figure it out myself. I know there are licensed components which offer these things for windows forms. But honestly that's a bit to expensive for me, and i rather code it then drag/drop it.
Last reply by CnB, -
- 1 reply
- 2.5k views
I developed an application in C # where I have 6 text boxes and a datagrid with 4 columns and multiple rows and a button. The button should generate an xml file. I can create the xml file and write the data from text boxes, but not the DataGrid. Anyone can help me? Thank you.
Last reply by DecemberChild, -
- 0 replies
- 2.3k views
I have managed to fumble my way to some degree of success with DirectX... only real problem I have now is that my render meshes take on the aspect ratio of the windows form object... ? using System; using System.Windows.Forms; using System.Collections.Generic; using System.Timers; using System.Drawing; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace Model { /// <summary> /// Description of MainForm. /// </summary> public partial class MainForm : Form { private Device device = null; private Mesh NeutronMesh; private Material NMaterial; private float NMass = (float)1.67495438; private float NRad = (float)1.11328405736; private Me…
Last reply by SleepingTroll, -
-
- Leaders
- 3 replies
- 2k views
(sorry about the repost, just realized the original was in the wrong place) I create a form and it displays fine, however as soon as I create my directX device the form stops displaying! Here is my code, please note that I can eliminate all of the DirectX code and the form displays, however just the line 'private Device device = null;' will prevent my form from displaying. using System; using System.Drawing; using System.Windows.Forms; using Microsoft.DirectX; using Microsoft.DirectX.Direct3D; namespace Model { public partial class MainForm : Form { private Device device = null; public MainForm() { InitializeComponent(); InitializeDevice(); } private…
Last reply by SleepingTroll, -
-
-
- *Gurus*
- *Experts*
- 16 replies
- 17.8k views
I am attempting to put in a print screen option in my vb.net program. I did some reading in the help and it says that the PrintForm function is no longer in vb.net and it suggests using a third party program to do the same functionality. The problem is that multiple users will be using this program. I don't want to have to find some third party program and then install it on every PC that needs to run the prog. Is there anyway to do something similar to PrintForm in vb.net? or Does Windows come with something that I could use and automate this procedure without using a third party program? Thanks for the help! shootsnlad
Last reply by ralphwadsworth, -
-
- 1 reply
- 3.3k views
Anyone know how to turn panel contents or a web page into the property.text of another control? ie: -------- here is some text {pretend this is a textbox} in a html file and this just keeps going. There will be this that these and those and underneath is html that formats the this look. ----------- I just want to save the above to a property such as: Textbox1.Text = TheTextAboveWithFormat any help would be appreciated.
Last reply by nate, -
- 0 replies
- 2.5k views
I am using an AJAX slideshow extender on a home page for a client. It works great in IE & FireFox but it does not rotate in Chrome. This is a weird one I have not heard of. Any help or thoughts would be great. This is the site, it is the images on the home page. http://www.raglm.org
Last reply by nate, -
-
- Leaders
- 2 replies
- 3.2k views
I know this seems a silly thing to ask about out of the blue, so I guess I should explain a little further. I am a hard core VB6 programmer. I've had over ten years to transition to .Net and I've been fighting such a transition all that time. I have written a little C++.Net and ASP.Net code but mostly I've been successful at avoiding having to rewrite all my VB6 code to .Net. Now it's 2012, and VS.Net has to be considered a "mature" programming environment. Recently I got asked by a friend, who is the owner of a small to medium size business, about moving his VB6 code (for a large document repository management software for millions of documents) to .Net. Of…
Last reply by dotnetguy37, -
-
-
- Administrators
- 9 replies
- 32.9k views
Hi all, I am really struggling with this one!! I need to let users delete a bitmap file from a location on a server and also delete a record relating to this bitmap from a database at the same time. Every time I click on the delete button it throws an exception message saying "The process cannot access the file "\\server\blah\blah\myfile.bmp" because it is being used by another process" I think I need to close the process somehow but have no clue how to do this. My code is shown below: Try If MessageBox.Show("Are you sure you want to Delete this document?" & vbLf & vbLf & "NOTE: If you click Yes you will not be able to retrieve thi…
Last reply by JoshuaReen, -
-
-
- Leaders
- 1 reply
- 1.1k views
The attachment shows a screenshot of something I want to do. I want the user to be able to insert smart 'components' in the textbox selected from the drop-down menu. The program will then replace these with proper values. My first instinct says to create custom controls that inherit from labels. These will be my smart components. Then a custom textbox control that accepts these labels as input? not sure if I am on the right track and not sure how a textbox can accept a control as input?
Last reply by snarfblam, -
-
- 2 replies
- 4.2k views
I'm starting out with learning C# and GDI+; and was trying to come up with ways of implementing mouseclick movement for a game. The method I came up with is below. Would welcome any suggestions for making it better. Relevant code:--- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace clickmoveproject { public partial class Form1 : Form { Bitmap backup; Graphics gfx, fgfx; PointF charloc; private bool mclick; float spe…
Last reply by heater19, -
- 0 replies
- 1.8k views
When I add a reference, how can I be sure I am referencing the correct version of DirectX? I first installed DirectX 11 SDK... I did a system restore, however when I ran my IDE and added references, DirectX was still there when I should have had no SDK installed.
Last reply by SleepingTroll, -
- 2 replies
- 16.3k views
I've already searched high and low on the http://www.crystaldecisions.com and wherever else I could think off, but haven't found a satisfactory answer to an annoying problem. I've even unsuccessfully tried to get an answer from the C.D. staff and seeing as I've had great help on this forum in the past I figured I might try it here as a last resort. Is there a way to force merge modules to grab the proper/latest versions of the Crystal Decisions dll's from a developer system when an application is packaged for distribution? I ask because my problem is this: Visual Studio .NET installs version 9.1.9370.0 of CrystalDecisions.Windows.Forms.dll but this dll…
Last reply by momoaal, -
- 7 replies
- 16.4k views
Is there a simply way to avoid the standard "BackColor" of the TabControl? I mean, if you put on a form a TabControl with one TabPage. Set the BackColor of the form and of the TabPage to, say, Blue. You will still have the "tab zone" of the TabControl to be colored by SystemColor.Control Can we change that? Is there a property somewhere I missed? Do we have to do that manually using GDI methods? (if so, does somebody has some code or tricks?) Thanks,
Last reply by wowdeary, -
-
- Leaders
- 6 replies
- 3.7k views
When I draw an image the color is not the same as the original. Is there any way to fix that? e.Graphics.DrawImage(Im, rect);
Last reply by JibstaMan, -
-
- 0 replies
- 2.5k views
Hi! I'm have been converting old VB6.0 project to VB.NET (2008) and now I'm struggling with ListView component. ListView Events are coming clearer now and I managed to read a huge amount of data (96.000 rows) from textfile to ListView with 6 subitems. All rows are build up nicely, but when I'm scrolling down the rows slowly, through scrollbar (clicking bottom arrow), rowheight is reduced to about half in first 20-30 rows below components upper row??? When I'm using PageDown or scrolling faster (dragging from scrollbar), everything is ok. And when I click to blurred row, it is refreshed and rowheight returns to normal. This didn't happen in VB6.0. Is there any Event, where…
Last reply by Rakham, -
- 1 reply
- 4.2k views
how can you make the web request not use a proxy at all? (not use the system proxy)
Last reply by BrettW,
-
Who's Online 0 Members, 0 Anonymous, 31 Guests (See full list)
- There are no registered users currently online