Answer Questions
SuperJason Casting an enumeration that has a defined type..
public enum foo : ushort { foo, bar } ushort test = foo.bar; Cannot convert from 'Test.foo' to 'ushort' Sure, I can make variable of type foo, but I'm encoding the value to a network stream, so I want it as a ushort. The thing is, I specifically told the compiler the enum is of type ushort, so why do I have to typecast it cgraus wrote: Well, one thing I like about C# is strongly typed enu ...Show All
kadonk how to insert a new line programmatically in a richtextbox control?
in my form load event i want to set \n newline rtb.Rtf = string1 + \n + string2 + \n + string3 the output should look like this: string1 string2 string3 thanks for the example, how about if i want to enter characters or newlines between the appended texts i'm sorry i wasn't clear enough with my problem, what i want to do is to append a Rtf to my rtb.Rtf. rtb.Rtf += rtfToAppend; // this is not working Th ...Show All
emiaj In C# ,is there any similar to "vbCrLf" in visual basic ?
When I manipulate with a string , i dont know the way similar to "vbCrlf" in visual basic . Please help me a little , thank you very much.Maybe its easy for many people here. ahh yeah. . . thats right. . . vbNewLine is platform agnostic . . . right Blair Allen Stark wrote: System.Environment.NewLine Thank you indeed , it works ! Yes, but vbCrLf isn't, so you may or may not want to convert vbCrLf to ...Show All
Klaus-Dieter Addin
Hi to All, I wanna make some Addin in MS.WORD and i am waiting for your help. How can i do this thaks for your Help Considering that this is a C# language forum, you'll be waiting for a long time. There is a newsgroup for Word addin questions: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.word.vba.addins&lang=en&cr=US ...Show All
gregger Image Transparency & Image Files
I am attempting to create a pong remake. I am using graphics i made for the images. The images are surrounded by black. I would like to make it so black in an image shows up transparent. In game speak this is called "Sprite Transparency". I would like to make it so the pictureimage control loads the images from disk instead of "binding" it to the executable. That way my players can simply replace the files with their own to create d ...Show All
phylyp When and how the instance of a singleton object will be disposed..?
using System namespace DesignPattern { class Connection { private static Connection instance; private Connection() { } public static Connection GetInstance() { if (instance == null ) { instance = new Connection(); return instance; } else return instance; } } } Now this is a singleton class .So every consumer of this class will get an single inst ...Show All
JudahR C# --> C++ (malloc not working!?!?)
Hi Using dllImport to call a simple c++ dll. Below is a toy example of what I am attempting. There are several issues with the code you posted. 1) Your function is accepting an array of face pointers. Do you really want to dynamically allocate both the array and the elements within the array It seems like you should instead use an array of face objects. 2) On the C# side you should use an array of face pointers instead of an In ...Show All
Eddie Y How To Execute applications?
In VC++ WinExec() is used to execute any Windows/DOS based application. Is there any similar class or method in C# . if so please tell me how it can be used in an application Regards Shaji Kumar.V.K Hi, You do as follows: You can use the Arguments property to pass the arguments to the app. using System.Diagnostics; Process newProcess = new Process(); newProcess.StartInfo.FileName = ...Show All
zxzqkrbrk Jr. updating the UI with progress bar while Business Layer in process
Hi I'm developing a windows based c# application. How do I update the UI with progress bar while Business Layer in process where my BL is in a seprate Machine in the same network. I tried by placing a thread to update the progress bar and at the same time BL function will also execute. But this doesn't seems to be working properly. can any one sugest any methodolgies for this Regards Karthik how are your app ...Show All
espenhjo create procedure
Peace on you I want procedure writen in Oracle same this procedure in sql server which return record to fill it in DataSet in c#: create proc myproc @log varchar(250) as select * from users where loginname = @log return Pleace write the procedure in oracle return record Bye! peace on you too, you can search in this page scroll down and you will findsome topics about oracle http://msdn.microsoft.com/data/ ...Show All
Nithya Sampathkumar Windows Media Player
Why doesn't version 10 work with Windows 2000 Please give me an explanation and don't tell me to buy Windows XP because 2000 is better. Hi Jimmy, This forum is for questions related to Media Foundation, which is the new multimedia SDK in Windows Vista. For your question, a better forum would be the Windows Media Player newsgroup or WMTalk mailing list at http://www.microsoft.com/windows/windowsmedia/community.aspx It takes additiona ...Show All
laker_42 SDK for software license keys?
Hi, We need an SDK (or a method) for adding license keys for our software. We would like to provide trial versions and paid versions of our software. At this time, it does not need to be very advance, but we would like to restrict usage somehow. Can anybody suggest a good SDK (or way) to do this (Does this kind of tool come with Visual Studio or as a plug-in / extention ) Thanks :-) Thanks ...Show All
Trance Clearing Cookies
Is there a way to clear a specific domain's cookies using WinInet while running Internet Explorer/WebBrowser Component Then just get all cookies by specifying a empty url and then lookup the result, if a cookies doesn't is from a specific domain remove it. You can do this with the methods i supplied in my last post. I actually want to clear all cookies except one from a specific domain. ...Show All
Qdawg Get a list of Delegate on Event
Ok, What I want to do is retreive all the delegate that is attached to an event. Let's say i'm attaching several deletages to a button: IE: myButton.Click += new System. EventHandler ( this .myButtonClick1_Click); myButton.Click += new System. EventHandler ( this .myButtonClick2_Click); myButton.Click += new System. EventHandler ( this .myButtonClick3_Click); myButton.Click += new System. EventHandler ( this .myButtonClick4 ...Show All
serpentara DataSet
Hi folks I'm trying to build an derived Class from System.Data.DataSet as public class MyDataSet : DataSet { public MyDataSet() { } } My problem is that : 1) if i try to install my assembly as it is to toolbox nothing happens 2) if i add [tooboxitem[true] attribute to my class then component installed to tollbox but i lost all extra futures of dataset as Tables and Relatio ...Show All
