Cynkan's Q&A profile
.NET Development System.Net.Sockets.TcpClient.Protected Property error
Hi, I'm new to socket programming. Just want to handle multiple clients. i took the following artcle as reference. http://www.devx.com/dotnet/Article/28083/0/page/3 the pbm is '---get the client IP address _clientIP = client.Client.RemoteEndPoint.ToString ---> this line gives me an error like 'System.Net.Sockets.TcpClient.Protected Property Client() As System.Net.Sockets.Socket' is not accessible in this context because it is 'Protected'. What does it mean How to get the IP address Thank You. This is because the Client property on the TcpClient class has protected scope. See the protected keyword in c# for more detail:http://search.msdn.microsoft.com/search/Redirect.aspx title=p ...Show All
Visual Studio Tools for Office Deploying VSTO Word Project: could not find or load customization assembly
Hello! I developed a custom task pane with VSTO for a Word2003 report and now I would like to enable access for my clients to this document. I copied the document to a server folder in my intranet and tried opening it, but I got the following error:: "The customization assembly could not be found or could not be loaded" "The customization does not have the required permissions to execute." Therefore, I need to grant access to a server folder where the document and the assembly will be located. I checked http://msdn2.microsoft.com/library/k64zb6we(en-us,vs.80).aspx and followed the "How to: Grant Permissions to Folders and Assemblies" procedure step by step. However I still keep getting the same error! I noticed this note "You must be ...Show All
Visual C# C# name
I recently saw the name of this programming language depicted like:<br> HTML: C<sup>#</sup> Is this -somehow- official never seen that! The only names of C Sharp AFAIK: C# C#.NET Visual C# Visual C#.NET I guess the html code you posted is just a formatting/layout thing to provide the # (sharp) character a subscript formatting ...Show All
Visual Studio 2008 (Pre-release) Using a ResourceDictonary for custom controls
I've made a custom control that inherits from Canvas, to this control i've added a property that tells what text that should be inside the control. The control works fine, even though it's a real hassle to add assembly-references and namespaces in xaml. The property also works without any problems. Now i want to make this control dynamic by using a resourcedictonary to asign the textvalue. This is how i add my control in xaml: <Canvas Width="1024" Height="768" x:Class="TestProject.MainMenu" xmlns:MyNamespace="clr-namespace:TestProject" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml ...Show All
Visual Basic StreamReader
Okay, say I have a large .txt file and I want to read through it. I know I would use a StreamReader but I don't need ALL of the information from the particular .txt file. How can I read just particular information and store it for temp usage For example, I have an EmployeeSchedule.txt that has more information that just an employees schedule in it. I know the "text" that comes before each part of information I want and I also know the end point for each employee. How can I read that in and store it to say a table until I can create a Crystal Report to show the information collected Thanks for any help, QWERTYtech Okay, so I have my program setup to read each individual line. Ho ...Show All
Software Development for Windows Vista Have you looked at TIP - "Transaction Internet Protocol"?
SCENARIO Suppose I call the following method in a ServicedComponent: public void DoMixedUpdates() { DoDBUpdateA(); DoDBUpdateB(); CallWebService1ToDoDBUpdateC(); CallWebService2ToDoDBUpdateD(); DoDBUpdateE(); DoDBUpdateF(); } All 6 calls perform DB updates but the middle 2 calls call "plain old" ASMX web services that each then call a component that performs DB update C and DB update D. QUESTION On the current shipping versions of Windows Server 2003, does a) .NET 2.0 with WSE 3.0 or b) .NET 2.0 without WSE 3.0 support the "transactional web service" scenario d ...Show All
Visual Basic Cannot create an Excel Spreadsheet from code, please help!
Hello, Im using VB.net in visual studio 2005. I need to create an Excel spreadsheet from the results of a sql query. I am going to try and do this using the Excel Com object and create a workbook, the use ADO to add a query to the QueryTables collection off of the worksheet. First all, if this seems completely wrong or a backwards attempt please correct me. I'm not sure this is the best way to accomplish this task, so any suggestions would be great. Next, I can't compile my code because after I add a reference to my project to Interop.Excel.dll (Microsoft Excel 10.0 Object Library), I get the following error when building: "Interop.Microsoft.Office.Core.dll must be strong signed in order to be marked as a prerequisite." ...Show All
Windows Forms question of ListView,need help
Hi, My ListView control contain a "quantity" column and i need to do the calculation on the total of the "quantity", does ListView control allow me to do it Does anyone know how to write the codes to read the rows which contains the data on ListView control ListView can't calculate that sum for you automatically. One way is too keep the sum value and update it when you fill or update listView items which is better then calculate the sum after the listView is filled. But here is the code for calculating the sum from alredy filled listView: public int CalculateQuantity() { int sum = 0; for ( int i = 0; i < listViewControl.Items.Count; i++) { ...Show All
.NET Development Handles
Hi! I'm using a SysInternals app to check memory values of my program, and and view: Process information for VALERIANO: Name Pid Pri Thd Hnd Priv CPU Time Elapsed Time MyApp 4928 8 48 909 66920 0:08:22.984 13:27:48.140 Hnd is handles, but w hat's a handle I'm looking for its meaning but don't find nothing clear. I don't know if this amount of handles is dangerous or not. Regards. A "handle" is a reference to a Windows object. Any object qualifies; memory, files, pens, brushes, sockets, etc. Having 909 handles in use is okay. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem wih Beta 2
Hi, i was trying GSE beta 1. It was working ok. Now i have just installed Beta 2 and i got problem. When i try to do: m_spriteBatch = new SpriteBatch(GraphicsDevice); i get exception "The method call is invalid." also when i try to run code that we can find in XNA GSE Programming Guide : Use BasicEffect i get exception "Both a valid vertex shader and pixel shader (or valid effect) must be set on the device before draw operations may be performed." in line "graphics.GraphicsDevice.DrawPrimitives...." does any one know how to fix this problems thanks for any help! At least in theory, XNA has always required the card to support pixel shaders. It's vaguely possible that the ...Show All
Visual Studio Express Editions How to delete this registry key
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v hellobob /t Reg_sz /d C:\bobby.exe /f > nul System.Security.AccessControl System.Security.AccessControl.RegistryRights Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim Path As String = "Software\Microsoft\Windows\CurrentVersion\Run" Dim rKey As Microsoft.Win32.RegistryKey = My .Computer.Registry.LocalMachine.OpenSubKey(Path, Microsoft.Win32.RegistryKeyPermissionCheck.ReadWriteSubTree, RegistryRights.FullControl) rKey.DeleteValue( "HelloBob" ) End Sub End Class Is thi ...Show All
.NET Development Problems with running an Access macro in VS 2005
This is the code that I'm using. It worked fine under vb 6 .0, but vs 2005 keeps telling me that the database is readonly and can't be updated. All I am trying to do is to run a macro to export a table out in a text delimited format. The Database is not password protected. AccDatabase = "C:\Access\CostCtr.mdb" AccessApp = CreateObject(" Access .Application") AccessApp.Visible = True AccessApp.UserControl = False AccessApp.OpenCurrentDatabase(AccDatabase, False) AccessApp.DoCmd.RunMacro("EXPORT_RECORDS") AccessApp.Quit Any suggestions Thanks Cathy Nothing obvious here. Your database is local so there shouldn't be a permissions issue. You may want to indicate which line of ...Show All
Visual Studio 2008 (Pre-release) Free .NET 3.0 E-Learning
Microsoft Learning has released 3 2-hour e-learning clinics on .NET 3.0 which are free until .NET FX launch. Collection 5134: Developing Rich Experiences with MicrosoftR .NET Framework 3.0 and Visual StudioR 2005 This collection of 3 2-hour premium clinics teaches about the new capabilities provided by the .NET Framework 3.0. These clinics are for experienced Developers and Software Architects who are looking to adopt Microsoft's next generation technology within their solutions. Topics covered within the collection include: Windows Presentation Foundation Windows Workflow Foundation Windows Communication Foundation Link: https://www.microsoftelearning.com/eLearning/offerDetail.aspx offerPriceId=109340 ...Show All
Visual Studio sql query with CR
Hi, I am trying to produce this with Crystal Report and VB 2005. The problem is that the following sql query works fine in Access, and I could get a perfect report out of it. however, when I trying to use this query in VB, data won't show in the crystal report. I don't even get an error on this code. So, I couldn't figure it out why I don't get the result on Crystal Report. by the way, the result should be 5 distinct records and no field is NULL.( that's what I got from ACCESS) So, would you help me I imported system.data and system.data.sqlclient. all the variables like connection string are already defined. following is just sub of cr load. Private Sub CRV1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CRV1 ...Show All
Windows Forms DataGrid
I would like to populate a datagrid during a forms load procedure... It is a static grid i.e it will always be the same. How do I insert the headers and the data in the columns and rows Thanks Mitch I'm using 2.0 Maybe i can further explain what i am doing this simple program calculate the monthly principal and interest payment for a client.... I get the initial loan amount previously and then as the user to select a value in the datagrid which corresponds to the top row wich is years 5 years,,, 10 years,,, 15 years etc the left colmns is Rate as in interest rate 6.0 61/8,,61/4 etc. the datagrid once initialized will never change the numbers and rows remain constant... ...Show All
