Topics
-
-
- Administrators
- 18 replies
- 39.2k views
Hey y'all, this is my first post. I came here because it seems like great forums with active knowledgable people. I usually find my answers to all my VB.Net questions through hours or days or weeks of searching the internet, and I usually find my answer. But this question has been plaguing me for over a month so it's time to bite the bullet. What I need to do is sendkeys to a non-active window. The SendKeys and keybd_event commands only seem to send it to the windows environment in general, so it sends the key to the active window. Is there a way to send it to a non-active window? I already have code that successfully gets me the window handler, so that's all fine and …
Last reply by paigew, -
-
-
- Administrators
- 1 reply
- 939 views
I got my physics to work. I have a question tho. Sub CheckForCollision() If Picturebox1.Bounds.IntersectsWith(Picturebox2.Bounds) = True Then If Picturebox1.Bounds.Top = Picturebox2.Bounds.Bottom - 1 Then Collision = 1 End If End If If Picturebox1.Bounds.Left = Picturebox2.Bounds.Right - 2 Then Collision = 2 End If If Picturebox1.Bounds.Right = Picturebox2.Bounds.Left + 1 Then Collision = 3 End If If Picturebox1.Bounds.Bottom = Picturebox2.Bounds.Top + 1 Then Collision = 4 End If If Picturebox1.Bounds.Inte…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1k views
Hi! I have a project, in which a user can click a button- even if he's using different program- that button in the program will simulate a keyboard shortcut and and use it in that current program he's using. I wanted to ask how to do this: How do I simulate a keyboard shortcut in Expression Blend/WPF, and how do I simulate that key in another application-for instance if he's using Microsoft word- by pressing a button in my program- that button does CTRL +Z-and that works as undo in Word. How do I do this? I'd appreciate any help. Thanks!
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 804 views
Hai i am developing the windows application in visual studio 2005 vb.net here i want to maintain versioning of my code i heard that VSS but i dont know about how to get it and use can any one give suggestion to work out this thank you in advance
Last reply by PlausiblyDamp, -
-
- 1 reply
- 904 views
Does anyone have any idea why AcceptsTab might not be working? I have a class which inherits from TableLayoutPanel and contains a RichTextBox in one of its cells. I have set AcceptsTab to True for the RichTextBox and TabStop to False for the class, the RichTextBox and the other controls that it contains. But when the RTB has focus and the user presses Tab, the focus vanishes - it seems that the RTB loses focus and no other control receives it - it's just lost. I have tried duplicating this in a small project, but can't - the tab key is accepted perfectly well. Any ideas?
Last reply by rbulph, -
-
- Administrators
- 2 replies
- 841 views
Hi, I don't have Vista installed, but have a question about its error reporting. When my .NET application crashes, Vista shows error reporting dialog, can my users just copy and paste its technical data and send to my instead of sending it to Microsoft? If yes, how? I mean where in the dialog allows them to copy data? And a side question is that my application works great on all Vista machines, but except just one, it just encounter error reporting and says that application has been shutdown, it won't work on that machine although .net frame work is installed, I cannot find where's the problem! :confused:
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.1k views
I'd like to customise the property grid so that there is a button in one row that the user can click to perform an action. By giving the relevant property an Editor attribute and having a class inherit from UITypeEditor I can get a button with an ellipsis to appear on the right of the property grid row. But I don't want an ellipsis there. I would like to put my own picture there, or if the button could just be blank that would be OK. Can anyone help?
Last reply by rbulph, -
MDI, check if a form already exists
by Guest Fhwoarang-
- Administrators
- 8 replies
- 8.3k views
Hello, I'm new to this forum. I'm kinda new to .NET, but I like it a lot. I'm working on a program that controls the rents payment in a building. So I decided it should have several modules: tenants, departments, rent, tax, and a "generate new payment" module, in case they have to pay for something else. Anyway, I decided to use the MDI interface. I'm learning from a book I bought, so I don't know if there are other ways to do what I want to do. The problem is each module comes from one form, and there should be only ONE form of each module. The book has the following code, in C#: //ChildForm is the name of an existing form, intented to be the model of all chi…
Last reply by joe_pool_is, -
-
- 0 replies
- 3.1k views
I've got a table layout panel which contains some text boxes. I'm giving the user the option to decide whether to display these in 3D or Flat. If they are flat, their height is less. To keep the display looking good I want to reduce the heights of the rows in the tablelayoutpanel. It seems to be incredibly complicated to set the row height - something to do with adding RowStyles to the tablelayoutpanel without even referring to the row you're trying to change the height of. Does anyone have an understanding of how to do this?
Last reply by rbulph, -
-
- Administrators
- 4 replies
- 1.4k views
hai all i am developing a windows application, in this application i am creating log file(textfile), here i want to generate the report based on the log file i am able to read full data but i want to capture the line which contains specifik key word here i am unable get the line which contains the specific key word let me know how to do this thanks in advance
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.8k views
I have an application that reads data from an XML file, typically I simply use the "DataTable.ReadXML(sXML)" and then extract the information that I need, but not I need to do it based on a condition and I can't seem to figure out how I can implement it. For example - I have an XML (C:\file.xml) such as the following: <RootNode> <Stores> <Division Name="A"> <Info> <Segment Folder="FolderA1"/> <Segment Folder="FolderA2"/> <Segment Folder="FolderA3"/> </Info> </Division> <Division Name="B"> <Info> …
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 2 replies
- 957 views
I have two text boxes in which i am providing the date here i want to do date validation like start date should not more than end date this i wanted to do in windows application vb.net 2005
Last reply by PlausiblyDamp, -
-
- 1 reply
- 729 views
I'm tring to implement a recursive method to check the type of a control. Since i extend controls (like i have a NumericTextbox) i want to check if its base type if of type Textbox. I could do control.GetType().BaseType.Basetype (this would return TextBox) but if someday i change things this would mean i would have to mess with this code to. My problem is with the recursive method. It always returns false no mater what, even if it executes the code (means the type is a textbox). if (controlType == compareType) return true; I'm guessing the problem is with my stop algorithm but cant figure out what to change. Can any one lend a hand here please? …
Last reply by rfazendeiro, -
- 2 replies
- 1.7k views
Hello to all, I'm currently trying to add at runtime some rows to a Table Layout Panel. With the property RowCount i can add how many rows I need. So for a test i put in a textbox and a botton and when the user clicks the button it creates the number of row indicated in the textbox and add somes controls to them. My problem is the flickering that creating the rows in run time causes. How can i cause the flicking to desapear of at least lower it ? here is a basic example to create the rows private void fillData() { //Clear all the controls tlpWarranty.Controls.Clear(); tlpWarranty.RowStyles.Clear(); …
Last reply by rfazendeiro, -
-
- Leaders
- 2 replies
- 761 views
Hello, Colors are different in VB.NET and VB6. For example, the background of my form in my VB.NET program is "194, 217, 247" but I cannot use this format for my VB6 application. So how can I convert "194, 217, 247" to a format which VB6 accepts? Thanks.
Last reply by snarfblam, -
-
-
- Administrators
- 2 replies
- 945 views
I've a custom class in a form that requires multiple instances of this class to be created and stored for later use, my question is: Which is more efficient? A strongly-typed List(Of T) of the objects or an array of said objects?
Last reply by Nate Bross, -
-
-
- Administrators
- 1 reply
- 2k views
I have a small vb.net app that I used to pull data from a website. I want to be able to pull up window in another application (Remedy) and populate data in a given Remedy Ticket Window. Is there a way to access a specific control with thing the Remedy app, like for instance a combobox which provides choises for issue type, or issue description? I use FindWindow to point to the right window and this works but I'm not sure if it's possible to set focus to a particular control in that window and either set its value with a string or to choose a specific choice if its a combobox. Is this possible?
Last reply by PlausiblyDamp, -
-
- 0 replies
- 742 views
In my Mdi Form with more than one Mdi Child open: If the active, Maximized form is disabled during a lengthy call, it is sent to the back. If I then bring the form back to the front after the call (BringToFront), the child form's WindowState is no longer Maximized. Is this a bug, or is this by design? I would typically set a form's Enabled state to false while making any SQL call, then reset it to true afterwards. This technique looks and works nice; also, our employees have no problems using it. Now that I have moved the form into an Mdi Container, I get these issues. Should I simply not disable a form if it is an Mdi Child in an Mdi Container?
Last reply by joe_pool_is, -
- 8 replies
- 3.7k views
Im having an issue with child forms. Normally, when I want a specific form to stay focused, I use the ShowDialog method. But it won't let me use ShowDialog on childforms so I have to use the Show method instead. The problem is that the show method doesn't ensure that the child form stays focused. Is there a quick fix for this? Thanks in advance. -=Simcoder=-
Last reply by joe_pool_is, -
-
- Administrators
- 2 replies
- 972 views
DataGridViewX.CurrentRow.Cells.Item(0).Value.ToString If the item is blank and no data is entered it will throw a null exception, so the question is that how can I check if the item is null or not? Even using this: If DataGridViewX.CurrentRow.Cells.Item(0).Value.ToString IsNot Nothing Then ... Will thro the exception! Please help me.
Last reply by davearia, -
-
Who's Online 0 Members, 0 Anonymous, 49 Guests (See full list)
- There are no registered users currently online