VS 2008 Forcing Size?
Sep 22, 2010
so ive set the size to be locked so you cant drag it around. is it possible to place a button and when i press it the size goes from 300,200 to 500,300?if yes, how would the code be?
if no, would it be possible at all with any settings?
View 3 Replies
ADVERTISEMENT
Feb 14, 2011
I'm calling one program from another using the shell command. When I call the second program it loads a file and then displays the details on the screen. But when it runs nothing appears to happen and it is only when the file is loaded that anything is displayed. One of the first things that happens is a Resize, so I expect the dialog box to be displayed, I have added a refresh at the start but the dialog box is still not displayed untill the file is loaded. How can I make the program display the dialog box at the start to show something is happening?
View 6 Replies
Aug 11, 2009
How can I force a program that is executed though VB into windowed mode?
View 1 Replies
Jan 17, 2010
Here's the thing. I play EVE online, and I want to use my second monitor while having eve stay fullscreen on the primary.Currently, any time you click the second monitor, and EVE loses focus, EVE minimizes itself. Can I make a utility that forces the game to stay maximized at all times?
View 3 Replies
Jun 8, 2010
I have a form with a textbox on it. Validation occurs on the leave event. If validation fails, the focus is set into the textbox, making it impossible to click outside it unless there is a valid value entered. A valid value is anything from 15.00 to 99.99 inclusive, always with two decimal places.What code will return a boolean answer that checks if the input is valid?
View 3 Replies
Nov 20, 2009
Im trying to resize a picturebox dynamically using .size.height and .size.width Its not working. This is the error message: "Expression is a value and therefore cannot be the target of an assignment." Never used height and width before. Been trying to find the answer, but it seems beyond me. Im sure its easy. Anyone know whats wrong with this?
[Code]...
View 3 Replies
Jul 13, 2010
I have wondered the solution to this question for many years! I doubt if anyone else knows much about it because the internet is absolutely zero help in this!
I have made a form1 with a webbrowser control on it. When the program is run it brings up the homepage (which is Google). However the homepage doesn't seem to fit inside the webbrowser control.
So I am hoping that someone could tell me how to make the (...I dunno how to ask this retarded question...) webpage fit completely (100%) inside the size of the webbrowser control. Meaning...I would like to see the entire webpage from the internet in the
size of the webbrowser control. To fill the entire size (whatever size I want).
Etc... if my webbrowser ontrol is seh, set to 600px by 400px, how can I program this so when it brings up the homepage (or any other page), it fills the entire size of the webbrowser control? Without any scrollbars. How to make the contents from the web
(or local) fill the size of the webbrowser - almost like a mini browser if you will.
View 4 Replies
Mar 5, 2010
I developed a form application on my computer, but when it was used in another computer with different screen size, i was told the form didn't fit. Do I have to adjust the form size or any other ways to let the form compatible on different screen size? (could be different screen size or wide screen)
View 2 Replies
Aug 22, 2011
So that's how I want it:
If I re-size the form, the textbox inside should be re-sized to fit the form, NOT DOCK!
View 5 Replies
Sep 4, 2009
I use a program called Taskix that allows me to grab a button on a taskbar (for programs that are active) and drag it to reorder them. So the functionality exists somewhere, but most obviously through some sort of API.
What I want to do is allow my users to choose if they want a particular window in my program to sort itself to the beginning or end of the taskbar list. I know I want it because I would prefer this particular window to be in front of my opened windows whenever I make it visible.
where I might be able to access an API function that accomplishes this? Finding something like this on Google has proven to be fruitless; for me at least.
View 4 Replies
Oct 8, 2011
I understand that I need to run ... corflags.exe /32BIT myapp.exe against my VB .Net app if I want to make sure it's associated 32 bit dll's will be forced to run as 32 bit on 64bit computers.
If this will work this looks like a good idea to me since I don't have the opportunity to recompile them on a newer Visual Studio that supports targeting 32bit. But I have a couple of questions...
Question 1:Is there an easier way to get the corflags.exe program without having to download the whole .Net Frameword 2.0 SDK?
I guess this is what I need to download if there is no easy way to get the corflags.exe file...
Download 1:Microsoft .NET Framework Version 2.0 Redistributable Package (x86)
[Code]...
View 3 Replies
Jun 8, 2011
Now all went well about from using the structure correctly. The working of the structure was perfect. How ever i missed Two important issues. The structure needed a fixed size of 10 items (9 in programming terms starting from 0) And also out of the 5 items allowed to be chosen as one of the member types for the structure a limit of 5 items of that particular type.
[Code]...
View 9 Replies
Jun 22, 2010
I am creating a report in my asp.net application. The report outputs to excel using the excel interop. Some calculations in the report cause excel to display "Inf" or "NaN" I want to force these calculations to zero so that the report displays zero and NOT "Inf" or "NaN"
View 1 Replies
Jul 16, 2009
I have a date, myDate = 07/16/09 14:22I would like to arbitrarily force the time portion of it to a predetermined value like myDate = 07/16/09 18:00.
View 5 Replies
Oct 3, 2009
The only way I know to force a paint event in my pictureboxes is to do a 'Picturebox1.invalidate'. I read that this isn't the best way to do it though, so what's the best way to make my picture boxes repaint?
View 8 Replies
Jan 17, 2011
I am using VB.Net 2008 Express on Windows XP, and am trying to use WM_LBUTTONDOWN in one of my programmes.
CODE:
This appears to work correctly, in that it goes to the Exit button and I can see the effect of WM_LBUTTONDOWN and WM_LBUTTONUP, but the programme does not actually exit; it just sits there with the Exit button highlighted. I added all the TimeDelay() subs to see whether it needed the extra time.
I also made the following changes, and again, it goes to the Exit button and I know that it is on the button using Spy++, but the programme does not actually exit
CODE:
How do I force it to exit?
View 3 Replies
Jul 6, 2011
How can I, in VB.NET, force the focus to the desktop?
View 1 Replies
Jun 18, 2009
Is there a way to force a form to be active and shown?
From another form i am doing:
Me.Hide
Form2.Show
When this code is run, the Form2 is minimized.
I've also tried:
Me.WindowState = FormWindowState.Normal
in the load event, and it still loaded it in minimized mode.
View 1 Replies
Sep 11, 2011
I have a couple of split panels nested inside of each other. The problem is, I'm rendering an 8x8 tiled game inside of the center panel. Basically, the height and width of the panel need to be an odd multiples of 8 so I can find the center tile displayed easily.I need the width and height to be divisible by 8. The number 8 is multiplied by should be odd:EDIT AGAIN these numbers below do not refer to the size. They refer to two number being multiplied. I've changed them to a * to show this. These numbers below apply to both the height and width. One number should be odd, the other 8. 8*x
5*8 - Good
6*8 - Bad
View 2 Replies
Feb 4, 2009
I have console application embedded in a Panel on my Form. The problem is that the Vertical scrollbar of this application always stays at the top, and I would prefer that I was always able to see the caret (prompt) so I can see the latest info.
How do you force a Window to display the caret?
Do solutions give the option of the caret being at the top of the window or the bottom? I would prefer that the carat is at the bottom so I can see all the info immediately prior to the caret, as in this screenshot.
View 6 Replies
Mar 14, 2011
way to have a launcher/updater app for a program I'm working on. It'll have people register, and not let them run the main program without registering. So, say, I have launcher.exe, and main.exe, and I open main.exe. I need it to exit and open launcher. I was going to use sockets to do a simple ping/pong type deal, but sockets are breaking my face in vb.net since I've only used them in vb6.
View 2 Replies
Oct 7, 2009
My pictureboxes sometimes clear of all drawings when they are done creating the image, or sometimes halfway through. Calling GC.Collect() before the drawing starts lets it draw MORE before it clears, but how can I stop it from clearing entirely?
View 2 Replies
Jul 12, 2010
with the following code it is possible to place some images in the clipboard
Dim Sc As New StringCollection
For Each itm In FileNames
Sc.Add(itm)
[code]....
is it possible to force the clipboard to change name when these images are pasted by the user?
View 9 Replies
Mar 18, 2011
I have a form with a datarepeater that contains various controls (i.e. datetimepickers, text boxes, combo box) that are populated via a binding source. I also have other controls on the form that are not part of the data repeater.
I would like to force validating all controls after the data is populated. I have successfully forced validating the non-datarepeater controls using Me.ValidateChildren() at the end of my load event. However, it does not fire the validating events for the controls within the data repeater.
I have unsuccessfully tried many different attempts to set and move focus within the datarepeater controls trying to get the validating events kicked off. I am not sure where would be the best place (e.g. in drawItem? in ItemCloned?) to place the code and what it should be exactly. Here was my latest attempt:
Private Sub DataRepeater1_DrawItem(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.PowerPacks.DataRepeaterItemEventArgs) _
Handles DataRepeater1.DrawItem
[Code]....
Note: I successfully handled the validating events in the data repeater caused by user input errors. However, I have the unusual situation that the data coming into my form is already bad for some of the controls. The purpose of the form is to validate the data coming in to it and from user-input.
View 3 Replies
Feb 23, 2010
I am having a problem editing VB.NET .aspx pages in Visual Studio 2008. If I edit a line that is flush against the left margin, Studio automatically indents it 4 spaces, and there is no way to undo it! I am forced to save the file with that 1 line I edited indented differently than all the other lines!
Edit: How do I turn this off?
View 1 Replies
Oct 24, 2009
On my emailer program ive created a messagebox to appear if any of the textboxes are empty when i clcik send, its works fine (first time) but if i leave a textbox empty for the second time and click send i get an error.[code]
View 20 Replies
Feb 10, 2010
I used to write code at a previous job in lots of languages, VB just one of them. At my new job I am tasked with writing code again. I have picked up VB 2010 express to get started and will move forward from there. The problem that I am facing is that 2010 uses the .net 4.0 framework. This is too new for the add-ins to support.
It follows, my question: Is there a way that VB .net 2010 can be forced to use a specific .net framework? Can I tell it to use the .net 2.0 for instance?
View 7 Replies
Jul 30, 2010
I have a production application that I always want to force focus on. Sometimes the users will accidentally click off the form and the blue focused window will turn gray. I have a timer that fires every 30 seconds and I want to programatically give focus back to the form so that it goes from gray back to blue with focus. I've tried using the .focus event and the .activecontrol property but none of those seem to work and I'm not seeing any other viable options. I'm using Visual Studio 2008 in VB.Net.
View 2 Replies
Aug 22, 2009
I have a series of text fields on a simple form (inside a group box) I would like to enforce all the text be upper case upon submission to the database. I know I can use the Ucase command. The question is implementation. How can I very efficiently force all the field values to upper case vs. say doing Ucase(TextBox1), Ucase(TextBox2).... ( I have 12 fields in this case) Is there a way to treat the text boxes as a collection and do it in one shot? Just trying to be very efficient and create clean, tight code even on such a simple thing.
View 2 Replies
Dec 14, 2009
The following is a generated PDF with a few images. How do I force the image to take up the entire width of the pdf file?
View 1 Replies