Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Momerath

Below you'll find a small program. The challenge is to predict the output of the program, then explain why it gave the output it did. using System; using System.Collections.Generic; namespace Sample { class Program { static void Main(string[] args) { MyStruct a; a.a = 1; a.b = 2; Dictionary<MyStruct, int> …

Member Avatar for f.khansaheb
3
141
Member Avatar for tboctavan

I ran into another problem using if looping. What I want to do, in plain english, is if a variable is one thing (it will be Quit in this case), exit the program. Otherwise, I want it to ask for any other inputs and execute the program. My code: using …

Member Avatar for tboctavan
0
105
Member Avatar for anisha.silva

Hi how do i create a final variable string and send in one parameter to it public static string POISON_PILL = new string("AAA"); when i do this it gives me an error highlighting the 'new string("AAA"); ' error msg: initalizes a new instance of the system.string class to the value …

Member Avatar for Michael27
0
978
Member Avatar for infogirl

Hello, i have encountered with a problem in one of methods comparing string from database to the string named pword that i initialized from textbox. Can anyone know the easiest for begginer to fix it? I would be very very greatful. SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=D:\\Studijos\\c#\\KursinisDarbas\\BazineAplikacija\\BazineAplikacija\\DuomenuBaze.mdf;Integrated …

Member Avatar for PatSharbaugh
0
253
Member Avatar for PatSharbaugh

Earlier today, I was very bored. I set out to see if I could write a program that would solve 24 problems (see [Wikipedia](http://en.wikipedia.org/wiki/24_Game)). Now, I was bored, mind you, and I thought, "Can I solve it in 1 line of code?" NOTE: I do not recomend this approach, it …

Member Avatar for nerdwerd
0
173
Member Avatar for napninjanx

I keep taking the test over and over I get 2 out of 10 correct. I think something is wrong with the test can you list me the answers so I could take it if it's wrong then i can contact the admin and tell him his test is not …

Member Avatar for Momerath
0
254
Member Avatar for tudorH

Hi, So this is my first time creating a web service and I am a bit stuck. This is the code I have used for my web service: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Data; using System.Data.SqlClient; [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] …

Member Avatar for advisor999
0
241
Member Avatar for snkar

I have an object hierarchy that can be represented simplistically like: public class ChannelEntity { ... public properties .... public FramesetEntity Frameset { get; set; } } public class FramesetEntity { ... public properties .... public List<FrameEntity> Frames { get; set; } } public class FrameEntity { ... public properties …

Member Avatar for snkar
0
214
Member Avatar for c#_fem

Hi, I have a problem. I can't display image if it is stored on local disk c. The image class displays images only if there are in the project. For an example this will display the image : Image1.ImgUrl = @"~\image.jpg" But this won't display anything: Image1.ImgUrl = @"C:\images\image.jpg"; Does …

Member Avatar for PatSharbaugh
0
68
Member Avatar for Cameronsmith63

Hi All, Is there there a way for me to add a portable database to an application? In other words, i want to install my application on a other pc, then during install, the database must be stored or installed somewhere on that pc. Im just thinking of sorting this …

Member Avatar for skatamatic
0
109
Member Avatar for celop

how can i build a formal context table based on data that i get from a text file using c#? i can just browse the location of the data but dunno how to create a table of formal context based on that data. below are the data: 1 5 1 …

Member Avatar for celop
0
102
Member Avatar for lena20

Hi, I am writing some data to a particular xml file .There is one element for which the attribute value contains & , eg : XmlAttribute value=doc.CreateAttribute("Value"); Element1.SetAttributeNode(Value1); Value1.Value="&quot;"; Output: <Element1 Value="&amp;quot;"> What is the escape sequence for printing an & in an xml file ??

Member Avatar for lena20
0
171
Member Avatar for abathurst

Hi, I need some help extracting information from a XML file. So far I am able to extract data from elements that look like the following: <element1>Element Information</element1> <element2 attribute=”Element 2 Attribute Information” /> But I have come across an element that has got me stumped: <element3><![CDATA[Information that I need …

Member Avatar for PatSharbaugh
0
270
Member Avatar for nicewave

Could someone tell me why I get the error "Operation failed:Index and lengt must refer to a location within the string Parameter:Length". It happened at this line: TheDataGridView.Rows[j].Cells[i].Value = tmpStr.Substring(0, 709); tmpSize = g.MeasureString("Anything", tmpFont); RowsHeight.Add(tmpSize.Height); tmpSize = g.MeasureString(TheDataGridView.Rows[j].Cells[i].EditedFormattedValue.ToString(), tmpFont); if (tmpSize.Width > 710) { string tmpStr = TheDataGridView.Rows[j].Cells[i].ToString(); TheDataGridView.Rows[j].Cells[i].Value …

Member Avatar for Momerath
0
262
Member Avatar for Angel78

So I have been working on this dice roller for a while but am stuck. My form looks like this, a comboBox1 where you can pick numberOfSides on the dice, a textbox1 where you type the numberOfTimes it shall roll the selected dice, a button1 and a richTextBox1 to display …

Member Avatar for PatSharbaugh
0
1K
Member Avatar for suneye

hello, I am using a microcontroller that will give me a signal through serial port. I need to read data from serial port and eventually fire an event in my program. any one has an idea how this can be done?

Member Avatar for PatSharbaugh
0
72
Member Avatar for nicewave

I've a datagridview shown, I would like to change the font of that row to bold when a user hover over any cell on that row. I know I can use the rowenter and rowleave but some how it changed the font bold to the whole grid not just the …

Member Avatar for PatSharbaugh
0
2K
Member Avatar for Behseini

Hi, I have a very simple app which is changing a panel backcolor by user input "txtCustomColor" I know how to use the text box keyDown event as you can see private void txtCustomColo_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { panelCustom.BackColor = Color.(txtCustomColo.Text); } } As you …

Member Avatar for PatSharbaugh
0
102
Member Avatar for PatSharbaugh

Earlier today, a colleague of mine came to me with a question. He was writing Unit Tests for a serialization utility and needed to compare the generated xml with the hand written xml file which was the expected result. By eye inspection, the xml seemed to be the same, but …

Member Avatar for PatSharbaugh
0
2K
Member Avatar for eoop.org

Hi, how do i make my webbrowser look like google chrome. With that i mean how do i make the tabs look like in google chrome? Waleed Ahmed

Member Avatar for eoop.org
0
146