Topics
-
- 4 replies
- 2.1k views
Howcome my Enviroment.NewLine doesnt work?? All shows up on one line. I found this link and tried char(3) and VBCrlf as well but no use. My text box is wide enough. I tried "multiline" property of textbox but i dont want "multiline" and have a scrollbar next to the text box. Howcome this doesnt work? http://www.xtremedotnettalk.com/showthread.php?t=94136&highlight=Environment.NewLine Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load txtError.Text = "You do not have access to the System:" & vbCrLf & _ "Authenticated: " & Request("Authenticated") & Environment.NewLine &…
Last reply by techmanbd, -
-
- Administrators
- 1 reply
- 3.5k views
I'm quite confused about the way ComboBox's FindString() method works. Consider the following example: ComboBox myComboBox = new ComboBox(); myComboBox.Items.AddRange(new string[] { "Test1", "Test2", "Test3", "" }); MessageBox.Show(myComboBox.FindString("Test1").ToString()); MessageBox.Show(myComboBox.FindString("Test2").ToString()); MessageBox.Show(myComboBox.FindString("Test3").ToString()); MessageBox.Show(myComboBox.FindString("").ToString()); The first three output as you would expect 0, 1, 2 but the last one output's 0. ***? Who wrote this method anyway. I mean I could understand it returning -1 or something like that but it is returning 0 which is "Test 1"…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 3.3k views
Good Morning, This should be a simple question, but I do not know how to do it? I have a datagridview, bindingsource and data from a table in a dataset. I am not displaying the unique ID of the table, on the datagridview. I need to find the value of the ID field of the table on a doubleclick event. Can someone tell me how to do that. Thanks, Guha
Last reply by gprabaka, -
- 0 replies
- 1.6k views
Dear All, This is a solution, not a problem. Over the past week I have been attempting to repair the connection between my PC and PDA so that I can deploy mobile apps to the PDA. You wouldn't believe how many sites I've been on to try and find the answer. Anyway, thanks to a gentleman by the name of Nick Chadwick, I have found the solution. To any admins or moderators, this may be one for the Code Library (even though it's not code)... The actual details can be found here... http://www.pcreview.co.uk/forums/thread-1305572.php ...but will shortly be archived. As with the author of the posts detailed in the PC Review forum, I hope this saves you some o…
Last reply by mandelbrot, -
- 0 replies
- 2.2k views
Is it possible to host info path forms or the repeating controls and such in a vb form or even on an asp.net page? I have an Infopath 1.0 form that I use to create xml documents, but I would like to host it on the web. Of course this creates a static page that doesn't allow for the repeating controls. Is there a way through vb to get this same functionality?
Last reply by caeanis, -
- 0 replies
- 2.8k views
For the last year or so I've been working on and off on a small side project. It is supposed to be a game based on 'Asteroids', except that there is a 2d physics system, and the user can also create custom asteroid templates, as well as a myriad of other changes. Currently this project is a vb6 app, and as the title of this post suggests, I'm trying to port it to c++.net (note that the vb6 source and compiled versions can be found at http://www.ghost2.cafe150.com). I am self taught in vb6, and am very experienced with its use (the code at the aforementioned site was done from scratch), and I have taken 2 courses on plain c++, so I'm familiar with the syntax, as well …
Last reply by ghost2, -
- 1 reply
- 774 views
Hi! I need to know how do I create a .net Solution outside the Visual Studio Environment. Want to be able to create the whole thing: - Create the Solution - Create Projects and add them to the Solution - Add *.cs files to the projects - Add references to the projects the whole pack... :) Thanks! Alex :p
Last reply by Gill Bates, -
- 1 reply
- 867 views
Hello everyone, could someone please show me how to pass a multidimensional array of a varying size to a class that takes an multidimensional of a varying size. Here is some sample code that I have to better explain. Inside the class I have this code Public Class MapClass Public Sub New(ByVal Array()() As Short) MyBase.New() 'Set The Array Passed In As The Map Array MapArray = Array End Sub Public MapArray()() As Short Public Sub Check() MessageBox.Show(MapArray(1)(2).ToString) End Sub End Class Now inside the main form I have this code Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As Sys…
Last reply by Cags, -
- 2 replies
- 1.7k views
I have this line of code in ASP.Net 2.0/VB.Net Global.asax file: Try If e.Identity.IsAuthenticated And Not (e.Identity.IsAnonymous) And _ e.Identity.AuthenticationType.Length <> 0 Then Dim userIdentity As String userIdentity = e.Identity.Name() End If Catch ex As Exception HttpContext.Current.Response.Redirect[b]("[color=Blue]AccessDenied.aspx?Authenticated="[/color] + [color=YellowGreen]e.Identity.IsAuthenticated [/color] [/b] + "&Anonymous=" + e.Identity.IsAnonymous) End Try For the Blue text, I get this error msg: Option Strict On disallows implicit conver…
Last reply by eramgarden, -
- 1 reply
- 809 views
Hi all, Im working on a project and I would to make it an application that runs on client pcs where the db will be stored/run from a single pc(admin). I'll code the application in VB.NET VS2005 and will use SQL express. How can I make such application where the users login then at some point they could update the database with some values? What kind of application will this be?? And how can I deploy it as client or server? Thanks
Last reply by Gill Bates, -
- 1 reply
- 1.2k views
Hello everyone, Im trying to view ports on a fax server to determine if they are in free or being used. I tried using FaxCom.dll and faxcomex.dll with no luck. Here is my code usind faxcom.dll: Dim faxSvr As New FAXCOMLib.FaxServer Dim fs As FAXCOMLib.FaxStatus Dim fp As FAXCOMLib.FaxPorts Dim IsRecieving As Integer Dim IsSending As Integer Dim counter As Integer Dim freePort As Integer = 0 faxSvr.Connect(Server) fp = faxSvr.GetPorts For counter = 1 To fp.Count fs = fp.Item(counter) IsRecieving = fs.Receive …
Last reply by Gill Bates, -
-
- Administrators
- 5 replies
- 926 views
I can use FileDateTime("c:\temp\document.log") to retreive the date and time down to the seconds. That's the problem, I don't want it down to the second. Is there some sort of a trim method or function I can use to cut the seconds out? Thanks, Bernie
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 2 replies
- 1.6k views
If you add a Word file as a Resource to a project, how do you then open that file from within your code? Not like this, at least: Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim p As New Word.Application p.Visible = True p.Documents.Add(My.Resources._2002_AGM_Minutes) End Sub End Class I can't figure it out. It was so easy in VB6 with an OLE container. Grateful if someone can tell me.
Last reply by rbulph, -
-
- 4 replies
- 1.1k views
Hi For those of you that saw the other thread, i've managed to find out why it wasnt working and find a work around, but i dont know why one works and not the other. Could someone have a look and tell me what they think please? This is the original code. It was largely working fine, but the first char was chr(153) or Hex value 99. It would convert this into a ?, hex value 3F or Chr(63). I'm guessing it was reading the first character from the string as a ? as its an unprintable symbol, and then outputting this to an actual ? in the conversion. mobjClient = New TcpClient("172.28.46.27", 3500) Dim b() As Byte = System.Text.Encoding.ASC…
Last reply by Jay1b, -
- 8 replies
- 2.1k views
I have been thinking about this for awhile, most of the applications i make receive UDP data or send UDP data. As I write the application it all ways is taylored to the sending or receiveing application. But if the sending or receiving application changes I have to retool the app I made and reinstall it. How would I go about make a setting in a config file that would be the format of the incomming data. Am i making sence? here is an example.. Sending application "A" sends data out like this |^info1~info2~info3~info4| How would i make a user changable setting in my config file to represent that? UDPRecString=?????? thanks for any help you may be able to …
Last reply by ZeroEffect, -
- 1 reply
- 1.5k views
I'd like to use the TabControl with the tabs aligned to the left. That works fine except that the text on the tabs don't show up. Is there another property I have to set for that?
Last reply by mooman_fl, -
- 2 replies
- 1.3k views
I have a dataset table where I edit data, add rows and delete rows. When I update the source database using the Update() method the added rows and edited items go through fine, but the deleted rows are still in my database. I've tried AcceptChanges() but that seems to prevent all changes from being sent to the database. So, my problem is how do I update the database from my dataset so it accepts edited data, added rows and deleted rows. Thanks TedN
Last reply by TedN, -
- 3 replies
- 1.1k views
I know most sound cards have a midi/gameport on them. Is there a way to use this? I am sure there is but I am not sure where to start.
Last reply by ZeroEffect, -
-
- Administrators
- 2 replies
- 4.7k views
I'm really new to .NET and am trying to convert some of my VB6 apps. I'm using a COM component. I'm getting the following error at runtime. Can anyone explain it to me in layman's turns and suggest a fix? Thanks! DisconnectedContext was detected Message: Context 0x1a07a8' is disconnected. Releasing the interfaces from the current context (context 0x1a0358).This may cause corruption or data loss. To avoid this problem, please ensure that all contexts/apartments stay alive until the applicationis completely done with the RuntimeCallableWrappers that represent COM components that liveinside them.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- Leaders
- 6 replies
- 1.5k views
Is there any way that you can create an array to pass directly as a parameter? i.e. avoiding the need for the variable f in the following code and just putting the array elements in the call to the procedure: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim f() As String = {"ioj", "OIJ"} hioh(f) End Sub Private Sub hioh(ByVal f() As String) End Sub End Class It seems to me that there ought to be, but I can't figure out what it is.
Last reply by rbulph, -
-
Who's Online 0 Members, 0 Anonymous, 56 Guests (See full list)
- There are no registered users currently online