Way To Freeze A Column
Dec 14, 2009Using DataGridView with VB.Net 2008.I would like to freeze the left column so that when/if scrolled this column still remains in place.
View 1 RepliesUsing DataGridView with VB.Net 2008.I would like to freeze the left column so that when/if scrolled this column still remains in place.
View 1 RepliesI'm using loop to read data from sql and then make some calculations then save it again to another table but when application loop for 3 or 4 times it's freeze but the job is done but if loop = 10 or more then it is freeze and hangup for long time .i need to learn how to make my application working better and never freeze and make application working with any count for loop without freeze .
View 7 RepliesI have a dgv, I populate it, and I insert a row at the pos 0. And I want to freeze this row even when the user sorts the dgv.
How can I make this? The frozen property alone seems to be not enough.
Currently I have to retrieve over 2000 records from DB and bind with combobox. and then follow with another 3 retrieving (less than 20 records)
My problem is when I call this function, my GUI became freeze.
I try to use Application.DoEvents() method but it still didn't work.I read some post and pages, they mention about BackGroundWorker and .Net 2.0. But what i use it MS 2003 with 1.1 so i think i can't access BackGroundWorker.
I am attempting to freeze the top pane of an excel spreadsheet, which I have opened via my application. The most used method from various internet sources is: [code]
View 2 Repliesok i have this code for a banner changer i wrote for an app but i have an issue the code works it gets the banner url from the mysql database useing this code[CODE]......
so im at at loss how do i get it to work so the GUI is still useable while it gets the banner ?
I use these codes to download/upload to my FTP host , they work perfectly but since i have to handles few download/upload , sometimes the application freeze during download
'Upload :
Try
' set up request...
Dim clsRequest As System.Net.FtpWebRequest = _
[Code].....
Is it possible to freeze a remote computer? thru the ip address.
freeze computer meaning temporarily disable the mouse and keyboard of that remote computer
My following code hangs my VB IDE. What could be the reason. I am of the opinion that by 'sleep' I am avoiding a tight loop and so the program should not freeze. What should I do?
[Code]....
I'm experiencing an error which complexity and way to approach I can't quite understand.. It looks like two threads not able to work simultaneously.The first thread is the normal program thread, and the problem occurs when the user clicks a button. This sends some messages through a method (PlaceOrder) of an API library object. This method is called 2-3 times in a loop. Handlers have also been added (on program startup) to receive callbacks on events raised by that object, and this is the 2nd thread that contributes to the error.
The error seems to occur when the PlaceOrder method is called while receiving an event from this same object.The result is that the UI freezes. I can trace the error in two places. If I trace the first thread (which is the initial program thread); the freeze occurs when reaching the lock(this) line, in the API-object class. If I trace the callback event, the handlers of this event try to invoke a RichTextBox on the form, and the freeze occurs on the line <RichTextBox>.Invoke(....), as indicated below.
The thing is that when pushing the button, there is a loop which calls the method of the API-object 2-3 times. And the first time succeeds, but the 2nd time it seems to crash in some way with the callback. It would be nice if I had made some silly mistake with the invoke code, but I don't think I have, as it updates fine prior to the error.. I'm not sure, but it may be relevant that it's in fact the same object, so early in my program I add this event listener (which is the one that updates the RichTextBox):
AddHandler ibclient.Error, New EventHandler(Of ErrorEventArgs)(AddressOf client_Error)
..while later, related to the freeze, I have:
ibClient.PlaceOrder(....)
But I'm handling a lot of calls forth and back other than these, and haven't experienced any problem before.it doesn't give any exception or error message, it just freezes.The invoke stuff in the form code, which should be as per trusted examples: (Freeze occurs at blue highlight)
Private Delegate Sub SetRichTextBoxInvoker(ByVal message As String)
Private Sub OnLogUpdate(ByVal message As String)
If Me.rtbTwsMessages.InvokeRequired Then[code]........
First off I'm using aspx pages with Visual Basic .net 2008 for the code behind.
I'm using a FileUpload control on an aspx web page to upload files to the server.
When I click on the Browse button I get a dialog box to select the file. I select the file and click the Open button and the entire file path populates the textbox portion of the control, just as it should.
However, when I use the same process to select a second file, after clicking the Open button it takes over 2 minutes for it to populate the textbox portion.
I have a RichTextBox (txtCustomDict) ... and i am invoking it like so from another thread:
[Code]...
EDIT: Just checked and it does the same thing if i split it into 2 differently named subs then invoke the other sub
I have an app with which I populate a DataGridView named data. I have implemented threading in this app. Now both in debug mode (run through VS 2008 Express Edition), and without threading implemented the app works smoothly as it should. With threading and as a standalone .exe however, it freezes up. Not just anywhere, but as soon as 6 items are filled in the DataGridView (the top of the last one is only slightly visible). I have synclocked everything relating to the DGV, and am completely stumped.
View 7 RepliesI just put a button and a textbox on a form to try and learn to multi thread, i think i've done it correctly. but it still appears to freeze for a little bit just before it attempts to display the data. i think it's the invoking. Is it normal / have a done something wrong?
[Code]...
I am new to LINQ to SQL and I try to Edit and Add a New item on a Windows Form in VB.Net, the form freezes? By example, when I try to select a value from a combobox the prompt get stuck (it enters in Enter event) and it cannot exit, then the form froze.
View 3 RepliesI have problem with multiple webbrowsers on form so i created simple form with 10 browsers in it and 1 button: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
When I click button and try to drag form1 everything is none or slow responding.I see web site loading in browsers but nothing is responding on screen until loading of pages is finished. In the meantime my processor it goes to 90-100%I tested exe on my laptop and is working same.
I'm trying to make the classic Snake game in VB.NET, but if I hold a key (any key) during the game, after a few seconds the game freezes until I release the key. I've tried lots to fix this, but nothing works, maybe because I don't understand the problem.I'm assuming that when I hold down a key, the Form1_KeyDown function gets called, and when, after a few seconds, the key goes into "I'm being held down" mode, that function is constantly called, so the timers don't get a chance to update. But like I said, I'm probably wrong.
I've been struggling with this for a while. I think this is all the necessary code, please let me know if it isn't.
[Code]...
Problem: Need to get a picturebox to display four images, one after each other. But in a way in which during runtime the changes can be seen.
So I figured if after every image is changed for example if I had some sort of timer, then during runtime the image will be shown, then after a certain period the next one would be shown and etc. I tried doing this using a timer and then a stopwatch but both time's no change can be seen in runtime and there is a small wait before the last image comes up.
I then also, tried using sleep, but that also showed no changes. Underneath is a quick piece of coding of what I'm trying to achieve, but instead of textboxs, for the sake of what I'm trying to do I will be using pictureboxs.
CODE:
Question: I've tried all I know in regards to timers and so on with no luck.
I'm just trying to open a ColorDialog so that the user can select a color. But if I just use the following simple code with Button, ComboBox or anything, the application will completely freezes itself.
Dim cd As New ColorDialog()
If cd.ShowDialog() = DialogResult.OK Then
PictureBox1.BackColor = cd.Color
[Code].....
I have an application developed with Vb.Net 2003 and using Crystal report 11 used to preview many statistical reports.
I always preview any report successfully, but when exporting some of the reports (not all) into pdf using the built-in export functionality in the report viewer control, the application freezes forever.
So, I need to know if there is any report object (textobject, Picture, Chart, line, box, etc..) that might not be able to be exported into pdf, and I think this type of object is only found in some of my reports and that`s why I face this problem only with some of the reports and not all of them.
I have an application developed with Vb.Net 2005 and Crystal report XI used to preview many statistical reports.
I always preview any report successfully, but when exporting any report that contains a Chart into pdf using the built-in export functionality in the report viewer control, the application freezes forever.
While when exporting any report that does not contain any chart into pdf, it exported successfully and with no errors.
My teacher in computer programming told me that in order to make a next and back button i must do the following:
button1_click
dim pic as string = 1
if pic = 1 then
picbox1.image = my.resources.blahblahblah
[code]....
this does not work and i'm trying to freeze the value by using checkbox1.checked = true
In my datagridview table, i have two status, which is "paid" and "parked". I want to display both but i want to freeze the state or disable rows if the status is paid.However, as i was doing that i found out that the property for state is read only. Have you encountered such? Is there another way to do this?
[Code]...
I have problem with multiple webbrowsers on form so i created simple form with 10 browsers in it and 1 button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Navigate("http://social.msdn.microsoft.com/Forums/en-US/vbgeneral
[Code]....
When I click button and try to drag form1 everything is none or slow responding.
I see web site loading in browsers but nothing is responding on screen until loading of pages is finished. In the meantime my processor it goes to 90-100%
I tested exe on my laptop and is working same.
I'm getting some unexpected behavior with panel scrollbars, and was wondering if it is a bug, or simply something that I'm failing to do correctly. Basically, I have a panel with Autoscroll enabled. Then I put some other items inside the panel, and then make the panel smaller, so that the panel's scrollbars appear.
Outside of the panel I have 2 buttons, named "scrollOn" and "scrollOff", which turn the panel's scrollbar's on and off using the "Autoscroll" property (for example the "scrollOff" code I'm using is Panel1.AutoScroll = False ). So after I run the program, I move the panel's scrollbar down a little bit with the mouse (this part is necessary to reproduce the bug). I then click the "scrollOff" button (which should make the scrollbars disappear). But when I do that, the scrollbars are not only still visible, but they "freeze up" (can't move them with the mouse anymore).
I want to ping a port to see if its online the problem is that if its offline it freezes my app for about 20sec![code]....
View 2 RepliesI'm trying to make the classic Snake game in VB.NET, but if I hold a key (any key) during the game, after a few seconds the game freezes until I release the key. I've tried lots to fix this, but nothing works, maybe because I don't understand the problem.'m assuming that when I hold down a key, the Form1_KeyDown function gets called, and when, after a few seconds, the key goes into "I'm being held down" mode, that function is constantly called, so the timers don't get a chance to update.
View 10 RepliesWe are trying to implement Source Control with Visual SVN, Tourtoise, and Ankh. All works well once a project is placed in the repository. But, when you try to open a project stored on your local client, that is not stored in the repository, Visual Studio freezes up. (VS2008)
View 1 RepliesWe are trying to implement Source Control with Visual SVN, Tourtoise, and Ankh. All works well once a project is placed in the repository. But, when you try to open a project stored on your local client, that is not stored in the repository, Visual Studio freeze
View 7 RepliesI'm making a small version of Spy++ and i would like to recreate the function that finds windows by dragging your mouse over it. Now that is pretty easy but one little annoyance is some windows minimize or loose focus ect when you bring the mouse pointer over them.
I would like to know if you can stop a program from gaining focus or minimizing. And i know i can get the handles of open windows by the EnumWindows function?