sunny123's Q&A profile
.NET Development Remoting
hi, i am building a client server application in which client and server can be on the same machine or they can be in different machines. i am building a windows based application using c# in .NET. 1.) can you suggest me which channel should i use for communication 2.) what to use, client activated objects or server activated objects and in server activated objects, if single call or singleton 3.) i guess the single call activated objects are used when only one client wants to communicate with ther server at a time and singleton activated objects are used when multiple clients can interact with server at the same time. plz correct me thanx in advance Divya If you need to communicate ...Show All
Visual Studio Express Editions How to display a specific part of a RichTextBox content in a textBox?
I receive some data coming from a buffer and display it in a RichTextBox. The data looks like this: --------------------------------------------------------------------------------------- t1 +22.3 * --------------------------------------------------------------------------------------- i would like to only display '22.3' in my textBox. I have tried many different approaches but i really struggle. It might look easy but its not for me as I am new C#. If anybody have a idea, please feel free to help me. That would be great. Thanks Lio Thank you very much jrboddie, your code is working perfectly, your are a legend! Lio ...Show All
Visual Studio 2008 (Pre-release) ServiceHost connection number problem
Hi, i try to create one simple WCF application. For hosting my services I use ServiceHost class. The problem is that i can not create more then ~10 connection. After restarting the "Host" application others ~10 connection will be supports. It seems that the request not even gets to service. How can i resolve it Thanks What is your binding If it's NetTcpBinding then you are hitting the MaxConcurrentSessions throttle. http://windowssdk.msdn.microsoft.com/en-gb/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentsessions.aspx ...Show All
.NET Development Can we sent multiple mail to one or more persons....?????????
Hi Friends, I have a question regarding send mail. We can send a mail to multiple persons . But I need to send multiple mail to one or more than one person . Is it possible in web development If yes, please reply me. Regards, Vijay Modi Hi Ashish, Thanks, How is it possible And so why Yahoo, Msn, Gmail, Rediff, etc.. not providing this type of facility to send multiple mail to Single Person / Multiple Person at a time If this is possible thats the best to forward multiple mail to a single/multiple persons. Please can u give me any link where this happening. Regards, Vijay Modi ...Show All
Windows Forms PropertyGrid Reset context menu
Using the property grid and custom PropertyDescriptors to gather user settings. All works fine - except where is the "Reset" context menu when right clicking a property - as when using the property grid in a designer. Why missing when used in application code I'm pretty sure I'm providing the correct attributes etc. Update: I forgot to look at the PG methods. Use this: private void resetToolStripMenuItem_Click(object sender, EventArgs e) { GridItem item = propertyGrid1.SelectedGridItem; if (item.PropertyDescriptor.CanResetValue(propertyGrid1.SelectedObject)) propertyGrid1.ResetSelectedProperty(); } ...Show All
SQL Server Non value-type parameters in Assemblies/ CLR UDFs:
I am building a simple utitility to be hosted as a database assembly in SASS 2005. This is a .Net Assembly] My method is date dependent and I want to pass in a DateTime rather than a string (globalisation issues.. you know the story). Can I do this and how would I pass this parameter in an MDX query I also want to pass in such thigs as the StorageMode enum etc. Presumably I can pass in the integer value... (kinda defeats the reason for using enums though) Well, it seems that after due consideration I have to answer my own post! I think the problem is that we can only really pass in basic value types via text in queries, essentially strings and numbers. If I really want to pas ...Show All
Windows Live Developer Forums Very Beginner Question
I know that I can use Microsoft maps in my website, or my desktop application . my Question is Is it a must to be connected to the internet to use Microsoft Maps, or it can be cached, downloaded..etc I appreciate your instance reply. Thanks in advance. The 3D control maintains its own data cache, and it's possible for it to operate in a disconnected state. This would only be available if hosting in a managed application as you obviously couldn't get to the web site if you were disconnected. If you are viewing the site and the network becomes disconnected, the 3D control will continue displaying data from the cache until the network becomes connected again. ...Show All
SQL Server Help writing SQL
I want to select records where a column is null, is not null or is equal to a specific number. How do I do this in one sql statement. My application is an asp.net web site with a business logic layer, a data access layer and sql server. Thank you in advance. ...Show All
Visual C# problem with SortedList
Good Afternoon- I'm having a problem using a SortedList to store objects. Here's the example code: public override SortedList derivitives() { SortedList s = new SortedList(); s.Add(xyz,dxdydz); s.Add(uvw,dudvdw); return s; } The code fails during the second Add, with the following error: Unhandles Exception: System.InvalidOperationException: Operation is not valid due to the current state of the object. in System.Collections.SortedList:PutImpl in System.Collections.SortedList.Add in System.Collections.MyClass.derivitives() ... I tried an example code with SortedList and I can Add() as many strings as I want, is there a problem with SortedList holding abstract objects they are all of the same type... thanks, Philski ...Show All
Windows Forms How to add my database to be includen on the setup?
i have my app already finish and know i need to make the installer. im useing visual basic .net 2003 for it. the problem is that i don't know how to include the database file so when the app is install on any other machine the app works fine. I have thebootstrapper plugin and the sql 2005 express to include it on the cd, but when makeing the setup proyect how do i have to make refrence to my database so that when the user install it he just have to install the app and the sql 2005 express nothing more. umm i'm useing sql server 2000 on my project. i'm also useing the Visual Studio .NET boostrapper plug-in to include the dotnet freamwork onto the setup project, its that the same you are telling me to use also i have this tool ...Show All
SQL Server ---PULL replication with SQL Server Express, it is possible whether or not?---
Hello! Question of such plan, to documentation to Microsoft SQL Server 2005 Express Edition it is written, that the given product supports only PUSH replication, however in his{its} structure there is an agent replmerg.exe which description says: replication merge. Synchronization means, that the agent of merge transfers changes from the subscriber to the publisher, and then transfers changes from the publisher on the subscriber … And so the question if this agent is present at this edition, whether that is possible to adjust manually his{its} call, or through Windows the agent, for realization PULL replication or it is impossible and for what reasons Thanks. Windows sync manager is sep ...Show All
Smart Device Development using RichTextBox control.
Hi, Can anybody help me how to use RichTextBox control in Visual Basic Windows Forms device project I am afraid if its still not supported in CF2.0. I am using CF 2.0, Pocket PC 2003 target, Visual Studio 2005, VS settings as per C# project and created a blank windows form. I am not able to see RichTextBox control visible in my tool box. However after checking ShowAll (by right clicking in ToolBox), I am able to see it in "Common Controls" group with disabled state. -Mv There's no RichTextBox control so you can't use it. Look for 3rd party solution instead. ...Show All
Visual Studio Express Editions idiots code book
hi everyone, i am a beginner to vb as are many who post here, i am putting together a book that explains all code statements and explains how they work and what they are doing better then some of the books i have read. i there is anyone who can submit their error mesages and solutions that will be great, also i will be posting all kinds of command questions as i have already done to others on other posts and i would be gratefull for yoiur explanation comments. i want to start with accept changes why do i use it and wehn dio i use it, what is it for thanks hi andrew then you will know what i am wanting to do, this is for my own benefit also, i am finding it hard to undertsand what things ...Show All
Visual C# Passing a method to a method?
I'm trying to abstract my code and I noticed a pattern. I'm sure that this can be done, but have no idea where to start looking for an answer: Say I have the following method: private static void ArrayLengthTest() { if (al.Count > 0) ReserveMedia(); else { NoRecordsMessage(); Console.ReadKey(); Console.Clear(); CreateMainMenu(); } } How would I cleanly pass ReserveMedia() or any other method name I know I could create some switch logic and pass an option, but that would be really klugy. Any ideas/hints would be appreciated. TIA - AbeR You can pass methods as delegates. You'll have to define a delegate type that defines the method's signature. Then, define a method that takes of ...Show All
Visual Studio 2008 (Pre-release) XBAP not loading dll once published.
I usinng the latest .Net 3.0 installations with VS 2005 on a xp sp 2 box. The app is being published to a window 2003 server with the .net 3.0 runtime components installed. When i pull the app in the browser, it begins to act like it is going to work and starts to download the files but it fails and gives me this error in the log: Downloading http://myserver/xbox/XBox_1_0_0_0/XBoxClient.dll did not succeed. - The remote server returned an error: (404) Not Found. What is strange is i can navigate to pull up everyother file in XBOX_1_0_0_0 folder but i can't pull up the dll eventhough it is physically there. TIA Brian *.deploy maps to application/octet-stream. This page explains how to set up IIS for WPF f ...Show All
