Topics
-
- 6 replies
- 1.6k views
I created a simple new Windows Form project in VS2005 Sp1 (C#), and all the form does is have a button that opens a VB6 COM object, which also has a form. The problem is, when I move the top VB6 form around and over the .NET form, the button on the .NET form disappears and doesn't come back. I will post a series of screenshots to demonstrate. Once I close the VB6 form, then the button returns. Any ideas? I am new to .NET forms programming - hopefully its something simple. Thanks.
Last reply by lonewolf32, -
-
- *Experts*
- 3 replies
- 5k views
Hi Group, I am facing a strange problem here: I am trying to read xml response from a servlet using XmlTextWriter. I am able to read the read half of the xml and suddenly an exception: “Unexpected end of file while parsing Name has occurred” is being thrown. Following is the part o xml I am trying to read: <CHECK_ITEM_OUT> <ITEM id=""> <!-- id = [material] --> <ITM_NUMBER>1</ITM_NUMBER> <MATERIAL>001</MATERIAL> <DEALER_CODE>DEL_One</DEALER_CODE> <BRAND>Bridgestone</BRAND> <HIERARCHY>HAR001</HIERARCHY> <NET_PRICE>123.12</NET_PRICE> <CURRENCY>EURO</…
Last reply by anup_daware, -
-
-
- Leaders
- 2 replies
- 1.5k views
I'm looking for a way to intercept the Windows Print Dialog no matter what program calls it. I want to create a dialog that asks for a project number first and then calls the Windows Print Dialog. I want to create a billing log that will record a project number every time any program attempts to print. The first step is to intercept the Windows Print Dialog. Can anyone help? Thanks.
Last reply by snarfblam, -
-
-
- *Experts*
- 1 reply
- 2.3k views
hi i think datetime picker of vs.net 2005 does not support shamsi calendar. so is there any replacement?
Last reply by Nerseus, -
-
-
- *Experts*
- 4 replies
- 3.5k views
I want to import a text file into a SQL Server table using a vb.net windows application. I have used the open file dialog box to select the text file, and have that file displayed in a text box, via a button click. Has anybody done this ? I would sure like to see a code example, thank you, lauriemc
Last reply by lauriemc, -
-
- 3 replies
- 1.8k views
Doing line breaks on Crystal Reports.... I have a long string with line breaks on a multi text box that needs to be printed throught Crystal reports. The problem is that Crystal Reports simply ignores all line breaks and joins all text in a row. How can I walk around this?
Last reply by EFileTahi-A, -
- 1 reply
- 1.8k views
Hi, I am a C# developer that has to make some code in managed C++. I have to work with HashTable, but I can´t find ways to access items. I would like something like this in C++: C# Hashtable myTable = new HashTable(); myTable.Add("Add1", "Test"); myTable.Add("Add2", "Test2"); string test = myTable["Add1"].ToString(); C++ Hashtable *myTable = new HashTable(); myTable->Add("Add1", "Test"); myTable->Add("Add2", "Test2"); ????????????????????????????????? Thanks in advance.
Last reply by MrPaul, -
-
- *Experts*
- 2 replies
- 1k views
Hello, There is any way to avoid someone to use our .Net assemblies in other project via "Add reference..." ??? Thans in advance, Teixeira
Last reply by teixeira, -
-
-
- Leaders
- 3 replies
- 1.8k views
Confusion over Static class and Static method! Hi Group, I have a little confusion over the use of static class in C#. I have a static method in my static class. This method reads an xml and returns a collection of objects. This collection of objects can be different for different users. This method uses some non-static variables which are local to this method. Following is my static class: public static class ResponseXmlParser { public static Hashtable GetProductInfoList() { XmlTextReader xmlTextReader; bool isScheduleElement = false; bool isResultItem = false; ProductInfo productInfo= new ProductInfo(); Hashtable productInfoList = new Hashtable(); tr…
Last reply by anup_daware, -
-
- 0 replies
- 1k views
I have a datagridview set up in a windows form which contains combobox's and checkbox's but every time I open up the form design view it refreshes the DGV and all of the columns are set back to TextBoxColumns? Any ideas why this would be happening?
Last reply by MartinaL, -
-
- Leaders
- 2 replies
- 1.4k views
I can crop them easly but the minute I draw it back it becomes opaque :( Bitmap bitSize = new Bitmap(32, 32); Image pic = Bitmap.FromFile(sCurrentFile,true); Graphics g = Graphics.FromImage(bitSize); g.DrawImage(pic, dstRectangle, srcRectangle, GraphicsUnit.Pixel) ; I really don't know how to make it working, I think when I load the image to the Bitmap object it simply looses its tranparency alpha channel, no?
Last reply by EFileTahi-A, -
-
-
- Administrators
- Leaders
- 6 replies
- 1.8k views
Who's got it? Who's tried it? What'd you think? Who's upgrading? Who's not? What impact does it have on VS/.Net/open source dev tools? I've seen some commercials on TV and the scrolly task switching thing looked way cool. Also, the zoom and pan navigation of images in a folder looked neat, but I haven't tried it so I don't really know. I'll probably upgrade when I build a new computer but sadly that won't be for a while. Until then, I'm curious to know more. Should I hold off or accelerate my plans?
Last reply by MrPaul, -
-
- 1 reply
- 2.3k views
YES I WANTED TO REDIRECT THE PING COMMAND'S OUTPUT TO A TEXTBOX IN THE FORM.I WROTE THIS CODE BUT IT IS NOT WORKING.COULD U PLEASE HELP ME ON THIS Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim p As New Process() Dim ps As New ProcessStartInfo p.StartInfo.FileName = "cmd.exe" Dim str As String str = "ping 10.21.19.1" p.StartInfo.Arguments = str p.StartInfo.UseShellExecute = False p.StartInfo.RedirectStandardOutput = True p.Start() 'Console.WriteLine(p.StandardOutput.ReadToEnd) TextBox2.AppendText(p.StandardOutput.ReadToEnd())
Last reply by MrPaul, -
-
- *Experts*
- 3 replies
- 2.7k views
Sometimes when I define a variable holding a class I dont want to instantiate it until later.. possibly in another function even. This means for safety I'd like to be able to test that it's been instantiated before I acutally use it, to avoid errors. So how can I test for instantiation of a class I made? Dim Bob as MyClass 'Not instantiated 'So i want something like .. If Bob <> Nothing Then 'Continue.. End if 'But i'm pretty sure that <> Nothing doesnt work on classes
Last reply by Nerseus, -
-
-
- Leaders
- 1 reply
- 1.4k views
Hi All, I'd like to be able to rotate a group of labels at about a 45 degree angle. Could someone here give me a dumbed down explanation on how this might be accomplished? Thanx
Last reply by snarfblam, -
-
-
- Leaders
- 3 replies
- 1k views
Is it possible in VB.NET to loop through a specific object within a form? Below is the pseudocode to what I want to achieve: for con = each Label in formMain con.backcolor=rgb(252,252,254) next Is this possible, and if so does anybody know the correct syntax?
Last reply by CryoEnix, -
-
-
- Administrators
- Leaders
- 3 replies
- 1.5k views
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged --- If I call it as follows in form load: CheckBox1_CheckedChanged(Me, Nothin) Then sender.ToString will be: Project_Name.ProjectName.FormName But if user manually click on the check box then sender.ToString will be: System.Windows.Forms.CheckBox, CheckState: 1/0 Now I want to do some thing if user clicked on the check box and do some thing if it was called on form load event. I can do it this way: In CheckBox1_CheckedChanged event I use sender.ToString and compare this string, to see how this event has been called! But this…
Last reply by snarfblam, -
-
-
- Administrators
- *Experts*
- 2 replies
- 691 views
I always get invalid number error while using this: Dim MyRes As Boolean Dim MyInt As Integer = Integer.TryParse(NumericUpDown1.Value, MyRes) If MyInt < 1 Or MyInt > 65535 Then MsgBox("invalid number") End If I am using VB.NET 2005, .NET Framework 2.0. WindowsApplication1.zip
Last reply by PlausiblyDamp, -
-
-
- Administrators
- *Experts*
- Leaders
- 7 replies
- 974 views
hi What's the .NET version of this legacy vb command? Val(TextBox1.Text) ? It should be something like TextBox1.Text.Val ...???!!!
Last reply by Nerseus, -
-
- 1 reply
- 2.9k views
Hi, I recently upgraded my machine to Vista, and am loving it! Finding it nice and light, and the UI is really great so hats off! At the moment I'm prototyping a kiosk type Windows Forms application to run on Vista. I can start the application running on O/S load by modifying the following reg key to point to my application rather than Explorer.exe: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell The next thing I need to do is to stop the User breaking out of my application once it's running, so I'll need to disable key combinations like ALT+F4, CTRL+ALT+DEL etc... I found a great article on how to do this on XP here: http://ww…
Last reply by joker77,
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online