Answer Questions
Symon Buck Preview Form2 on Form1
I have 2 forms, Form1 & Form2. On Form1 I'd like to have a small scale preview window of Form2 when I run it. Form2 will be running fullscreen on another monitor in a dual-monitor setup. Please can someone help me with this Thanks in advance Do you think it could handle 30 frames per second or will that compromise UI by tying up resources. Alternatively will it benefit from running on a separate backgroundworker thread OK, thanks for that info. Does DirectX have a solution for this 30 frames a second would be close to impossible. First you have to copy a block of memory (within a bitmap), if you can even copy the mpg control's ...Show All
TrevorHughes can't access inherited windows form controls
I hope I am posting this question in the right place... The problem I am having is that all of the UI elements belonging to an inherited windows form are accessible and editable through the VS2005 Properties window except for the ToolStrip and StatusStrip belonging to the base form. I can access them programattically but I can not edit them through the designer which makes it difficult to add items to the tool and status strips. Is there an easy way to make the inherited controls editable with the properties window A breif explanation is that I am developing an application where I will have several windows forms with the same UI elements but each form will obviously be manipulating a different set of data. I created a class cal ...Show All
Oyvind the progress bar didn't changed when the progresschanged occur of the BackgroundWorker
hi i have a backgroundworker object on the form and on the dowork event i write the code to fill the dataset like this Private Sub BackgroundWorker1_DoWork( ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork Me .GoodsDetailsTableAdapter.Fill( Me .MS4GM_DBDataSet.GoodsDetails) e.Result = Me .MS4GM_DBDataSet.GoodsDetails End Sub on the progresschanged event of the backgroundworker i write the following to make the progressbar on the form change it's value Private Sub BackgroundWorker1_ProgressChanged( ByVal sender As System.Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles BackgroundWorker1.ProgressChan ...Show All
daimaku Destroying Objects
Im adding a webbrower to each new tab i create. private void newtab(String name, String url) { TabPage newpage = new TabPage(name); tabControl1.TabPages.Add(newpage); newbrowser(newpage, url); tabControl1.SelectTab(tabControl1.TabCount - 1); } private void newbrowser(TabPage newpage,String url) { WebBrowser w = new WebBrowser(); w.Parent = newpage; w.Dock = DockStyle.Fill; w.Navigate(url); } When i close the tab, the webpage is still loaded in memory, how do i clear it I can tell because the Sun Java icon is still in my taskbar (there is a java applet inside the webpage). 70MB RAM is still being used by my program when the java app is l ...Show All
renyx how to make valdation to my input data
my application should have full validation on data... but I do not know how to make validations ... for example ... the name should be no more than 50 chars .. date should be yyyymmdd gender should be 4 chars or 6 chars ( male or female ) and so on ... hot o make validation on text numbers dates help me or give me a source to learn but before that I hope to write me exaples here thanks in advance Hi one thing you could do is the following: in your objects implement a custom validation interface bool isValid() then in the isValid method if (myString.Length > 50) {return false;} etc. so then you can call your object IsValid method to see if it's valid ...Show All
soconne Where are my buttons?
I am trying to display two text boxes when the edit button is clicked. The MemberName textbox does "disappear" but the other two textboxes remain invisible. The textboxes are in a panel and I thought by inserting the control.BringToFront(), it would put the control into the panel. What am I missing using System ; using System . Collections . Generic ; using System . ComponentModel ; using System . Data ; using System . Data . OleDb ; using System . Drawing ; using System . Text ; using System . Windows . Forms ; namespace bindDbToDataGridView { public partial class Form1 : Form { #region Strings TextBox ...Show All
Aerouk Multi thread
Hi, I have a while loop which keeps showing words in a label on a Form. I can still do events with the Application.DoEvents(). But the while loop contains 2 thread.sleep(). Which makes it slowing down in handling events. Its getting stuck for 5 seconds in total. I thought i might solve this problem by using multi threads. Once the first thread starts which contains the while loop, it should start a second thead that contains the Application.DoEvents() and not slowing it down anymore. Can this be done like how i described it Or does anyone has a better solution I'm all ears, thanks in advance! sure well yes, since its in a while loop it will constantly go insane and act as if your app is not responding b ...Show All
Liu Hua Appending in datatable
Hi, I have a table in database in which values only get inserted and no deletion or updation takes place. Each row has a time stamp. In my application I grab the table at start up and store it in a datatable and then I periodically go to the database and get all the values again and repopulate the datatable. Obviously, this is not an efficient way as I am grabbing the same rows again and again plus the new rows. I can modify my sql to get only newly inserted rows using the time stamp but how do I append those new rows in my existing datable such that it does not lose the rows already added The updation takes place ever minute and typically involves close to 50 rows. I am using 1.1 Thanks, Th ...Show All
KSuresh DataGridViewComboBoxColumn Selection is not retained
Hi, I created a DatagridView and added two columns to it. One of them being a ComboBox Column. After running the form, I click on combobox, select some different value and leave the cell. At this point, the value I selected is getting lost and it reverts back to its original state. If someone has made samples on how to use the different column types, can you please put them on the net or mail it to me Thanks, Kunal Thanks, its really misleading because in the Start Menu Programs, the IDE gets installed as Microsoft Visual Studio 2005 Beta 2. I guess a lot of my problems would be solved now Hi Mark, I am using an oracle database, I did the steps that you said for it an ...Show All
Ronald L Tooltips Cut Off
Has anyone experienced balloon style tooltips (IsBalloon) being cut off Many of my tooltips in my application have the last few characters cut off by the end of the balloon. It looks as if they are miscalculating the length of the text. Is there anything that can be done Andrew, Unfortunately, it's nothing as simple as that. The control is trying to draw the characters, they are just cut off by the edge of the tooltip. When displayed in a non-ballooon style, they display fine. In fact, I'm looking at one that is cut off right now that has less than 100 chars. Most of my tooltips don't have this problem, but some do - and some of these are short, and some are long. I have many multi-line tooltips that have many many characters a ...Show All
mahima How do i draw lines (sections) in a design application
Hi, I am developing an application that enables the user to design a dataflow diagram. The user drags a box onto the working area of my aplication and connects the boxes with lines. Until now the user has been limited to only drawing straight lines from point A to point B. I would like to make it possible for the user to click a line and drag the point to a new place (a bit like you can in visio) thus making a straignt line into an angle... then again cilcking a line and dragging the line to a new place, making another angle. This is done to make the diagram more readable to the user, because the lines no longer will go straight through boxes but can now be redirected around the boxes... Hope this makes sense :-) The point is, how ...Show All
zz2 Project Folders
I am wonder what purpose folders play in a project in VS 2005. I have multiple projects in my solution, and each project may have multiple "logical" groups of forms and classes. I would like to create folders for these groups of objects and move the corresponding objects to the appropriate folder. The only thing I am worried about is if moving the objects around in the project like that will break references or something. Any insight is appreciated... Edit: sorry, this probably would have been better placed in the VS forum... Try to open the project .csproj file with notepad, you will see all information related to the project paths and reference ...Show All
LuisLopezCarrete MERGING CELLS IN DATAGRIDVIEW
Hi all, Is it possible to merge cells(rows) in DatagridView And How Thanx i would like to know that as well... anyone an idea Hello sir, Where should i write your given Merge cell code means in which event exactly can u pass me any code to merge cells in datagridview thnx in advance The DataGridView does not have any support for merging cells. You can custom paint content across cells, but apart from that you would have to do a lot of work and custom coding to produce merged editable cells. -mark DataGridView Program Manager Microsoft This post is provided "as-is" Hi thanks for ur reply.. ...Show All
Marcus Widerberg What control is it??
Hi With the code below i can access each component. Is there a way to test what control is it Is there a way to determine whether it is a text control What type of control it is for ( int I = 0; I < HandleToForm.Controls.Count; I++) { HandleToForm.Controls[ I ].Enabled = true; } Thanks in advance TextBox textBox = HandleToForm.Constrols[ I ] as TextBox; if(textBox != null) { // do something with text box here... } Is the recommended approach. you can try the GetType() to return you back the type of the control: MessageBox.Show(HandleToForm.Controls[ l ].GetType().ToString()); Hello All. LV: You could try this: ...Show All
Ash8Fee Publishing Error - Could Not Find Debug Manifest
Hi everyone, I am trying to publish a project that builds and runs properly. When publishing, I get the following error: Error 2 Unable to copy file "bin\Debug\Programs.exe.manifest" to "bin\Debug\ProgramSolution.publish\Program_1_0_0_0\ProgramSolution.exe.manifest". Could not find file 'bin\Debug\Program.exe.manifest'. Where ProgramSolution and Program are replaced with my solution and program names. Does anybody have any suggestions on what steps I should take to fix this Thanks! Kirupa =) I have same problem,therefore I'm copy the program and publish it from copy ,some times work and some times not Sure this is not solution and I need the solution Like you ...Show All
