|
Hello friends,
I am developing a mdi application.
I have a form that takes input from user, and based on user selection , open a form as mdi child. i want the UserSelectionForm to stay on the top of all the other forms including MDI parent and any other mdi child forms until user has made any selection or cancelled the form.
any help?
:- Rashid Ali -:
modified on Tuesday, February 26, 2008 6:11 PM
|
|
|
|
|
I'm not sure I follow which forms are popups and which are embedded in the MDI app. But, to keep a child form open, set it's parent/owner to be the form you want it to always be above, usually the main form of the app.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
When you go to show the form use:
form.ShowDialog();
instead of:
form.Show();
ShowDialog tells .net to open the form as a modal dialog instead of a standard form.
here is the Solution i got from some other forum
:- Rashid Ali -:
|
|
|
|
|
Oh - I didn't tell you that, because you didn't post code, so I couldn't understand that this was the problem. Glad you got it sorted.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
this may seem elementry ......I have two update pannels and i can't seem to position them side by side. Is there any way that the positioning can be made absolute????
many thanks in advance
|
|
|
|
|
If you're using VB.NET you can use Anchor property to set their place.
For one use Top,Left and for second Top,Right
As far as I understand what you're trying to do, it will solve your problem.
|
|
|
|
|
How do i actually set the anchor property??I have had a look on google but no help.
many thanks
|
|
|
|
|
I got an print screen on the following link. Basically you select an object on form (In form Designer View you can do that) and then look into properties window, You should be able to find anchor.
here's the link
www.ppatel.co.uk/anchor.jpg
|
|
|
|
|
I have a DataGridView that has worked great for months and now there is something causing a RowError event. All it says is Value is not valid for the DataGridViewComboBoxCell and I have done work to alleviate one part of the issue which had something to do with the AllCells auto sizing option. The other issue is that instead of showing the value when it is truly in the list it is raising that event and everything is blank.
It is raising the error during the initial row adding logic after binding the data grid and it seems to get itself caught in some kind of DataError loop.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
modified on Tuesday, February 26, 2008 3:16 PM
|
|
|
|
|
Are you sure the data being bound to the grid is correct? I had this happen once and realized later I was passing null values because of a change in the SQL that brought my data back from the database. If it worked before and doesn't now, I'd guess it HAS to be the data that is the trouble. If you are sure that is not the case, perhaps more information could spark something for us, like how is your combobox column set up? Do you set the DataSource, DataPropertyName, DisplayMember, and ValueMember properties in code or at design time? And in what order?
Hope this helps.
|
|
|
|
|
For this grid I add all items to the combobox with no filtering when I first open up the form like this.
For Each sizeRow As DataRow In _SizesToFilter.Rows
CType(uxDataGrid.Columns("uxSizeGrid"), DataGridViewComboBoxColumn).Items.Add(sizeRow("Size").ToString)
Next
Then when I filter I do the following.
If filterCell.Value IsNot Nothing Then
_SizesToFilter= _DataAccess.GetSizesFiltered(filterCell.Value.ToString)
sizeCell.DisplayMember = "Size"
sizeCell.DataSource = _SizesToFilter
Dim sizeRows As DataRow() = _SizesToFilter.Select("Size = '" & filterCell.Value.ToString.Trim & "'")
If sizeRows.Length > 0 Then
sizeCell.Value = sizeRows(0)("Size")
Else
If _SizesToFilter.Rows.Count = 2 Then
sizeCell.Value = _SizesToFilter.Rows(1)("Size").ToString
Else
sizeCell.Value = ""
End If
End If
End If
All of this is working and I checked the database, there are no NULL values and I havent changed the select statements in quite a while. The part that is breaking is after all of the values are added. It seems that the value is technically selected but the combobox does not show anything, it shows my blank option.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Could it be a DataType error? If I'm reading your code correctly, you are adding all sizes into the box as strings, but when you set them:
sizeCell.Value = sizeRows(0)("Size")
are you sure the sizeRows(0)("Size") is a string? Would adding a .ToString and maybe some trim (and ToUpper if these actually contain alpha characters) fix the issue?
I'm guessing you checked this, but just in case you didn't, have you checked that your filter is returning one or two records all the time? You are setting the value to "" if the filtered rows come back with a count of 3 or more...
Other than that, nothing obvious jumps out at me. Sorry. Hopefully someone else can see something I missed.
|
|
|
|
|
The Data Types match but the issue seems to be happening during the initial value set during the data binding process before it ever gets to my code. It seems to be random and doesnt occur with all sets of data so this is very strange.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Why does visual basic not display the namespace at the top of each code file like C# files do?
I am trying to make a namespace span multiple assemblies in VB, but since the namespaces are not visible i cannot simply go in and change them. The only way I have found to do this is to make the root namespace the same for each assembly (from the project properties window), and then make any sub namespaces from there.
Is there an option to see the namespace in a VB code file, or else a different way to share a namespace among assemblies without making all of their root namespaces the same?
Thanks,
Aaron
|
|
|
|
|
Above the class declaration you can simply type Namespace WhateverTheNameShouldBe and then after End Class place End Namespace . You might want to remove the root namespace if you do this unless you want something to show up as WhateverTheNameShouldBe.WhateverTheNameShouldBe.ClassName OR keep the root namespace and only add the different named namespaces if you require further organization.
CleaKO
"Now, a man would have opened both gates, driven through and not bothered to close either gate." - Marc Clifton (The Lounge)
|
|
|
|
|
Thanks for the help, Cleako! You are very wise and kind. One problem, though:
I am using tableAdapters and other microsoft generated objects that will not allow me to edit their code-behind files. Or, if I do, the changes will be overwritten after a change in the designer. Is there any way to "override" the root namespace property when writing an individual class, or else is there a way to place all of my tableAdapters in a "sub namespace" without editing their code, say by placing them in a namespace folder or something?
Thanks,
Aaron
|
|
|
|
|
A co-worker of mine is working on a crystal report for our project. The report has text objects with set text that doesn't change and is not variable. The design uses mixed case text, however when the report is previewed or the VB.Net project that displays the report is run and the report is displayed in a Crystal Reports Viewer control, some of these text objects are displaying text in lower case. Is there a setting or property that can effect the case of text within a text object and where can I find this setting/property? We have looked all over and cannot find the source of this. Has anyone experienced something similar or have any ideas I could try to fix this?
|
|
|
|
|
I am doing research on Randomize Function of VB, and I'm generating random numbers. 10 in every 1 seconds and I'm running the program for 3-4 hours.(in short I'm gonna have more than billion numbers)
1) Now I want to create BAR chart using that data. How do I do that using VB.NET?
2) Is there anyway to Create Dynamic Line Graph?
Thanks in advance.
|
|
|
|
|
killerp wrote: 1) Now I want to create BAR chart using that data. How do I do that using VB.NET?
Use a third party library to draw the charts, like "ZedGraph". Just Google for it, and no, you don't need to use C# to use it.
killerp wrote: 2) Is there anyway to Create Dynamic Line Graph?
Google for "StripGraph .net" and you'll find some controls to do that too.
|
|
|
|
|
Most frustrating. The format of the website cannot be changed:
I have 5 web pages each with a form. These page forms have content the user can edit & redit.On the top of each page is a menu bar affording the user to toggle back and forth to any of the 5 pages viewing the respective content. Now say the user toggles to page 2, makes changes to the content, via a RadEditor, toggles to page 5, then retoggles to page 2 to see the changes he just made.
Here's the delema: During these edits/redits, the revised content CANNOT be posted as an update to the database. Only AFTER the user is satisfied with all the edits made, does he click button 6 for "Update All My Changes".
I cannot have one page with all the form elements listed via visible/not visible panels. I cannot use session objects, or cookies - there is just too much data. I heard about the cache object / application object but I do not know if it plays a part here. Also note there could be thousands of concurrent users taking this initially identical data content then editing it to each's own unique wants.
So in short, how can I have several editable web pages of form elements that allow the user to see the changes they made, even after clicking off and then back to that form without using a database update or items mentioned above. Remember, They will not let me hit the database until aff the edits on the 5 web page forms are complete. Thanks.
Update:
I have reevaluated the entire process.
I've decided to utilize the file stream object and have them edit their entire page.
Now, I have to figure out how to reiterate thru these modified forms to place the data into the db.
modified on Tuesday, February 26, 2008 4:38 PM
|
|
|
|
|
The only other option I can see, is using cross page postbacks to simulate having all the pages as controls on one page. In other words, writing a ton of code, which will be more error prone, to simulate doing what I've been telling you to do for days. Why can't you put it all on one page ? It seems to me like you're screwed, because you're looking for a magic solution, and rejecting every viable solution you've been offered.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have reevaluated the entire process.
I've decided to utilize the file stream object and have them edit their entire page.
Now, I have to figure out how to reiterate thru these modified forms to place the data into the db.
|
|
|
|
|
I need help find good resource material for programming in vb.net on the .net compact framework. I have project to create an inventory application on a pocket pc device. They use Microsoft Access to save their data. So far, I have found no information that shows if and how this can be done. The articles I have found on CP don't go into data access. May I haven't searched long enough.
Is it possible to access data from this device to Microsoft Access? Does anyone know I can get some step by step instructions?
Thank you
|
|
|
|
|
Hello,
The link below describes how to use Pocket Access:
http://msdn2.microsoft.com/en-us/library/ms837914.aspx
Regards,
Dave
Dave Traister
Software Engineer
ComponentOne LLC
www.ComponentOne.com
|
|
|
|
|
Hi forum members ,
I want to write a VB code that read .pst(outlook) file
can any help me in that ?
should I convert the file in other extension first, or I can read it directly?
Regards,
mesho
|
|
|
|