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

Software Development Network >> Visual C#

Visual C#

New Question

Pass parameter from one program to another
Wrapping Callbacks from Unmanaged c++ in compact framework
Getting Image Source URL
Confusing Error
Bind folder structure to a Treeview
cpp to c# - & operator
Error: "The path is not of a legal form" in C#
Saving Music Files
SqlDataReader in .Net 2.0
Underline text

Top Answerers

Neo_xx
Javafun
Qdshi
rameshkl
Chips_in
Weixiao Fan
bluexx
cplusplus1
Jarodtweiss
glavian
sitemap
Only Title

Answer Questions

  • Will Merydith Checklistbox problem in new domain...

    Hello, I have a window app written in c# that contains checklistbox. I had the statement clearselected() to clear out the checked checkboxes when the user loads the new case... Everything worked perfectly until my users got converted to new domain. Since they got converted to the new domain, the checkbox is no longer cleared out on pageload. Whatever the user selected in the previous case remained checked for the new case. The problem is: the application will not do anything because there are nothing actually checked (the checkedindices collection is actually cleared)! The user either has to shutdown the app or manually uncheck/recheck the items in order to add them to the checkeditem collection. The situati ...Show All

  • Alan Adams Win To Web

    Hi, Is there any way to convert a windows application to web applicatin. i.e. I have a windows appliation, I want to run it in IE. I have heard that using ActivX it is possible. Yes, IE can host ActiveX controls. Now, converting a Windows app to ActiveX is *not* easy. And you need to make sure that the client does allow ActiveX components to be downloaded and activated, realistic only if you control the clients. As long as you're rewriting your Windows app to squeeze it into an ActiveX control, you might as well consider ASP.NET... ...Show All

  • Mark_TheWebGuru win forms needing a bit of help

    Hi im needing a bit of help and i think this is the right place i need my win form to show text from a .ini file when it loads but i need the text from lets say line1 in the.ini file to show in textbox1 like a loadfile dialog with out the dialog thanks cammy9.9 wrote: How can i make it missline 1 and put the text from line 2 in textbox1 and to make it miss the text before the = on that line Thanks you just read the line and ignore it and keep a count of line number as well. I guess another way would be to split each line into a string array: Example: StreamReader theReader = new StreamReader("file.ini"); string[] theLines = theReader.ReadToEnd().Split(Env ...Show All

  • Fistandantilus282303 Difference between isEqualTo() and "=="

    Hi all, I have doubt about difference between == and isEqualTo method in C#. actually, Equals() determines whether the specified object is equal to the current object. http://msdn2.microsoft.com/en-us/library/bsc2ak47.aspx == is for reference types to see if one object references another (other than a string). If its a string, then it compares the values of the strings http://msdn2.microsoft.com/en-us/library/53k8ybth.aspx Well, they should be totally same. With 3rd party classes, this cannot be totally assured, but convensions recommend that class implementers first implement Equals method, and use that method when implementing == operator. In .NET classes, they are all the same. ...Show All

  • Eric Best Call Method by Name

    How do you call(inside the class itself) a method of a class using its string name Something like: for(n=0; n<10; n++) {"MyMethod" + n} Cool! The J# assembly vjslib.dll has some neato stuff as well. Highlights I see are java.math.BigInteger and BigDecimal for arbitrary precision arithmetic, java.util.Random for advanced random number generation and java.util.zip.ZipFile to handle .zip archives... The Microsoft.VisualBasic.dll assembly has the CallByName method . Hope it doesn't turn you off too much but it *is* the power of .NET to have that available. To use it, you'll have to add a reference to the assembly... question - why would you want to do this a ...Show All

  • humble.apprentice Extract image in the WebBrowser control?

    Hello, Is it possible to extract all the images that showed in the WebBrowser control into files Best regards, Eric not entirely. why dont you just use the ShowSaveAsDialog() in the webbrowser control to save the document to disk if you need the images, you need to go through each element/tag and get that image and perhaps use httpwebrequest/webresponse class to download that image and save it. Maybe use something like Document.GetElementsByTagName("img"), which returns an HtmlElementCollection of tags, then go through each one and check either the inner/outerhtml text or something to obtain the url. to make life a bit simpler, once you get the tag/image link, load i ...Show All

  • ClaudiaHelpOnVSTO data restriction

    hi guys, anyone can help, I am writing a program. using c# and i have an access database with a table that has 3 columns: Eg user 1 password1 address1 user 2 password2 address2 user 3 password3 address3...............and so on my system goes like this: user 1 log in with password1... once log in, i have a form which allows the users to change their address and password which connects to the database. my question is: 1) is there any way to restricted user1 from viewing user2 and user3 information in the form, because my database table is binded to the form, therefore, when user1 logs in, he is able to view and edit user2 and user3 information. is there any way to restrict that pls help thanks in advan ...Show All

  • alwayscnfsd Converting a string to an object reference?

    Hey guys, I have a text box thats named texBox1. I need to get this text box's text, of course using textBox1.Text but the problem is the name of the text box is defined by a variable... If MyVariable == 1, then I need textBox1, if the variable is equal to 2, then I need textBox2... etc. So to fix this, I tried converting to to a string; "textBox" + MyVariable.ToString() This works ok, I now have a string of the name of the desired text box. But how do I access its text from a string I'd need to transform it in some kind of reference to textBox1 from the string :s. The only to do this that I can see is String.System.IConvertible but I dont understand its working. So if anyone had any idea how to do this, it would be apreciated. T ...Show All

  • niallhannon Small programm how to write it

    how to write programm as follow : the input : AABATTRSSR The output : ABTRS the program delete the repeated item . please help me Hey John I don't think your algorithm is correct. The requirement is to remove "all" duplicates, yours only seems to remove consequtive duplicates OK Thanks i Tested The last code which contain Regex class which in System.Text.RegularExpressions and this program very good but he is case senstive ,,,, Generally fantastic and soooooooooo thanks Do I win the contest in writing the shortest program for that :D string text = "AABATTRSSR" ; text = new Regex ( "([a-zA-Z])( =\\1)" ).Replace(text, "" ); ...Show All

  • Alex Farber How to create a folder in WSS site(with httpWebRequest)

    I just want to create a folder(say a document library) in WSS site, and I have codes below, they don't work yet, always raise an exception says: 404 not found. Can somebody be kind to help me out Thank you guys in advance. public static void CreateDir_WebRequest() //under working... { string actionUrl = "http://localhost/_vti_bin/owssvr.dll CS=109" ; string referUrl = "http://localhost/_layouts/1033/new.aspx " + "ListTemplate=101&ListBaseType=1" ; string boundary = "----------" + DateTime .Now.Ticks.ToString( "x" ); HttpWebRequest preRequest = ( HttpWebRequest ) HttpWebRequest .Create(referUrl); preRequest.UseDefaultCredentials = ...Show All

  • XPSUser Project Idea

    Hello every one, I have just recently started coding away with C# and decided that this would be a suitable language to produce third year project for my degree course for various different reasons. I am still researching couple of ideas, was wondering if any of you bright people would kindly give me some ideas which will not only be a fun project to work on but something i can learn from. p.s. I have a good understanding of OOP Thanks in advance That is to be defined by yourself, and largely depends on how big your team is and how many years you have to complete it! If you go the web-route, you can have a lot of fun with web 2.0-like experiences like AJAX. If you dont go to the web route, you can hav ...Show All

  • oaix Maintaining an Activity Log over multiple classes

    Hi all, i have a class called ActivityLog.cs and this basically creates a log of whats going on in my console app. i construct it like: ActivityLog Activity = new ActivityLog(); then you use it like activity.log("this is one entry"); and when the program is done you can mail out the log like activity.Email("me@me.com","me@you.com","the log file"); My program uses three different classes, right now the activity log only works with the first, well it will work with all three but only if i construct a new log file for each class, i was hoping someone could help me figure out a way to pass the log back and forth during the execution of the different classes. I am familiar with the ...Show All

  • masood123456789 Button's Transparancy problem

    Hi, I have a problem when i set a button's backcolor to transparent,and the button flatstyle to flat,and setting my form to transparent ,the text on the button looks funny, please help i think it may b a resolution problem or may the button may exceed the size or trasparency Thnx, But how can i fix this pixelization ...Show All

  • rottengeek Form FindForm = new Form();

    hi, does anyone know how id modify - Form FindForm = new Form (); FindForm = this .FindForm(); to accept a form (NewForm) derived from Form i.e. public partial class NewForm : Form this causes an error NewForm FindForm = new New Form (); FindForm = this .FindForm(); Thanks. What you've posted there is a little confusing. Any chance of a bit more of the code, like the definition of the FindForm function Sorry, im new to this! .NET Framework Class Library Control.FindForm Method Retrieves the form that the control is on. Control.FindForm() The function is built into the controls themselves the microsoft sample code supplied is C# ...Show All

  • johngccfc adding single quotes

    Does anyone know how to add a single quote character in the subject line of an email like this "hello 'XXX YYY' " I've tried every thing, escaping a character, character entities etc but all in vain. Please help. Any suggestion would be greatly appreciated. Thanks in Advance Shine I wouldnt understand why you need a backslash on the single quote. It works fine. It's not a special character for C#/Compiler. if you are looking to include quote marks (double quotes) then you need a backslash: MessageBox.Show("\"hi 'XXX'\""); it should work... string theSubject = "hello 'XXX YYY'"; Try this: "hello \'XXX YYY\' " Put a slash before ', during compilation, com ...Show All

424344454647484950515253545556575859

©2008 Software Development Network

powered by phorum