| UDP receive (3 replies) |
| microsoft.public.dotnet.general |
| I am trying to set up a socket so it will listen for any incomming UDP packets. I have tried to call listen, but I get the error "Additional information: The attempted operation is not supported for the type of object referenced", almost like listen is not valid for UDP. Socket socket new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); socket.Bind(new IPEndPoint(IPAddress.A... |
|
| Dynamically placing controls on a form. (2 replies) |
| microsoft.public.dotnet.general |
| I need to place controls on a form dynamically. I want to loop through a database and put labels on a form with the text to a field in the database. TIA |
|
| Textbox1.Text.ToInt32...why doesn't this work? (2 replies) |
| microsoft.public.dotnet.general |
| I am reading a Que book about returning values form textboxes and they claim that the following lines should work... Dim FirstNumber As Integer FirstNumber TextBox1.Text.ToInt32 ....I keep getting a blue squiggly line with a tooltip "'ToInt32' is not a member of 'String'" I guess I'll use "FirstNumber Val(TextBox1.Text)" until I figure this one out. Any ideas? |
|
| talking to other desktop apps/objects? (2 replies) |
| microsoft.public.dotnet.general |
| Hi, I am new to Windows programming and I am looking for the ways you can talk to other components of the desktop. For example: how does an email program open an Internet Explorer window when you click an http link? Do I want to dig into the "remoting" namespaces? I am using C#. I read a little but didn't see any examples of what I just mentioned. My specific goal is to write an HTML editing progr... |
|
| The ID 'editad' is already used by another control. (2 replies) |
| microsoft.public.dotnet.general |
| "The ID 'editad' is already used by another control." No it's not! I created a header and footer and am trying to use them on all pages on a site. On most pages it works fine. but it seems like if I navigate to a 3rd or 4th page with the header that I get this error, however, editad is nowhere else on the site (other then the header). I have tried changing the name and I get the same error. Is the... |
|
| How to handle events that are defined in classes (5 replies) |
| microsoft.public.dotnet.general |
| Hi, Let's say I have a class "Class1" And in that class I defined Event Progress(ByVal Bytes As Integer) And somwhere in the code of the class RaiseEvent Progress(46566) Now I have an application which uses that class Dim x As Class1 '... bla bla bla how can I react to the event raised by X ? Thnx TP. |
|
| FTP in VB.Net (5 replies) |
| microsoft.public.dotnet.general |
| I want to program an FTP client in VB.Net. Does anyone have ideas where I have to start? Thx, Dennieku |
|
| Dynamic DropDownList, Changing Selected Value, .NET newb... (2 replies) |
| microsoft.public.dotnet.general |
| I am using dropdownlists in a repeater, using the repeater to bind data to several form elements (inputs, Checkboxes, radio buttons, and, of course, drop down lists). Each drop down list contains a list built out of a different database table, so it gets its own datasource. Each item on the template has a default value selected for the drop down list, (the drop down list is composed of Available S... |
|
| Setting up .net (2 replies) |
| microsoft.public.dotnet.general |
| I am new to .Net. I tried to install the Visual Studio .Net using the Visual Studio .Net Enterprise Architect Version 2002 disks (CD 1 to CD 4) plus and Component update. However, when I write a simple aspx page such as the following, the message doesn't show. I am suspecting I didn't install correctly. Can anyone help me? Thanks html script language "VB" runat "server" Sub Page Load(Sender As Obj... |
|
| A better solution please (System.IO.Stream related) (5 replies) |
| microsoft.public.dotnet.general |
| Hi, I want to download a file, To do this I have the following code. The code works, but isn't really good. 1 I can't find the size of the file I'm about to download (Seek is not allowed it says) 2 I don't know when the download is finished, so I have a poor test to see if the download is completed What do I need to change in the following code ? Thnx in Advance. TP. Private Sub frmMain Load(ByVal... |
|
| UdpClient.Receive timeout (not) (4 replies) |
| microsoft.public.dotnet.general |
| Working on some changes to another programmer's UDP based program, I've found that if the server does not respond, it hangs. I see references in the documentation to timeouts, but I can't find any way of setting them. I've also been referred to developer's forum postings which recommend solving this problem with multiple threads: one to perform the operation, and a second to kill the first if it t... |
|
| Struct : Value Types ? (9 replies) |
| microsoft.public.dotnet.general |
| Hi community, The object hierachy for value type Int32 is as shown below class Object class ValueType struct Int32 http://msdn.microsoft.com/library/default.asp?url /library/en us/cpref/html/ frlrfsystemvaluetypeclasstopic.asp I have the following doubts? 1) How can an struct which is a Value Type actually extend from a class Object adn class ValueType that are a Reference Type? In other words if ... |
|
| Handling Events in a DataGrid (3 replies) |
| microsoft.public.dotnet.general |
| Hello Everyone and thanks for your help in advance. I am working on an application that can be located at: http://www.hughmclaughlin.com/employeenotes.aspx I ahved two questions; 1. On the initial Page Load, the Select * query is executed creating the list in the datagrid. As you can see, it creates the ability to add, edit, or delete a record. I have the Add portion working properly, but I am hav... |
|
| FileInfo class: Wierd bug? Or ignorance? (2 replies) |
| microsoft.public.dotnet.general |
| I seem to have found a wierd bug with the FileInfo class. It seems that deleting a file using the class, doesn't really delete it. To illustrate, I've included below code that does the following: 1. Create a new file "c:\testBug.txt". 2. Take a current time reading and store. 2. Delete the file. 3. Recreate the file with the same name. 4. Compare the new file's CreationTime to the previous reading... |
|
| How to Create Image Object from bytes? (2 replies) |
| microsoft.public.dotnet.general |
| I got bytes from NetworkStream these bytes is a image file. Now I want to show this iamgefile in the PictureBox. pictureBox1.Image Image.FromStream(aStream); aStream is System.IO.Stream Object, How to Create Stream Object from bytes?? has any way? thanks a lot! |
|
| BuildCommDCB doesn't work? (2 replies) |
| microsoft.public.dotnet.general |
| I am trying to use the Win API from C# to read a COM port. I have the following. [DllImport("kernel32.dll")] private static extern System.IntPtr BuildCommDCB(string lpDef,[MarshalAs(UnmanagedType.Struct)] ref DCB lpDCB); [StructLayout(LayoutKind.Sequential)] public struct DCB { public int DCBlength; public int BaudRate; public int fBinary; public int fParity; public int fOutxCtsFlow; public int fO... |
|
| Threads (2 replies) |
| microsoft.public.dotnet.general |
| Hi! I'm new to threads... I know how it works, but here's my question: How can I use threads efficiently if I need to load a form with a lot of data sets? I need to fill a couple of combobox with data. I'm using a Tab Control, so there's some combobox that I don't need to fill immediatly. (example on the last tab) Can I use a thread to start the filling of these combobox later (because it's not a ... |
|
| DateTime Picker Control (2 replies) |
| microsoft.public.dotnet.general |
| Hi, I am just confused with the Datetime picker control. The control looks like the *MOST* buggiest one that MS could have ever developed. In my VB.NET Windows Form, I want to have a datetime picker control that has to be bound to a database column of type datetime (SQL Server), which may contain NULL values. I simply want the dtpicker with a checkBox, which has to be in "unchecked" state, when th... |
|
| Namming convention (3 replies) |
| microsoft.public.dotnet.general |
| Hi, With VB, we have "standard" naming convention, like iml for image liste, tvw for tree view, ... Is there something like this with VB.NET and where can I found this information (web pages, forum, ...) Thanks Stéphane |
|
| Security Context - not available?! (2 replies) |
| microsoft.public.dotnet.general |
| Hi, I am trying to write a class library using C#. I have completed the code, and it works fine in debug apart from one thing I am unable to return the current callers name using: SecurityCallContext.CurrentCall.OriginalCaller.AccountName. ToString(); I am given the error message: No security context is available. I get the same error message with: SecurityCallContext.CurrentCall.OriginalCaller I ... |
|
| Warning ControlCollection indexes are not stable! (3 replies) |
| microsoft.public.dotnet.general |
| Warning ControlCollection indexes are not stable! Hopefully this warning will save some else a fist full of hair and a sleepless night. I just spent the last two days fighting this. I was dynamically adding controls to a Panel. I had a method to show and hide various controls that worked off the index (or page). I was counting on the indexes being stable. That is, if I add the controls in this ord... |
|
| Divide by 0 - There is an answer ! (4 replies) |
| microsoft.public.dotnet.general |
| Hi all, Just thought you would like to know that vb.net will allow you to perform a divide by 0 operation without throwing an error. It sets the result variable to an internal code for infinity. I haven't managed to find any comment in msdn yet about this, but it's the first language I've use which says dim x as double 1 / 0 is valid. ; ) Derek |
|
| change label text property within a module (2 replies, VIP) |
| microsoft.public.dotnet.general |
| I have a form that has label and text boxes on it. The form calls a module. The module does some calculations and I want to update the label and text on the form from the module. I can't figure out how to do this. I can update fields from within the form using a procedure, but I want to update the fields from the module. Any help would be greatly appreciated. |
|
| Creating a DLL / OCX in VS.Net.. (2 replies) |
| microsoft.public.dotnet.general |
| I would like to create an OCX / DLL that I can call from Access 97 / 2000. I have created the class object in VS.Net and created a setup / deployment. When I build the application. it sets up an installation that installs a DLL, however, I cannot reference it with in Access.. How do I create this project as an .OCX or make compatible with previous versions of Access or Visual Basic... (6.0) Thanks... |
|
| How to instantiate a com object ? (2 replies) |
| microsoft.public.dotnet.general |
| Hi All! How to instantiate a com object in C# like CreateObject in VB without add reference to type library. Thanks, Victor. |
|