Topics
-
-
- Leaders
- 4 replies
- 900 views
Hi, It's my 1st time that I use mdi forms. However, my startup form is named "Form1" and its "IsMdiContainer" property is set to true. I only have another form named "DocumentForm" which just contains a Microsoft DHTML Editing control. And I open it from MainForm using: Dim Document As DocumentForm = New DocumentForm Document.MdiParent = Me Document.WindowState = FormWindowState.Maximized Document.Show() Document.Update() It seems to be OK, but when I want to get "DocumentForm.DHTMLEdit.IsDirty" property from MainForm, I cannot! How can I access these from MainForm? Thanks.
Last reply by snarfblam, -
-
-
- Leaders
- 9 replies
- 1.2k views
If been wondering about it some time now: If you know the range of a variable, is it more appropiate to set it to the respective Integer? Lets say we have: 0 - 100 - Byte 0 - 30000 UInt16 etc. Or should I just stick to the default Integer 2^32? I've tested a bit and working with smaller Integers is a bit faster, but only if you don't have to convert between them. Which happens often since most classes like List(Of T), ArrayList, etc. work with Int32. I know that regardless of what type I take the speed difference is neglectable, at least in the program I'm currently writing, but maybe there is a rule of thumb for something like that.
Last reply by snarfblam, -
-
- 1 reply
- 947 views
I am trying to capture the CAPS and NUMLOCK keys in an MDI application. I have set the KeyPreview to true and coded the KeyDown event. The problem occurs when a dialog form is being shown. The KeyPreview does not seem to fire when using a dialog form (using ShowDialog()). Is there a way around this without having to add code to every form that is brought up as a dialog form?
Last reply by mooman_fl, -
-
- Administrators
- 2 replies
- 1.5k views
I have found a couple of ways to get a serial number for a hard drive. One way is like this Dim fso As Scripting.FileSystemObject fso = New Scripting.FileSystemObject() TextBox1.Text = Hex(fso.GetDrive("C").SerialNumber()) That works great but the serial number would change if the drive is reformated. The other way is like this TextBox1.AppendText(vbCrLf) Dim hdCollection As New ArrayList() Dim searcher As New ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive") Dim wmi_HD As New ManagementObject() For Each wmi_HD In searcher.Get Dim hd As New HardDrive() hd.Model = wmi_HD…
Last reply by ZeroEffect, -
-
- 0 replies
- 610 views
hai everybody... i came to know through my friends in chennai(in india) that there is an industrial workshop in sharepoint during this weekend 30th nov, 1st and 2nd dec 2007. if you are interested contact the following person for further details. i hope this information is useful for for you...... Monisha - +91 09444992453 e-mail: monisha_training@yahoo.com bye...
Last reply by krishdhs, -
-
- Administrators
- 14 replies
- 1.7k views
I started running into problems at work when I wrote a program which references to another piece of commercial software...I will it call ProgramX. The problem is that we have about 4 different versions of ProgramX, so of course when I compile the program I wrote which references the latest version of ProgramX, it works fine on my machine. But when someone else tries to run my program and has an older version of ProgramX, my program will throw an error and stop working. I also tried compiling it using an old version of ProgramX, but it seems like you can only run my program on a machine with the same version of ProgramX as it was compiled on. ProgramX is always insta…
Last reply by Eduardo Lorenzo, -
-
-
- Administrators
- Leaders
- 3 replies
- 742 views
Hi I have written a .net html editor and want to check in form_load if it is the default html editor. how should I do it via .net 2? also how can I add an item to the context menu of windows explorer named "edit with my html editor"? thanks.
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 13.4k views
Hi I searched the forum and I found what I needed [Link], but I can't get it to work: I rewrote the code a little for my needs: Dim webReq As HttpWebRequest Dim reqStm As StreamWriter Dim postData As String = "" webReq = DirectCast(WebRequest.Create(URL), HttpWebRequest) webReq.Method = "POST" reqStm = New StreamWriter(webReq.GetRequestStream()) For Each Param As KeyValuePair(Of String, String) In Params postData &= "&" & Param.Key & "=" & System.Web.HttpUtility.UrlEncode(Param.Value) Next postData = postData.Remove(0, 1) reqStm.Write(postData) reqStm.Flush() reqStm.Close() reqStm.Dispose() Dim Content As String = New StreamReader(webReq.GetR…
Last reply by Arokh, -
-
-
- Administrators
- 10 replies
- 3k views
I�m looking some pointers, advice, suggestion, etc. I am having a hard time balancing it all, and am curious what methods work best for everyone out there. Up until now it has been myself plus one, and I have had the lead role. That person is very fast, but also very impatient, so I have found myself having to be more detail-oriented than I would like. That also means that there are a lot of concepts and tasks that I have to have intimate knowledge of. While I definitely enjoy learning new concepts, that also takes a lot of time. (I am not comfortable with just doing something because it works... I like to understand why) Along with this, it means that I typically hav…
Last reply by mskeel, -
-
-
- Administrators
- Leaders
- 3 replies
- 2.3k views
Hi I need help on how i can find the angles and point of intersection between two lines that i have drawn on the form. I am using VB.net 2005
Last reply by snarfblam, -
-
- 0 replies
- 2.5k views
Hello i would like to make in C# a custom driver for printing like HylaPrintMon.dll which is a driver to "print" (send) faxes through HylaFax. The driver is open-source but in C++ and i don't undestand a piece of it. This is a DLL that is called when we send to print something at a specific port, and it prompt some windows forms such as Username, server, pwd, number to faxing etc and i would like to make a custom forms on my own to customize it. Any help will be gratly appreciated.
Last reply by teixeira, -
- 0 replies
- 926 views
I need a little help figuring out how to deploy a custom httpHandler on a remote server. I've created a class that implements IHttpHandler. I've added the following lines to my web.config... <httpHandlers> <add verb="*" path="*.sample" type="HelloWorldHandler, HelloWorldHandler"/> </httpHandlers> and I've added the .Sample extension using IIS. Everything works great on my developement machine. The problem is how do I deploy this to a client server that I can't configure IIS on? Specifically how can I do this for a website hosted with a standard hosting company like GoDaddy? Is this a complete loss? ActiveReports u…
Last reply by OnTheAnvil, -
-
- Administrators
- 2 replies
- 797 views
Hi, I need a function that convert the first letter of each input word to upper case. I have written this one: Private Function FirstWordUp(ByVal Input As String) As String FirstWordUp = Input.Substring(0, Input.IndexOf(" ")).ToUpper + Input.Substring(Input.IndexOf(" "), Input.Length - Input.IndexOf(" ")) End Function But however, this only converts the first letter of the first word to upper case. The problem is that I usually become very confused when working with such string operations! :confused: Is anyone able to help me to complete this function? Any idea? Thanks:)
Last reply by ADO DOT NET, -
-
- 4 replies
- 1.7k views
Hey, can somebody help me out to avoid the flickering of controls that I am getting while I mobve them on the forma t runtime. here is the code I have added to the mouse events for a button I hav on my form Private Sub Button1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseDown If e.Button = MouseButtons.Left Then moving = True End If End Sub Private Sub Button1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseMove If moving Then Button1.Location = New Point(e.X, e.Y) Button1.Refre…
Last reply by sndickens, -
- 1 reply
- 8.1k views
I have a DataTable with ColumnName: ++CustomerName++. when i try to filter this DataTable as string columnName=Table.Columns["++CustomerName++"].ToString(); DataRow[] row = Table.Select(columnName + " = 'Alice'); I am getting the above error. I feel that because the column name is containing '+' sign, I am getting this error. If the column name does not contain + sign then the filtering is working fine for me. My requirement is to have any number of '+' signs in the column name. Please suggest a way out.
Last reply by RedLeader, -
-
- Administrators
- 1 reply
- 1.2k views
Found it in ScottGu's blog.
Last reply by PlausiblyDamp, -
-
Find a div
by PROKA- 4 replies
- 1.1k views
Hello, I want to insert HTML Code inside a <div id="div1" I want to search for that div, by its ID It was something like element.innerhtml ...... forgot better if u give me a solution w\ Javascript
Last reply by RedLeader, -
-
- Administrators
- Leaders
- 8 replies
- 3.3k views
Hi there, I'm doing this custom user control but I'm having a little issue. This UC has a ToolStrip added to it and I'm working with control designers which allowed me to create the following: http://stuff.nazgulled.net/images/pagestrip-action-preview.jpg When you click on "Insert New Page", a method will be called which will create a new button that will be added to the ToolStrip and a Panel will also be added to the UC which will be associated with the the ToolStrip button. So, if we had a bunch of "Pages", whenever you click a button, the Panel associated will turn visible while the others not visible. So far so good? Now, what I want... Let's say that this UC …
Last reply by Ginanity, -
-
-
- Leaders
- 4 replies
- 1.3k views
I had an issue (now resolved), and I'm just curious to see if anyone else has had the same issue. I've been using C# Express for quite a long time now (you just can't argue with the price), but a few weeks ago my installation suddenly wasn't registered, which was quite peculiar since I remembered registering it. In fact, I saved my registration code in a text file, because I do that, so I had my registration code which proves that I did indeed register it. So I put the registration code into the "Register This Product" window and it rejects it. So I go to log into Microsoft's website, and apparently my account has ceased to be. I don't know if Passport accounts didn't car…
Last reply by snarfblam, -
-
- 1 reply
- 3.4k views
I am using a regular expression validator to try and validate that the user submits a valid time i.e. nothing over 59 minutes is allowed. I am using the following expression: (\b[0-9]{0,2}\b)?((\.\b[0-5]{0,1}[0-9]{0,1}\b)?) However, the expression is failing to catch numbers over .59 Any suggestions? Mike55.
Last reply by mike55,
-
Who's Online 0 Members, 0 Anonymous, 59 Guests (See full list)
- There are no registered users currently online