test

TheMSsForum.com: The Microsoft Software Forum

  • The MSS Forum ‹ Winforms
    • Archive
      • Biz
      • MCSE
      • CRM
      • Drivers
      • Framework
      • ADO
      • ASP
      • Compact
      • Forms
      • Dotnet
      • C#
      • VB
      • FontpageGen
      • Excel
      • WorkSheet
      • Exchange
      • Setup
      • Fox
      • Fontpage
      • ASP
      • IIS
      • Entourage
      • Money
      • Messanger
      • PocketPC
      • Powerpoint
      • Project
      • Publisher
      • Excel
      • VB
      • Security
      • Portal
      • Services
      • SQLServerDev
      • SVCS
      • SQLServer
      • VB
      • VC
      • MFC
      • ExcelGen
    • Previous
      • 1
        • DataGridViewComboBoxColumn invalid value problem I have read a bunch of posts about this problem but nothing talks about how to deal with it in the way I need to. If you have a gridview with a combobox column with values; value1, value2, and value3 and you need to bind to a datasource that could have "invalid" values that are not in that list say value4. How can you handle this situation? I would like to show the invalid value and let the user choose a valid value from the combobox but if they don't touch the cell I want the "invalid" value to stay. Is this possible? Tag: test Tag: 98881
      • 2
        • How to change Winform border color Hello - I need to change NC border color, or in some way draw a thin cross line across my form. Please help. Thanks in advance. Tag: test Tag: 98878
      • 3
        • Printing rich text format Hi all! Is there a possibility to print RTF document in .NET Framework using WindowsForms, without writting own RTF parser?? There's lots of tables and some text formatting tasks In my RTFs... So writting own RTF parser would be a bit hard. Thanks. Tag: test Tag: 98877
      • 4
        • NTD and Enterprise Library I am having trouble using No-Touch Deployment (NTD) and Enterprise Library. The application works great when simply clicking on the executable without going through the browser, but when trying to execute with the browser or IEExec.exe the application cannot read Enterprise Library's config files. Also, I do not see where the client is doing a "GET" for the enterprise library's config files in IIS logs. If I remove any references to Enterprise Library, then the application works great for NTD. I am using 1.1 framework. Can NTD only read one config file and it is not smart enough to get additional config files? I have searched the Internet up and down and cannot find anything useful. Any help is appreciated! Justin Tag: test Tag: 98872
      • 5
        • Design Views - Multiple Group Boxes Hi there. I have a winform in C# and my programming is going well. I'd would like to show/hide 3 groupboxes. My problem i think is trivial. I am currently designing the form in the design view, and would like to hide the first group box so i can lay out the second one. then same goes for the third one (hide the second one). this is just in design view and layout. any ideas??? thanks. Tag: test Tag: 98871
      • 6
        • Scrollbars I'm trying to use the HScrollBar and VScrollBar controls, but I'm having some problems with them... I want them to just sit there and let the user drag them, so I can retrieve the thumb position and handle everything else in my code. Furthermore, I want to control when they appear and when not. I have two values, h.iSizeX and h.iSizeY, which represent my drawing area, however, main form can be larger or smaller. If smaller, I want to show scrollbar(s), if larger, I just want to resize my drawing area panel. Here's my current code: scr_h.Left = toolStrip1.Width; scr_h.Top = Height-scr_h.Height; scr_v.Left = Width-scr_v.Width; scr_v.Top = menuStrip1.Height; if (h.iSizeX > Width - toolStrip1.Width) { pnl_Render.Width = Width - toolStrip1.Width; scr_h.Visible= true; scr_h.Enabled = true; scr_h.Maximum = h.iSizeX; } else { scr_h.Visible = false; pnl_Render.Width = h.iSizeX; } if (h.iSizeY > Height - menuStrip1.Height) { pnl_Render.Height = Height - menuStrip1.Height; scr_v.Visible = true; scr_v.Enabled = true; scr_v.Maximum = h.iSizeY; } else { scr_v.Visible = false; pnl_Render.Height = h.iSizeY; } Problems with it: -Right now only the VScrollbar shows up when intended, but I can't see why. -The Width on VScrollbar and the Height on HScrollbar values seem to be wrong, since the VScrollbar appears too far on the right and only half of it is shown on the right side of the window. I can already notice that when in designer. Any ideas on how to get that working? Tag: test Tag: 98869
      • 7
        • How do I change the order of object properties stored in Generics I have a List<> of objects that I want to use as the datasource for my datagridview at runtime. However, when I bind to it, the columns are in a strange order (no correlation to my query or to the underlying object properties). Any idea how to manipulate the order of object properties, either on the datagridview or in the underlying list? E.g., the grid displays object.LastName object.ID object.FirstName But it SHOULD display object.ID object.LastName object.FirstName Tag: test Tag: 98868
      • 8
        • Referencing item on form with added to tab object as control Hi, I have an application where on the main form I have a tab control. I also have created a form that has 2 text boxes and a couple of buttons on it. When the main form loads I run this code Dim MyForm2 As New frmQuery MyForm2.TopLevel = False MyForm2.Show() MyForm2.Dock = DockStyle.Fill MyForm2.Anchor = AnchorStyles.Left MyForm2.Anchor = AnchorStyles.Top Me.TabControl1.TabPages(0).Controls.Add(MyForm2) Me.TabControl1.TabPages(0).Controls(0).Anchor = AnchorStyles.Top Or AnchorStyles.Left Or AnchorStyles.Right Or AnchorStyles.Bottom Me.TabControl1.TabPages(0).Controls(0).Dock = DockStyle.Fill Me.TabControl1.TabPages(0).Focus() This creates an instance of my form and adds it to the tab. This works fine. Now I want to load a file into on of the text boxes on the form frmQuery. How do I reference it from the Main form?? I think I would start with TabControl1.TabPages(TabControl1.SelectedIndex).Controls(0)...... but I'm not sure what goes next. Intellisence cannot pickup the objects on frmQuery because it is loaded at runtime. Does anyone have any ideas Tag: test Tag: 98867
      • 9
        • open windows form2 within windows form1 Hello, I am trying to use the toolbar to open up different forms; however, I am wanting to open form2 within form1. This is similar to MS Word when creating a new document. You have the main Word window then you are able to create new documents within the main Word window. With your new docs you are able minimize, maximize the doc itself without closing the main Word window. I can get form2 to open using: Dim frmAddAsset As New frmAddAsset If e.Button.ImageIndex = 5 Then MsgBox("Thanks for using my program") Me.Close() Else If e.Button.ImageIndex = 0 Then frmAddAsset.ShowDialog(Me) End If End If But, I want the new form2 to open within form1 Please letme know, Leo Tag: test Tag: 98864
      • 10
        • HashPasswordForStoringInConfigFile > Windows.Forms App Hi I've been using the code below to authenticate a user in the database in my ASP.Net app but now I've built another Windows Forms based application. I'm trying to use the below code but I guess there is no equivalent to the FormsAuthentication.HashPasswordForStoringInConfigFile function. Does anyone know what I can use instead? Patrick public bool VerifyPassword(string suppliedUsername, string suppliedPassword) { bool passwordMatch = false; // Get the salt and pwd from the database based on the user name. Helper helper = new Helper(); string _connectionString = helper.GetConnection(_server); SqlConnection conn = new SqlConnection(_connectionString); SqlCommand cmd = new SqlCommand("LookupUser", conn); cmd.CommandType = CommandType.StoredProcedure; SqlParameter sqlParam = cmd.Parameters.Add("@username", SqlDbType.VarChar, 255); sqlParam.Value = suppliedUsername; try { conn.Open(); SqlDataReader reader = cmd.ExecuteReader(); reader.Read(); // Advance to the one and only row // Return output parameters from returned data stream string dbPasswordHash = reader.GetString(0); string salt = reader.GetString(1); reader.Close(); // Now take the salt and the password entered by the user // and concatenate them together. string passwordAndSalt = String.Concat(suppliedPassword, salt); // Now hash them string hashedPasswordAndSalt = FormsAuthentication.HashPasswordForStoringInConfigFile(passwordAndSalt, "SHA1"); // Now verify them. passwordMatch = hashedPasswordAndSalt.Equals(dbPasswordHash); } catch (Exception ex) { throw new Exception("Execption verifying password. " + ex.Message); } finally { conn.Close(); } return passwordMatch; } Tag: test Tag: 98860
      • 11
        • Problem with using TopMost property Hi, I am having a few problems with using the TopMost property for dialogs. The problem centers around the fact that I have a main dialog which as a central map and at certain positions on this map I need to display small message boxs to represent information regarding this point. These message boxs are simple forms with a ew text fields and labels. The problem I am having is that I need to set the TopMost property of the forms to true if I want to see more than one message at a time. I am creating these message forms dynamically when the user clicks the correct positon on the main map. What happens is that after the first message form, the second one makes the first one disappear under the main form. If I set the TopMost property then they all appear but when I minimise the main form, the message dialogs remain on the desktop. if (e.Button == MouseButtons.Left) { Point pt = new Point(e.X, e.Y); foreach(IconDetails icon in icons) { Point pt1 = icon.GetLocation(); Rectangle rect = new Rectangle( pt1.X, pt1.Y, 30, 30); if (rect.Contains(pt)) { VMSSiteObject vmsObj = vmsSiteObjects.GetBySCN(icon.GetDescription()); if (vmsObj != null) { ArrayList listOfDisp = (ArrayList)vmsObj.VMSDisplayObjects; ArrayList disp = (ArrayList)listOfDisp[0]; int mods = disp.Count; site = new siteDlg(vmsObj); sz.Width = site.Size.Width - 8; if (mods > 1) sz.Height = site.Size.Height + ((mods-1) * 8); else sz.Height = site.Size.Height; } break; if (site != null) { site.Tag = icon.GetDescription(); siteDlgs.Add(site); site.Show(); site.Size = sz; } } } } Is there another way I could show these forms without having to set the TopMost property. Tag: test Tag: 98859
      • 12
        • tabcontrol Hi. I have two tabcontrols in the same form (everyone with tabpages) and a toolbar. When i click on toolbar button i'd like to know which tabcontrol is active. I can't use activecontrol property because the routine return the button. ideas? thank you. fada Tag: test Tag: 98858
      • 13
        • Datagridview to datasource help needed Hi, I have a small application which includes a routine which produces several outputs from various datagridviews. I want the outputs to be entered into a bound datagridview and then saved so that over a period of time the outputs db will increase in size. But....the code I use, inputs the data but does not save it in the db behind. The catch that I have included even tells me that the save has been successful. I have looked through some websites but I don't really understand what is going on. Below is the code that I use but any help or advice would be most welcome. Many thanks James Dim p As Integer Dim todaysDate As New System.DateTime Alpha.HistoryLog.Visible = True todaysDate = System.DateTime.Now 'DESCRIBES NEW ROW Dim newHistory As DataRow = Alpha.HistoryDataSet.History.NewRow newHistory(0) = todaysDate newHistory(1) = Alpha.Filepath.Text & "\\" & Alpha.Select_Month.Text newHistory(2) = Alpha.Error_Count.Text.ToString p = (Alpha.Error_Count.Text / Alpha.TotalRows.Text) * 100 newHistory(3) = p & "%" Alpha.HistoryDataSet.History.Rows.Add(newHistory) 'VALIDATES & UPDATES WITH CATCH Try Alpha.Validate() Alpha.HistoryDataSetBindingSource.EndEdit() Alpha.HistoryTableAdapter.Update(Alpha.HistoryDataSet) MsgBox("Update successful") Catch ex As Exception MsgBox("Update failed") End Try Tag: test Tag: 98857
      • 14
        • Ctrl+Enter on a combobox automatically selects item beginning with Does anyone know why pressing Ctrl+Enter (with the focus on the combobox) automatically selects the first item in the combo beginning with the letter J? Surely this has to be a bug in the combobox. The problem can be reproduced by simply creating a new Windows Application, adding a new combobox onto Form1, setting it's style to DropdownList and pasting the following code into Form_Load: ComboBox1.Items.Add("Motorbike") ComboBox1.Items.Add("Car") ComboBox1.Items.Add("Jeep") ComboBox1.Items.Add("Van") ComboBox1.Items.Add("Tank") ComboBox1.SelectedIndex = 0 Whichever item you have selected, pressing Ctrl+Enter causes Jeep to become selected. I'm using Visual Studio 2005 Professional (VB) on Windows 2000 Professional, but I've reproduced this on VB6 and Visual Studio .NET 2003 (VB) as well. Thanks in advance for any help. Colin Tag: test Tag: 98849
      • 15
        • MdiWindowListItem - Is this a .NET bug??? Hi, I think I've come across a bug in the framework. It is to do with the MDI behaviour of the MenuStrip control. From my understanding once the MdiWindowListItem property of the MenuStrip control has been assigned to a ToolStripMenuItem it should assume the responsibility of tracking all MDI children that are opened/closed. This behaviour seems to fail in the following scenario If on the FormClosing event of an MDI child (for arguments sake we'll call this FormA) the form Close is cancelled i.e. e.Cancel = true; and a new form created (FormB) and shown/displayed, the original form FormA dissapears from the window list and is replaced by FormB. So when FormB is closed the window list shows no windows but yet FormA is still open. I know this may sound a little confusing, so I've knocked up a small harness (see link below) which reproduces this behaviour. 1. Open up the solution and start the solution 2. From the File menu select new (creates a new MDI Child window. NOTE: at this point the window list is OK) 3. Close this form by pressing the X (a 'New Mdi Child 1 Dialog' is created. NOTE: at this point the 'New Mdi Child 1' entry in the window list has dissapeared) 4. Press the Cancel button on the 'New Mdi Child 1 Dialog' to close this form http://development.gnitouch.com/MdiWindowList.zip Thanks in advance Tag: test Tag: 98848
      • 16
        • Displaying chm help file in Citrix Environment Hi, Trying to do something very simple, just display the application help file associated with an application. I've set up the Help Provider, the HelpNamespace property is simply the name of the file so it is always looking for it in the same directory as the program. I am calling with the following code.. Help.ShowHelp(this, hpMain.HelpNamespace, HelpNavigator.TableOfContents); This works absolutely fine on my development machine. This also works fine on a Citrix server where I am in the local Administrators group. However, this does not work on servers that make up our farm (I don't have admin rights on these). I've wrapped the above code in try|catch blocks, added logging etc....the code is simply called and nothing happens. No exceptions are raised and the help file is not displayed?? What could this be, a permissions issue?? Any ideas? Thanks Tag: test Tag: 98844
      • 17
        • Regular Expression Hi All, I have a textfield which accepts a name. I am validating the text field using the following statement Regex.IsMatch(txtFirstName.Text, ("^[a-zA-Z\-\.]")) The validation requirement is that it should not allow numbers or any special characters. But the above regular expression still accepts special characters and numbers. Can you suggest the correct regular expression? Thanks in advance Jyoti Tag: test Tag: 98840
      • 18
        • How could change the weekday display format for MonthCalendar For MonthCalendar control, the weekday format would follow the current culture setting of the system, I wish to change the weekday format to en-us while the system has been set to other culture setting rather than en-us. I've tried to change the culture of the UIThread & CurrentThread to en-us, while the form create the instance of the MonthCalendar, but failed. Could any one help me for this ? Thanks! -- Do or do not, there is no try. Tag: test Tag: 98835
      • 19
        • test -- eee Tag: test Tag: 98833
      • 20
        • Loading a form from another project Hi, I created a form in a project & wish to use it in another project. I Right click the project in the project explorer, & choose Add, then I choose Existing item & navigate to the FormMyForm.cs file. I do not link the file; it is a new item. I add it to the project & can see it in the project explorer, however, intellisense doesn't recognise it as being part of the project. I cannot instanitate it because it doesn't 'exist' in the project. I save & rebuild but nothing changes. This works with class files. Why not forms? Is there something I've missed? Thanks in advance for any ideas. Ant Tag: test Tag: 98832
      • 21
        • DataGridComboBoxCell manual initialization Hello, I have an unbound DataGridView, one of the columns of which is a DataGridViewComboBox Column. The combo box contains several entries that the user can choose from. I use this grid view to accept data and save it to a file. Later the user can edit data as well. While displaying existing data, I try to set the combobox cell index to one of the existing values of the combo box items, but this doesnt work at all. The underlying pseudocode : during initialization - get the underlying combobox control of the cell set the ComboBox.SelectedIndex to the index corresponding to the item for which we have the value. Any help is very much appreciated. thank you. Tag: test Tag: 98831
      • 22
        • Data Retrieval Hi, I am working with an Access Database where I have to retrieve the data from the database based on the User input and on retrieval I have to populate that record data in individual textboxes.. Can any one please help me over this... Thanks in Advance, GK. Tag: test Tag: 98829
      • 23
        • J# rookie: how do I navigate between forms in an application??? I have several Windows Forms that are supposed to work together in one application. The initial form is a main menu with different buttons that, when clicked, are intended to open another form in the application. For instance, there is an "Administration" button that should open an Administration Menu form; there is another button entitled "Data Entry" that should open a Data Entry Menu form. I have designed all the individual forms for the application, but I don't know the code to use in the click event handlers that will result in the desired form to be opened after a particular button is clicked. For instance, what code would I place in the Admininstration_Click event handler that would result in the Administration Menu form opening if the user clicks the "Administration" button? Any help would be greatly appreciated! Thanks to anyone who responds! Tag: test Tag: 98825
      • 24
        • problem with picturebox Hello, I am new in .NET and I am writing my first program in c++/CLI on MSVC 2005. I add a PictureBox to my form and then using its properties I change its image property to one image from my hard disk. it generate the following code for me: this->image1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"image1.Image"))); but when I am running my program, it generate an exception with the error that it couldn't find the specified objects in my resources. I checked the resource and there is no resource with this name there. What is wrong with this? Best regards Tag: test Tag: 98820
      • 25
        • How to call a function from another form? Hello, I'm trying to call a function from another form.... If I have 3 forms, A, B and C. A calls form B and C, and I want to call a function in C from form B. Is there anyway to do this? Any advise will be appreciated. Thanks. Tag: test Tag: 98818
    • Next
      • 1
        • Finding the URL being viewed in IE from a PID or hWnd Hi I'm trying to find the URL that is being viewed in an IE window, by using the PID or the hWnd of the IE window. Does anyone know how this could be done? or where I should be looking? Thanks Tag: test Tag: 98817
      • 2
        • Help Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98815
      • 3
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98814
      • 4
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98813
      • 5
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98812
      • 6
        • Help! Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98811
      • 7
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98810
      • 8
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98809
      • 9
        • Help! Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98808
      • 10
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98807
      • 11
        • Help! Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98806
      • 12
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98805
      • 13
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98804
      • 14
        • Help!............... Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98803
      • 15
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98802
      • 16
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98801
      • 17
        • Help!............ Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98800
      • 18
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98798
      • 19
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98797
      • 20
        • Help!.................. Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98796
      • 21
        • help!.................. Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98795
      • 22
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98794
      • 23
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98793
      • 24
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98792
      • 25
        • Visual C++ 2005 Express Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database and is unformatted. I display the text to my user in the listview. The textbox I create logically in the program, and I initialize the correct properties for a normal multiline editor. When the user changes the column size then I reload the lines accordinally. The problem I am having is when I get the lines property which is a array<^>^(). The lenght is always 1 no matter how many lines are in the textbox. In MFC when the lines are wraped the new line character is automattically inserted, but here it's not. Can you help me solve this problem? I would really appreciate it! Thanks!... -- Eric Miller Tag: test Tag: 98791

Top

  • The MSS Forum
  • The team • All times are CDT