nate-d-o-double-g's Q&A profile
.NET Development .NET TCP/IP
can someone please show me how me to create a very simple tcplistener app and tcpclient app here's my sample code on TCP Listener: Imports System.Net.Sockets Imports System.Net Imports System.Threading Public Class Form1 Dim server As TcpListener Delegate Sub DelegateServer() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim thdServer As New Thread(AddressOf ServerStart) thdServer.Start() End Sub Sub ServerStart() If server Is Nothing Then server = New TcpListener(IPAddress.Any, 3030) server.Start() End If RunServer() End Sub Sub RunServer() Dim done As Boolean = False Dim client As New TcpClient() W ...Show All
SQL Server Using VB file picker
What would be the syntax to use the VB file picker in the code section I want to do something like =code.Filename in a parameter. Where this would cause the file picker to open and allow the user to use the standard interface to track down the file. It makes no difference where the file is stored. The process (highly simplified) is: client requests a report from the report server The report definition is retrieved from the repository, processed and rendered on the server. Any embedded code will only be used at the rendering stage e.g. custom data retrieval, calculations, image processing etc. The rendered report is sent back to the client and this report is static (the parameters toolbar is a bit of code written by Mic ...Show All
.NET Development Application Design Question
I have an database application that runs in a computer which has no static IP. I am going to build a web service that will retrieve information from that database and display it on a web site as users request it. something like a tracking system. My problem is, i can't send every record from my existing database to the web service (which will log it to a second database) because only 1 out of 100 records will be queried. it would be a waste of bandwidth and space. I need to implement the web service so that when a customers requests information it retrieves the data from the existing database (computer with no static IP). Any ideas would be greatly appreciated. Let's see if i can get this thread started. O ...Show All
Visual C++ C++ 6.0
Hello I'm new to this forum I'm a student at Carleton University, Ottawa and i use C++ 6.0 for one of my classes, available in the computer labs. I tried to download C++ 2005 edition from micorosoft website which is available to download and it is totally different. Can anyone tell me where i can download C++ 6.0 from so i dont have to sit in Univeristy all day any help will be appreciated. Thanks in advance Toseef K ...Show All
.NET Development How do I determine if my connection is Wi-Fi or LAN?
How do I determine if my connection is Wi-Fi or LAN Is there a method type for this I have info for my connection (IP and Speed), but I need to determine if my connection is a Wired or Wirelessconnection. ...Show All
Visual C# ignore mouse down event
I'm new to C# programming, learning it for pleasure on my own time. As an exercise, I'm creating a simple Windows program that 1) takes the mouse-down event as an 'anchor' point, 2) while dragging the mouse around continually draw a line from that anchor point to the current mouse position, 3) once the mouse-up occurs, shrink the resulting line down automatically until it disappears. Not too hard, and it works perfectly fine. My problem is that I do not want the Form to accept any mouse-down's while the shrinking logic is occurring. Currently, while the line is shrinking, I can do some more click-and-drags, and once the shrinking completes, those subsequent lines are drawn/shrunk in like fashion. I want to effectively ignore any mouse- ...Show All
Visual Studio Express Editions Read only windows
Not sure if this is gainst the rules.. But is it possible to have a read only form Like one that you can only close by pressing a button by closing a button on its own rather than the user pressing "X" yes it is possible you would need to implement the form_closing event then some how determine what is closing it, either the button or the user pressing X (close button on the title bar) create a global private boolean variable, which will indicate for us who is closing the form: Dim IsButtonPressed as Boolean = false then on the button, double click it to create a click event and type: Me.IsButtonPressed = true then on the form_closing event, type this: &nbs ...Show All
Visual Studio Team System Steps to install SP1
I cannot find the answers on any of the SP1-sites/blogs. I have a number of PC's running VS2005 against TFS. When i update TFS to TFS SP1, must i also update all the client machines to VS2005 SP1 Or can i just update TFS and not (yet) update all the clients On the TFS-server, must i also install VS2005 SP1 I know that i must install the 'pre-SP1-patch' and the TFS-SP1, but since there is VS2005 installed on the server (not for C# or VB, etc, but Team Explorer) must i install the VS2005-SP1 for that part Thank you, Dennis Ok, thnx for the info. We will update to VS2005 SP1 on the clients soon, but i can't update them all at once ;-) At least they don't stop working... ...Show All
SQL Server Keep fields together in table control
I have a table that display large amounts of text in some fields. The table only has two columns (Field Name and Field Data). If the Field data is too large to fit on the same page as the field above it, it pushes to the next page, and then starts printing at the top of that page (the next page down). I tried setting the "Keep Together" property of the table = True, but this was of no use. Has anyone found a way to work around this, and if so could you let me know what you had to do. It may just be a SQL Server default setting that cannot be changed. I just want to research all possibilities before reporting back to the users. Thank you, T.J. I wish I could share a screen shot of one ...Show All
Visual Studio What's the best way to determine DSLs being used in a project?
If there are multiple DSLs being used by a project, is there some way within DTE that will tell me whether or not a given ProjectItem is a DSL Thanks Hi Aaron, I'm not aware of anything that would get you this, but I've asked our deep VS SDK experts as finding out the editor that would run on a file in a project is more a general VS SDK issue than a DSL-specific one. I'll get back to you with what they tell me. ...Show All
Smart Device Development How to change from one form to another in Compact Framework 1.0?
I have a simple compact framework 2.0 application that I am trying to convert to CF 1.0 so that users will not have to upgrade the framework if they have a lower version. I get an error in the 1.0 version when I try to call a different form, such as the About form with: About.Show() I get "Reference to a non-shared member requires an object reference" If I try: Dim f As System.Windows.Forms.Form = MyApp.About f.Show() I get "About is a type in MyApp and cannot be used in an expression" The first version works in 2.0. How do I do this in 1.0 Thanks in advance. You should use New operator to create an instance of a form: Dim f As New <WhateverForm ...Show All
SQL Server Add a calculated measure to a Measure Group ??
I have created a calculated measure which is logically very much part of a specific measure group but I can't seem to work out how to add it to the measure group.. it just sits there as part of the general Measures. Can I specifiy in which Measures group it should reside This would also make more sense for managing Perspectives.. In the calculations tab, when you are defining the calculation, look on the toolbar for a button named "Calculation Properties". Click on that and it will open a dialog box that you can use to add either display folders or associated measure groups for each of your calculated members. Just add an associated measure group for the calculated member in question and it w ...Show All
Visual Studio Express Editions Can't find the windows.h
Hi, i dowloaded and installed vc++ 2005 express edition, and the Microsoft Platform SDK for Windows Server 2003 R2, just as in this tutorial: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ I tried many times but it didnt work. i even downloaded the video's and did exacltyly the same as on the video. Then when i start a new project and blablabla, press F5 and always getting this error. Here is a screenie: http://img70.imageshack.us/img70/3407/whatzefuckhl9.jpg Please, i really want to get this working.... Thanks in advance, Domiiii ps: sorry for my really really bad english :) Only the PSDK /bin directory should be added to the Executable files directory list. The /include directory should b ...Show All
SQL Server Are these the correct steps? -- Encrypted Connection String and Security
Hi, Assume I have an asp.net/sql server 2000 web app in a shared hosting environment. I then encrypt the connection string using ProtectSection("DataProtectionConfigurationProvider") in the page load of my default.aspx page. Am I understanding the following concepts then correctly 1. I upload the site to the shared hosting server. 2. The first time I run the app eg. www.whatever.com/default.aspx , the ProtectSection method above is executed. 3. Now the conn string area of my web.config is encrypted, and asp.net will decrypt as needed. 4. If someone were to hack the server and view the web.config -- whether via getting into the server or via ftp, they would see an encrypted connection string. Thanks very much! ...Show All
Visual Studio Team System Is it just me or are others finding CTP5 dog slow?
I routinely get delays and a pop-up reporting "Visual Studio is busy ...." with CTP5. Even the roll-out of the schema view is slow. I did not see this in the previous CTP version. My workstation has dual processors, 2G RAM, no disk constraints. VSS is engaged. My database project has less than 100 objects - similar in size to the project I was using in the previous CTP. #1 Is this a problem others are having #2 Is there are way to turn off the automatic error checking when each script is saved Can this be invoked by request - perhaps during the build event only for example (To try to speed things up). Thanks. We did a perf update with CTP5; are you running with that install It's lo ...Show All
