Software Development Network Logo
  • IE Development
  • Visual Basic
  • Microsoft ISV
  • Visual Studio
  • .NET Development
  • SharePoint Products
  • Game Technologies
  • Smart Devicet
  • Audio and Video
  • Visual C++
  • VS Team System
  • Visual C#
  • Windows Forms
  • Windows Vista
  • Visual FoxPro

Software Development Network >> Rascal123's Q&A profile

Rascal123

Member List

Rik78
devdev33
Puzzled
Hawkson
nikos_22
mf915
Kent Boogaart
Willem Muller
PK-UK
e_LA
Eric_Sun
Bernd Omenitsch
Khabibulla
Jassim Rahma
molemenacer
hotsauce
dczraptor
adorer
swan_sgp
Bjorn EP Backlund
Only Title

Rascal123's Q&A profile

  • Visual Studio 2008 (Pre-release) Doubt Regarding RichTextBox !!

    hi there, i wonder if there is any possibility of getting the Content of the RichTextBox into a String object or any object similar to. I found that the Sytem.Windows.Forms.RichTextBox has this facility where by using myRichTextBox.Rtf , the Content could be collected into a String object with the codes. _______________________________ string rtfcontent = myRichTextBox.Rtf ________________________________ i would like to get the content into a string rather than into any file. could that be possible..... thanx advance, sris You can use TextRange like this TextRange tr = new TextRange (rtb1.Document.ContentStart, rtb1.Document.ContentEnd); tr.Text would give you text ...Show All

  • Architecture SOA - Transaction/compensation/cordination

    I have a challange. I have multiple services that are located on different server setups. They are build stateless N-tier architectures based on single call remoting. The services do not support the flow of transactions. This would also couple the services an go against the very idea of service orientation. But ..nevertheless, one needs to perform business operations that span multiple services. How do I best support this. Should I have the programmers do custom compensation code very time (clean-up) and accept that if something crashes the data is inconsistant or should I try to find/implement some kind of common cordination What are my choices If you have related se ...Show All

  • .NET Development Why are methods in internal interfaces forced to be public?

    I have an internal interface that I've defined. I've implemented that interface in a class and would like to make the method internal, unfortunately it won't compile, saying that it must be public. Why is this Example: public class A : ITest { // Complains about not being public internal void HelloWorld() { } } internal interface ITest { void HelloWorld(); } So that internal classes can use them. That in fact doesn't work in C# which strikes me as a bug. In works fine in VB: Friend Class A Implements ITest Public Sub HelloWorld1() Implements ITest.HelloWorld End Sub End Class Friend Interface ITest Sub HelloWorld() End Interface I could not find this issue previously reported at ...Show All

  • Visual Studio Express Editions How do I get Len(MyObject)?

    After banging my head against the keyboard for a bit I am now ready to ask a potentially "duh" question like this... According to MSDN (VBE): "With user-defined types and Object variables, the Len function returns the size as it will be written to the file by the FilePut function." Sounds simple, but ... ===================== Public Class DataClass Inherits Object 'Obvious, but getting desperate... Private I As Integer Private S As String Private B As Boolean Public Sub New(ByVal newI As Integer, ByVal newS As String, ByVal newB As Boolean) Me.I = newI Me.S = newS Me.B = newB End Sub End Class . . . . Sub WriteTest ( ) Dim d1 As DataClass = New DataClass(583, "Test string&q ...Show All

  • Visual C# C# HTML/PHP POST Help

    Hi,        My problem is: I have a webpage, with 1 text field, and 1 submit button. I need to enter a URL into the text field, and press the Submit button, all from a C# program. After the submit button is pressed, the webpage will download the file you input (the url), And i need the program to download the file. Webpage info: [Form: action = "site.com/process.php"  method = "POST"  name = "dl"] [TextField: input name = "download"  type = "text"] [Button: value = "Download"  type = "submit]   I have been playing around with this for a very long time,  I would greatly appreciate any help. Thanks in advance, Kyle. ...Show All

  • Visual Basic move, swop, sort

    hello i have written a piece of code, and have obvioulsy done soemthing wrong as it's not working right. it is supposed to sort a list of names and scores into order, but it just repeats the last line, and i don't know why. i'd be greatful for any words of wisdom form anyone out there my code is: Dim Players() As String Dim total, score, handicap, i,HoleNo As Integer Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Listdisplay.Items.Add( "NAME" & Chr(9) & "HANDICAP" & " " & "TOTAL" & " " & "SCORE" ) Players(0) = "Andy" h ...Show All

  • Visual C++ About memory DC

    I wan to scrll on the screen with static control from top to bottom. when do I need create mask Bitmap for memory DC See Windows SDK forum for Windows programming questions ...Show All

  • Windows Forms How do I specify an Icon for a ToolStripControlHost?

    Hi, The online documentation for the ToolStripControlHost.Image property states that "This property is not relevant to this class". My boss has grown quite fond of hosted controls in ContextMenuStrips and keeps sending me design specs where the hosted control appears with an icon in the image margin. I keep telling him that icons are not supported for the ToolStripControlHost class but I don't have a good explanation for him. Is there a workaround for this I've tried to derive my own class from ToolStripControlHost and provide my own Image property but that did not work. Thanks ToolStripControlHost derives from ToolStripItem which has a virtual Image property. ToolStripControlHost is intended only to host other co ...Show All

  • Visual Studio Custom source for connector

    Hello again, In my DSL, I want to create connectors which doesn't connect from a shape but from a compartement of a shape. I couldn't find any explanations so I ask this question here... The reason for this: I have a Component element which has two elements (Contract and Implementation) embedded. In the Component's shape, two compartements are defined for these elements. But there are no shapes added because this would result in a rather ugly mix of many different shapes when many Component elements are added. A Contract element has a reference to an Assembly element and this relationship I want to create via the compartement item and not via a shape. I hope you understand my short overview... Best regards Christian Hi Christina, ...Show All

  • .NET Development Usage of FxCop 1.35 for ASP.NET 2.0 Web site

    Hi all, Can any body help me out in doing Code-design/review through FxCop 1.35 for a ASP.NET 2.0 website as i am not able to do them for my BAL(business access layer) classes and DAL classes coz. it does not create a .NET dll so that i can add them . Regards, sreedhar sreedhar, can you please provide more info. about your problem.... i think is not clear. why don't you just go, right click the web project and hit "Run Code Analysis on Web Site" Rgds Rodrigo ...Show All

  • Visual Studio Tools for Office Community?

    If this is a 'community site', why can I not reply to most of the posts Shouldn't a community site be about starting conversations Hi Scott The forums team posted a forum update yesterday and at the same time cleared out whatever was blocking things. You should be able to post, now with no problems :-) ...Show All

  • SQL Server DBCC MemoryStatus dump and help 'Insufficient memory'

    Hey guys. Today morning at about 9:58am I had an insufficient memory exception in SQL. I've reserved 12gb memory for my SQL server. I've pasted below the dbcc MemoryStatus dump gotten from SQL log. It also gave me a BPool::Map: No remappable address found My SQL Server version is 8.00.2148. Enterprise Ed. Can you see any problems in the below pasted log 2006-08-09 09:58:11.63 spid175 BPool::Map: no remappable address found. 2006-08-09 09:58:11.69 spid101 Buffer Distribution: Stolen=156843 Free=1634 Procedures=17623 Inram=0 Dirty=108669 Kept=0 I/O=0, Latched=1220, Other=1286875 2006-08-09 09:58:11.69 spid101 Buffer Counts: Commited=1572864 Target=1572864 Hashed=1396751 InternalReservation=510 ExternalReservation=130 Min Free=15 ...Show All

  • Smart Device Development SqlCeResultset and Bindingsource

    I have created an entry form by creating a resultset data source (Categories) from a sql mobile database(Northwind), setting the resulset to Details (data source view) and dragging the datasource the form. Now I can easily accomplish navigation using the bindingsource but I don't now how to accomplish the following. If the user wants to add a record, I call the AddNew method of the bindingsource. Now when the user enters a Category ID that already exists I need to set the Bindingsource the corresponding record. I can't use the Find method of the bindingsource since the sqlceresult apparently doesn't support this. I tried using the seek method of the sqlceresultset but then I have no idea how to update the bindingsource to the correct recor ...Show All

  • Visual Studio Load Report Failed

    I have designed a Windows application that has a fairly simple crystal report in it. I created the form, then added the Crystal Report Viewer. I added a report by browseing to my local machine and added the report to my solution. I pass parameters to the report via the following code. I would say that 4 of 10 times I call the report to be opened, it fails with "Load Report Failed". The other 6 times, it works great. This happens on my development machine in debug or from the actual installed package and from a machine that I have done a fresh install of the package. What am I doing wrong. I have downloaded the MSM file from Business Objects and added all, at least all of the files that I think I need to the project. ...Show All

  • Visual Studio 2008 (Pre-release) how to bind enumeration to radiobuttons

    I'd like to bind an enumeration to a list of radiobuttons. I remember from somewhere that I should use a ListBox to achieve this, but I can't find no working sample how this would be done. Can anyone point me to a example Thanks, Sam try this < ObjectDataProvider MethodName = " GetValues " ObjectType = " {x:Type sys:Enum} " x:Key = " odp " > < ObjectDataProvider.MethodParameters > < x:Type TypeName = " l:Kontoart " /> </ ObjectDataProvider.MethodParameters > </ ObjectDataProvider > < ListBox ItemsSource = " {Binding Source={StaticResource odp}} " Name = " q1 " > ...Show All

©2008 Software Development Network