Restore Scrolling Position After A MSFlexGrid Reload?
May 12, 2012
I have a fixed-size pane for displaying MSFlexGrid rows, and, when the number of rows exceeds the pane capacity, a vertical scroll bar is displayed. If the user scolls downward, and selects a lower row for action, I want the display to be restored (approximately) after the grid is reloaded.row selection is maintained explicitly by code: If the action is a change in row data, the successor row will be selected (by code); if the action is row deletion, the preceeding row will be selected (by code). Since the grid must be reloaded following the change, MSFlexGrid will present the first n rows by default. (The grid must be reloaded because the actions may have affected the presentation order.)How can I force a scrolling repositioning after a grid reload? In my imagination I see a sequence somewhat like make-non-visible, reload-grid, set-scroll-position, make-visible, set-new-row-selection. Is something like this easily done?
View 3 Replies
ADVERTISEMENT
Jan 20, 2010
on my form I got two datagridviews.When I scroll one of them to left/right the other grid should get the same scrolling position.I found "Verticals crollingoffset" but this is readonly.How do I set vertical scrolling position from one grid to the other? One has scrollbars visible, the other not (it is used as a filter with one empty row)
View 1 Replies
Jun 17, 2010
[url]..I'm trying to use the Restore.Abort function during an SMO restore process - What would be the best method?
[code]...
View 4 Replies
Aug 5, 2011
After scouring the articles online I have come up with this design for a winforms based touchscreen app that needs smartphone like scrolling. The app itself will run on a tablet laptop or touchscreen desktop.I put everything I want to scroll on a panel. Set autoscroll to true (which will show scrollbars)Now put this whole panel inside a groupbox.Shrink the groupbox until the scrollbars are hidden (visually hidden, not visible = false)
Now the fun part I am stuck at.I think I have to handle the mousedown, mouseup & mousemove on the panel to set the autoscrollposition so that when someone touches the panel and drags, it does it's scroll magic. Please help fill in the few lines of code in below method stubs. The msdn doc on autoscrollposition is very confusing since it returns negative numbers but needs to be set to positive with abs and what not.
Point mouseDownPoint;
Point mouseUpPoint;
Point mouseDragPoint;[code]......
View 1 Replies
Aug 19, 2009
I currently have a label scrolling text, But for some reason it only displays Certain song titles/text. Does Anyone know why?!
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
OpenFileDialog1.ShowDialog()
AxWindowsMediaPlayer1.URL = OpenFileDialog1.FileName
[code]....
View 1 Replies
Feb 6, 2010
Ihave been looking for two days, and have not been able to place an msflexgrid or an mshflexgrid on my program. Any ideas what I must be missing? I am using vb in vs 2008 pro. Just building a simple windows form application
View 2 Replies
Dec 21, 2011
I just used MsFlex grid In my vb.net project. Its working in XP, but shot showing error in windows 7. error message like dll not found. But msflexgrid dll file included correctly.Still the same problem.
View 1 Replies
Mar 17, 2010
im currently developing a system. it's a tracking system and an alpha list..now currently im using datagrid to view thousands of records in foxpro free table in my vb form, how to export the datagrid into an excel for reporting but there is none..
View 8 Replies
Mar 3, 2012
i have a textbox,flexgrid and a button. this is my problem. when i input data in the textbox, the data will be added to the flexgrid using textmatrix. and if i click the command button. the data on the flexgrid will be registered to the sql table.however, if there's two or more data (different data) on the flexgrid. the data will be registered to the mysql but the data is same with each other.
the input is :
1st row: (3500)
2nd row: (2000)
3rd row: (1000)
but the output (in the sql table) is this.
1st row: (3500)
2nd row: (3500)
3rd row: (3500)
this is my code in the command button.conn.Execute "INSERT INTO tbl_purchaseDetails(Quantity) VALUES('" & gridpr.TextMatrix(gridpr.RowSel, 0) & "')"..BTW i am using navicat to connect my sql.
View 1 Replies
Jul 22, 2011
I want to upgrade MSFlexGrid to .net datagridview,what is equivalent code for these code? With gridview
If .Row > .FixedRows Then
bDoNotEdit = True
.Row = .Row - 1[code]....
View 2 Replies
May 21, 2010
In my application (VB2008),I am using MS flex grid and it was workingfine on 32bit mode. When I tried to compile the same code base in 64 bit ,it crashes the application.
View 2 Replies
Mar 17, 2009
I am porting a vb6 application to VB.net. One of the key forms has a large msflexgrid on it - about a 1000 columns and 50 rows. It has 2 header rows - the first header row has merged cells to form a main header and the second row has sub headings. There is no requirement for any data entry and it's unbound. The code does the work in deciding what to display (if anything) in each cell. It is solely used to display data in the form of a character and a coloured background and to display a tooltip text with more information when you mouse over it. Works beautifully in vb6. I'm trying to decide whether to:
a) use the vb6 msflexgrid in the .net version
b) use the datagridview - which at a first glance seems to have a problem merging the cells on the header row
c) build my own custom control to do the job
View 2 Replies
Jan 28, 2010
I have a VB project that is converted from VB6 to VB.NET.In this, I have a MSFlexGrid that is used as an interop compatibiliy. That means it is somewhat converted to .NET, but internally, many of the mechanisms are still from VB6/COM.I need to drag an image from a PictureBox (which is .NET) and drop it on the flexgrid.
This is what I do to initialize the drag:
Private Sub picStartSymbol_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles picStartSymbol.MouseDown
picStartSymbol.DoDragDrop(picStartSymbol.Image, DragDropEffects.Copy)
End Sub
[Code]...
View 1 Replies
Mar 2, 2010
I am using the following code and I am able to create a new WORD Document and create a Table inside it and insert data into it sucessfully from a MSFLEXGRID (just like a datagrid) on my form. I would appreciate if anyone could tell me how to achieve the same but by inserting the data into a specific document saved as ("c:123.doc") with a table already created inside it.
I just don't want to create a new word file everytime and then create a table and then do the insert.I want to keep my 123.doc with a formatted table inside it and all i need is to insert data from the Grid into it.
Dim oWord As Object
Dim oDoc As Object
Dim oTable As Object
Dim oSelection As Object
[code]....
View 2 Replies
Jul 29, 2002
When trying to edit an exisiting or trying to create a new dialog with a MSFlexGrid I get the following error
The ActiveX control "Microsoft FlexGrid Control, version 6.0" could not be instantiated because it requires a design-time license.
Any one know how to get a "design-time license" for the MSFlexGrid control.
View 5 Replies
Mar 10, 2012
I'm at the Studio 2008 stage in migrating from VB6 to Studio 2010. My application appears to run OK for the most part, but my MSFlexGrid display's single column is just 8 or 10 characters wide -- it should span the entire grid display (i.e., have the same width as the grid).The Studio 2008-Upgraded code sets several grid properties correctly, but the statement ".ColWidth(0) = .Width" (in the scope of a With block) causes an error. So does the statement ".TextMatrix(0, 0) = string".
Not only are these properties not included in the upgraded control (now identified as AxMSFlexGrid), but some column-related properties are greyed out in the properties list. My grid size was set originally by cursor drag, and the present .Size sub-properties of .Width and .Height are set to the numbers 593 and 329, respectively. (My form has a fixed size and is user-moveable but not user resizable.)
View 6 Replies
Aug 24, 2009
I have looking for a tutorial or class that demonstrates more than a trivial example of saving a windows position on closing. The ones I have found don't seem to work on all systems because of:
1. Multiple monitors. (and resolution between those monitors)
2. Toolbar size and position (toolbar is only on the primary monitor, well sometimes)
3. Sometimes the programs dont open on the right monitor they were closed on.
Is there an extensive class or tutorial on all the stuff a programmer needs to get right to have a window size and position persisted between executions?
View 1 Replies
Dec 5, 2010
I am using the following code to populate data in Textbox1:
[Code]...
I have few functions assigned in TextBox1_TextChanged event. The problem i am facing is this event is fired twice, once after the Fill command and another after the Position command whereas i want the event to fire only once after the Position command. What should i do?
View 6 Replies
Mar 9, 2010
I also have a function that returns ALL tiles on the map and they're X, Y position. How could I find out which one is closest to the position I specify? I can't figure out how to go about it. how to implement it with this. Heres a MADE UP example if what I'm trying to do:
Dim MyPosition as New Position()
MyPosition.X = 400
MyPosition.Y = 400
Dim tList as New List(Of Tile) = MyMap.GetTiles
Now, I can already do the stuff above, but what I need to make is something like this:
tList.GetTileClosestToPosition(MyPosition)
View 2 Replies
Dec 23, 2011
I need to call again my gameplay form after finishing 1 stage. I'm just doing the normal calling. Me.Close() then Object.Show(). (Object is the object of gameplay form). The problem is, there is a continous loop of the form its flashing. It's like it's showing then closing again ang again non stop. What should I do? Or is there another way of calling again my gameplay form?
View 1 Replies
Mar 3, 2009
In my SW there is a main form, inside this form there is a several controls (user controls), in any given time only one control is visible to the user, all others controls are: visible = false.
My question is how I execute several code lines when the control is shown again?
the only method I know is on the load event, but since the control is allready loaded I cant do that
View 1 Replies
May 22, 2009
I have a gridview that is only shown in a modal popup. right before I call the modal popup I set a value in a textbox. The gridview inside the modal popup depends on that textbox's value for it's data to show up at all. SO onclick I want to reload the gridview so that it will reload with the textbox's value.
View 2 Replies
Mar 17, 2011
In my ASP.NET page I have a thread that runs for a while (sometimes up to 2 mins). How could I reload/ redirect the page after the thread is done? I know I can't use Response.Redirect() because the page is already done loading.
View 1 Replies
Nov 2, 2011
I have a setting labeled "Names" and in the program I can create a new "Names" value, which works fine. But, I want to be able to automatically save to this new "Names" and retrieve information from the value without having to close the program and reopen it in order to have the new setting saved. Is there a way to do this? I tried using the Me.Refresh() command, but it didn't do the trick.
View 2 Replies
Jun 15, 2011
I have a application that requires access to a tablet, the tablet in order for it transfer data accurately needs to be calibrated from time to time. Users have expressed intrest that once calibration has been done and has been validated to be correct that
those new settings be ready for use in the main application. However, the only way I have been able to do this is to physically re-start the application. I have not had any luck with My.Settings.reload(). The settings I can confirm have changed but the application after saving them and calling the reload do not reload them. Am I doing something wrong? Does reload only work under certain conditions?
View 4 Replies
Sep 28, 2011
I have a session variable that changes some things about how a page looks. I have a button that changes the value of this session variable. But ... the onClick event happens after page load, so by the time I update the session variable based on the button click, it's too late, the page has already been loaded.
Theoretically I could put all the logic about changing the display into a function and call it from page load, and then call it again from the onclick after the variable as been updated. But this is impractical: there are many user controls that check the value, used on many different pages in different combinations. I would have to hard-code the list of user controls on each page, and if someone added a new user control to a particular page, they'd have to remember to update this function, which is lame.
Is there a way to force a page reload? (I can use response.redirect back to myself and it works. If all else fails I guess this is what I'll do. But it means an extra round trip to the server, which is clumsy.)
Is there a way to process the onclick before the page load?
View 4 Replies
Aug 15, 2010
I have a simple WPF vb.net application and wish to set the visibility property of some buttons on the main window to True when user successfully logs on
I have a MainWindow window with a frame hosting any number of pages and use the navigation service to load into this frame eg. Me.BodyFrame.Navigate(New System.Uri("Logon.xaml", UriKind.Relative)) One Page (logon) enables user to logon.
vb.net code:
Dim txtLocalLogonID = txtLogonID.Text
Dim pwdLocalPassword = pwdPassword.Password
Dim LocalLogon As New gblLogon()
[Code]....
How do I reload the main window? I realise the code is primitive but I just want to get it working first.
View 1 Replies
Sep 12, 2009
I have 3 forms.....when i make changes in the form 2 ...i want to reload the form 1 so that it reflects the changes in the database..
View 1 Replies
Mar 11, 2010
How can i reload/refresh the same form again without losing the data stored along with the form?
View 3 Replies
Dec 19, 2011
I am implementing a mechanism to detect a corrupt user.config file in vb at application startup.
I do this at the start of the application before initializing anything.
If an exception is thrown while trying to access it, I replace the file with a backup last known good copy.
After replacing the bad file and physically checking that we have a good file I run the code :[code...]
View 1 Replies