Silviu Guea's Q&A profile
Windows Forms Richtext box Background Image
Hi as a part of my development Project i need to show a watermark image on the richtextbox.(ie) the image should be transparent.in other words the user should be able to view the text with the background image. There is no background image property exposed. richTextBox1.CreateGraphics().DrawImage(objBitmap,-10,0, new Rectangle(0,0,richTextBox1.Width,richTextBox1.Height) ,GraphicsUnit.Pixel ); And Moreover the image should be ...Show All
Game Technologies: DirectX, XNA, XACT, etc. porting to c++
not sure how to do this but heard it could be done, is there a way to use the sampleframe work from the c++ code in a C# app and if so how could this be done Um...why not use the sample framework code that's already written in C# that's in the SDK ($DXSDK_DIR)\Samples\Managed\Common ...Show All
.NET Development Regular Expressions question
Hi all, let say that my string is : /// <author> aaa /// <author> bbb /// <author> ccc 1. how do i match all the authors except author aaa 2. how do i append the string "2006" to the authors names found in #1 Thanks. (Moderator: Thread moved to the Regular Expression Forum and Title tweaked for quicker thread understanding during a search) // Regex Replace code for C# void repla ...Show All
Visual J# ObjectInputStream - cast exception
Hi; I make the call: ObjectInputStream ois = new ObjectInputStream ( new FileInputStream (serFile)); Document correctDoc = ( Document ) ois.readObject(); And get the exception: 1) testTemplates(net.windward.format.wordml.test.TestWordMLParser)java.lang.ClassCastException: Unable to cast object of type 'System.Byte[]' to type 'System.Object[]'. at java.io.ObjectInputStream.fillArray(Object obj, Int32 len, Class elemType) & ...Show All
Visual Basic Database Design advice
Hi, I am trying to design a database for an IT Asset Tracking Management system and so far have added these example tables. I just want to know whether the design is ok or needs to be improved as I am trying to break my tables down as much as possible. The aim is not to store too many ID values in the main tables. Make table MakeID (int), Make (varchar) (This table will store values such as HP,Dell,Fujitsu,IBM etc) PCModel ...Show All
Visual Studio Team System Team Build unable to Run Auto Builds now
For some reason today, when I run a build type (automated build) thru the VSTS Interface. I get the following message back: "Failed to retrieve data from the server. Please verify the network connection and try again." I have no problem building the Solutions manually. Only encounter problems thru the Build Type. I see the following in Event Viewer on the Team Foundation Server log: " An unexpected condition h ...Show All
.NET Development Securing web services without WSE
I'm at the beginning of developing a new web service that will be consumed by a potentially wide variety of clients, ranging from Compact Framework apps to Java apps. I would like some guidance on securing the web service such that consumers will be able to implement the required security protocol quickly and easily. My security needs are simple: I just need to prevent the web service methods from being called by anyone who has not been prev ...Show All
.NET Development My Typed Dataset is Serializable, a single Row isn't?
.NET 2.0 beta 2 Hello Community, I have a .NET Service which is able to return a whole list of Articles (Typed DataSet: ArticleDS including a DataTable ArticleDS.ArticleDTDataTable ) which works great. I have another Service Method which will return all Article Details when i pass in the selected Row (of Type ArticleDS.ArticleDTRow ) - which contains some columns i need to obtain the Details, i get a System.Runtime.Serialization.Serializa ...Show All
Visual C++ How to Copy form CDC dcMem1 to CDC dcMem2?
Hi! I defined a public CDC member(dcMem1) and I Have 2 Function that must used this member.but when I compiled show this error : Debug Assertion Failed! what should I do I think that must to define another member(dcMem2) and Copy from dcMem1 to dcMem2! is this allRight (maybe I'm stupid) It's not clear to me what you're trying to do, but a public CDC as a member variable seems like a bad idea to me. What does it contain What's the d ...Show All
Visual C# Running C# with Crystal
Hi, I need to run a C# application that use crystal reports, but it says that Assemblies is missing Do I need to install something in the server, I have copied the crystal dlls but it does not open the report... Thanks Bruno hi the re, If you are using vs.net, crystal reports component is included in the package of vs.net. Please essure that you include the crystal reports during installation. If y ...Show All
Visual C# Opaque Background on a form
Is there any way to make just the background of a form opaque and not the controls or is it all or nothing if it is possible could you please show me an example of this. Thanks in advance Shane Cavanagh no just the background of the form it self to be semi tranparent but all the controls to be visible and but fully transparent. ...Show All
Visual C++ Running a program?
I have built a program on calculating the area of a rectangle as the user inputs the length and width. It works fine, however, my question is. If I want to send it to someone, what files from the whole folder do I need to send (.zip ). Also, how will they be able to run it, without a compiler. I can easily run it from: C:\Documents and Settings\Peter\My Documents\Visual Studio 2005\Projects\optut\debug however, as I've seen other progra ...Show All
Software Development for Windows Vista TypeConverter not working
Hello, I have a property that is an IPAddress. I set the following dependency property public static DependencyProperty IpAddressProperty = DependencyProperty.Register( "IpAddress", typeof(IPAddress), typeof(PortCheckerActivity), new PropertyMetadata(IPAddress.Parse("127.0.0.1"), new Attribute[] { new ValidationOptionAttribute(ValidationOption.Required) })); Then the property declaration is: [Description(&quo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple DirectX 2.0.0.0 question
I'm wicked confused. the Managed DirectX 9 (v1.0.2902.0) dll doesn't have any XFile handling capabilities. the DirectX v2.0.0.0 has Xfile support but doesn't have ANY documentation support and is much different than 1.0.2902.0. Then i hear both of these are to be replaced with XNA all i want to do is make a managed program that can import Xfiles. MDX 2.0 is not a complete API - its still in beta and since XNA f ...Show All
Windows Forms edit box
how do you set an edit box to read only when a checkbox is enabled(checked) how do you clear the edit box after the values enterd are used by the application and you want to reenter the values Thanks I tried this it did not work void CDSPropPage_PageA0::OnCheck1() { if (m_Check1==TRUE) GetDlgItem(IDC_EDIT1)->EnableWindow(TRUE); else GetDlgItem(IDC_EDIT1)->EnableWindow(FALSE); // TODO: Add ...Show All
