| MD5 conversion problem (VIP replies) |
| microsoft.public.dotnet.framework.aspnet.security |
| Hello, I'm struggling with the string conversion to MD5 which I've never user before. I have a string that I need to encode which looks approximately like this: "pva:0.05:101214:pa7735tH:inv desc 205308:shp Email petera gudzon.net:lang ru:shp PaymentNo 20040825205308:shp UserID pva:shp Price 2.95:shp HostPlan BU:shp Term 2" I'm doing it this way: Dim hashedBytes As Byte() Dim md5 As New MD5CryptoS... |
|
| MD5 for Large Files (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I am new to VB.NET and I am trying to learn. So, your indulgence for the triviality of my questions is kindly requested. I would like to calculate an MD5 hash for very lage files. The examples I came across read the file into a byte array and apply the hash to that array. The following code illustrates what I am doing. I would like to perform the hash calculation on a stream. Is this possible? If ... |
|
| MDI application design (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, I have created Application that has MDI interface. Indeed application works as it should, but I have question related to its design. Assume my application can change Zoom state of the opened document from the toolbar (toolbar for all opened document is the same). Which component of application should change this zoom: the main form where toolbar situated or this Document through the main fo... |
|
| MDI Child formQuestion catching Child Closing (VIP replies) |
| microsoft.public.dotnet.languages.vb.controls |
| I have a MDI child that I instantiate after a button click. (ex: If (frmPositions Is Nothing) Then frmPositions New Form2 frmPositions.MdiParent Me Me.ResumeLayout(True) frmPositions.Show End If Problem: How can I catch the close event of the MDI child? I tried raising an event in child but doesn't seem to come through to Parent. The issue is the child is disposed but the form variable "frmPositio... |
|
| MDI Forms (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| hello, what is the property or event to check if the child form is alredy open? I just want to avoid opening a child form inside the parent form twice. thanks in advance |
|
| MDI Parent child (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have a Parent form that opens a child form. Now I need this child to open another form and have it as a child of the original parent. How can I assign it as a child? tx, Paul |
|
| MDI Toolbars (VIP replies) |
| microsoft.public.dotnet.framework |
| I have created a base form class that all forms in my VB.net application will inherit from. This base class contains overridable methods Save, Delete, Cancel. There are corresponding buttons on a MDI toolbar which when clicked should allow the form to perform it's save, delete or cancel function. How do I do this correctly? Do I pass a reference of the toolbar to the form or write something in the... |
|
| MDI w/ child forms using activated event (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have a MDI form with the following Public fm2 As New Form2() Public fm3 As New Form3() and Private Sub MenuItem2 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem2.Click fm2.MdiParent Me fm2.Show() End Sub Private Sub MenuItem3 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem3.Click fm3.MdiParent Me fm3.Show() End Sub Both MDIChi... |
|
| me.close doesn't work! (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| I have removed all the non relevant parts from the code with which I am having problems, and this is the essence of it... Dim frm As New EditContact ' LOAD UP THE DISPLAY FOR THE SELECTED CONTACT frm.LoadData(MyContact, myLabel(currentfield)) ' DISPLAY THE FORM frm.ShowDialog() ' DETERMINE WHICH BUTTON WAS PRESSED TO EXIT THE CONTACT SCREEN frm.GetData(ButtonPressed) Me.Close() I call the 'frm' to... |
|
| Measuring Text in TextBox - MeasureString "falls short"! (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms.controls |
| Hi everyone, My goal: to create a control that acts similarly to Word's Textbox drawing object with its "Resize Autoshape to fit text" turned on (you set the width and as you type, text wraps, and as it wraps, the height of the object increases). Essentially, this would be a child of a MultiLine TextBox with WordWrap on, but it should never show a vertical scrollbar; instead, its Height should be ... |
|
| Memory in windows forms (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, Consider the following situation I have the following routine running repeatedly (curControl is a UserControl with say 1000 textboxes and a big array of strings): Public Sub AddControl(ByVal ctlName As String) If Not IsNothing(curControl) Then Me.Controls.Remove(curControl) End If Dim assemb As [Assembly] [Assembly].Load("MyControlAssembly") curControl CType(assemb.CreateInstance(ctlName), Use... |
|
| Memory in windows forms (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hi, Consider the following situation I have the following routine running repeatedly (curControl is a UserControl with say 1000 textboxes and a big array of strings): Public Sub AddControl(ByVal ctlName As String) If Not IsNothing(curControl) Then Me.Controls.Remove(curControl) End If Dim assemb As [Assembly] [Assembly].Load("MyControlAssembly") curControl CType(assemb.CreateInstance(ctlName), Use... |
|
| Memory leak (VIP replies) |
| microsoft.public.dotnet.framework.performance |
| Hi, I'm writing vb.net form to access data from database. When I load this form each time, it increases memory usage. I have already dispose objects when the form is unload. However, it cannot clear all used memory. Finally, the program is crash. Here is my code. How can I solve it? Thanks. tmp clsAdoCon.DefSqlConString "Provider Microsoft.Jet.OLEDB.4.0;Data Source C:\member.mdb" Dim m oledbAdapt ... |
|
| Memory Leak in Form (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| I seem to be having memory leak problems. If you open a form using Form.ShowDialog() within anther form, the framework doesnt release all of the memory used by the new form when the form closes? Whats going on here |
|
| Memory leakage in VB.Net (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hello, We have a problem with a small GUI application that leaks memory. The GC seems to miss out on things. A small code snippet that will leak. ' This is the method to run when the timer is raised. Private Sub TimerEventProcessor2(ByVal sender As Object, ByVal e As System.EventArgs) Dim stText As String stText Me.Button1.Text stText 1 Me.Button1.Text stText End Sub As you can see everytime the t... |
|
| Memory Leaks? (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Has anyone noticed memory leaks in their VB.NET Windows Forms apps? My app definitely has some memory leaks, so I did a simple test to see if it was my app or something about VB.NET. I created a test app with 2 forms. Form1 has a command button with the following code: Private Sub Button1 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As New Form2 x.S... |
|
| Memory management question -> Form.Close() (VIP replies) |
| microsoft.public.dotnet.framework.windowsforms |
| Hello, In one of my winforms pages, I launch another form as follows Private Sub btnExtract Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExtract.Click Dim page As New ShowCourses page.Show() End Sub When this form comes up, I fill a datagrid and then set the dataset and datadapter to nothing. After the user looks at the datagrid, they can close this page as follows: Privat... |
|
| Memory recovery for Forms (VIP replies) |
| microsoft.public.dotnet.framework.compactframework |
| Hi, One of problems we faced in EVB was that we cound not unload forms. This was a bottle neck for my application. I am porting this application to VB.NET. I want to recover memory from certains forms once they are not required anymore e.g login form. I am using following syntax. Private Sub Button2 Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim f1 As F... |
|
| Memorystream bitmap with tcpclient and sockets (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I have a memorystream of a bitmap, I want to send this over the network to a client app so it can receive the bitmap, I am dabbling with sockets and tcpclient's and ahve got a connection going but any documents I am looking up are not exactly what i am looking for and end up confusing me as I am not so familiar with this area, any help or code snippets would be great. thanks, barry. |
|
| MemoryStream Cast (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Does anyone knows how to CAST this SQL Response into a MemoryStream ?? When executing below code an error message says "Specified cast is not valid" I need to put this into MemoryStream to use it into imgPhoto Dim imgPhoto As System.Drawing.Image System.Drawing.Image.FromStream(myStream) Dim dbConn, SQLStmt, dbComm, dbRead, img Dim myStream 'As New MemoryStream dbConn New System.Data.OleDb.OleDbCo... |
|
| Mental Block (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I'm trying to do something very simple, and I cant get it to work. Probably last nights beero or possibly inherent stupidity on my part. Any how this does not work. Any Ideas ? The PositionChanged event does not seem to fire when I change the position of the bound Textbox. TIA Private Sub Form1 Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load myStrings(0) "A" my... |
|
| Menu Items Handler (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| I can use code similar to the following to handle Radio Buttons (similar to a control array). SO far, I've been unable to come up with a similar way to handle menu items. Any ideas? Code snippet: Private Sub HandleOptionButtons(ByVal sender As Object, ByVal e As System.EventArgs) Handles optBillDate.Click, optBillNumber.Click, optCSN.Click Dim BTN As RadioButton BTN CType(sender, RadioButton) With... |
|
| Message box (VIP replies) |
| microsoft.public.dotnet.general |
| Hi, Can someone tell me how i could close a form if the 'OK' button is clicked in a message box. i have attempted something like the following.... Private Sub Button2 Click 1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click MsgBox("If you continue, u will lose the current booking. Do you wish to continue?", vbOKCancel) If vbOK Then Me.Close() Else End Sub Also how ... |
|
| Message Box (VIP replies) |
| microsoft.public.dotnet.framework.aspnet |
| Hi Everyone i want to appear a message box for users contains Yes or No if the user choose yes it ll take action & if he choose nothing happen i cant use the alert script coz i have to catch the value that the user choose (yes or no) is there a way can i make it appear in web like in windows application (messagebox.show)?????? Thx in Advance |
|
| Message box question (VIP replies) |
| microsoft.public.dotnet.languages.vb |
| Hey Group, Hows you all doing? I wonder if somebody could be kind enought to point me in the direction of a link on how to use Message Box's basically I want to have a message box pop up with 3 boxs in, A, B, and Cancel. Cheers MCN(Si) |
|