No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
22 Posted Topics
I have two tables in my database - Category and Food. Food has idCategory. Category has id and idParentCategory. From them, I need to create a string which will look like this (or xml): <?xml version="1.0"> <tree id="0"> <item text="Category1"> <item text="Food1"/> <item text="Food2"/> </item> <item text="Category2"> <item text="Category1"> <item … | |
Hi, I am a beginner (not a total beginner though) in C#. I am writing here because I want someone to give me advice on what to program in my free time in order to learn C# more. For example, I know how to zip/unzip files, read/write from xml files, … | |
I get the error "Error 1(E4) "end." or implementation section members (types or methods) expected." Nowhere on the internet I can find information about this error. I get this error because of this line of the AssemblyInfo.pas file: Implementation SomeMethod(); end. I work in Delphi Prism. | |
I have an application in C#, .Net 2.0. I want it to run on Mac. The application has .cs files, .exe etc. What of the file should I put in the .dmg file? | |
I want to create menu structure from a database. For example, the database is the following: id name parent 1 x null 2 y 1 3 z null 4 a 3 5 b 2 The result should be: -x --y ---b -z --a Now, the algorithm I have on mind … | |
I can't catch exception on windows services. I've already tried the following: [CODE]AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(handlerMethod);[/CODE] alone and in combination with: [CODE]Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException);[/CODE] It doesn't even function with: [CODE]Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);[/CODE] I've also tried: [CODE]Application.ThreadException += new ThreadExceptionEventHandler(handlerMethod);[/CODE] | |
I have an application in C#, .Net 2.0. I want it to run on Mac. The application has .cs files, .exe etc. What of the file should I put in the .dmg file? | |
I have a `richTextBoxLog` which is public and static. After I declare it, I start a new thread which initializes new variable named `proba`. `richTextBoxLog` should get the value from `proba`. The problem is, `proba` needs time to be initialized, and I want `richTextBoxLog` to initialize while `proba` is initializing. … | |
I have a richTextBoxLog which is public and static. After I declare it, I start a new thread which initializes new variable named proba. richTextBoxLog should get the value from proba. The problem is, proba needs time to be initialized, and I want richTextBoxLog to initialize while proba is initializing. … | |
[code=c]MailMessage msg = new MailMessage("myAddress@hotmail.com", txtTo.Text, txtSubject.Text, txtBody.Text); SmtpClient client = new SmtpClient("something"); client.Send(msg);[/code] Both the address "to" and "from" are hotmail addresses. Instead of "something" I tried pop3.live.com and smtp.live.com, but they both didn't work. Can someone help me? And I have a second question. If my "from" e-mail … | |
I have a listview with two groups. The code is the same for Windows and Wpf applications, but when I show the listview, in Wpf application, there isn't grouping. Here' the code: [code=c] private System.Windows.Forms.ListView listView1; ListViewGroup group1 = listView1.Groups.Add(fur.GetHashCode().ToString(), fur.GetType().ToString() + " - " + fur.Message); //some more code … | |
How to get video frame width and frame height? I need it for .avi, .mov, .mp4, .wmv. I've tried some links using JockerSoft.Media.dll, and Shell32.dll, but the first one isn't good for .mov and .mp4, and the second one is only for Windows, and I need it for Windows and … | |
Re: [QUOTE=1o0oBhP;78303]if you sort it DESCENDING you can loop through the array subbing the element from the total sum, if the next element causes the result to fall below zero you skip it for example sum = 15 integers: 10, 4, 3, 1 we loop through and take 10 from 15 … | |
I have this code: [code] HttpWebRequest request = (HttpWebRequest) WebRequest.Create(someUrl); request.Accept = "*/*";/////////// request.CookieContainer = cookies; request.Method = sendVerb; request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.Reload); request.AllowAutoRedirect = false; request.KeepAlive = true;[/code] When I'm in GET mode, in this line, the program crashes: [code]using (HttpWebResponse responseData = (HttpWebResponse)request.GetResponse())[/code] The information in the catch … | |
I'm writing an application in C#. I already have not empty .xml file but I want to add new values in it, without deleting some old. I have tried these codes: First: [code=c]FileStream docNewUser = new FileStream(@"C:\\MyApp\\MySubDir\\Data\\" + pr + ".xml", FileMode.Open); XmlTextWriter xmlNewUser = new XmlTextWriter(docNewUser, null); xmlNewUser.WriteStartDocument(); xmlNewUser.WriteStartElement("RootEl");//root … | |
I'm working on an add-in for Visual Studio which works well on framework 3.5 but not on 4. Do you have any idea why would the add-in do this? The add-in is written in C#. | |
When I run my program (which is an add-in for Visual Studio) in Visual Studio 2010, in a wpf application, it opens every .xaml document which is an item of the wpf application. It will be very boring problem if my application would have a lot of .xaml files. I … | |
I should find max in a multidimensional array. But, the elements of the array are given by keyboard, and so is the size of the array. The elements are integers. So, is this correct: ;message for the user to enter the size ;reading the size i equ -1 j equ … | |
Okay, so I have a project activity to find maximum and min elements of a matrix. I kinda know how to make .asm file, but I don't know how to make .exe and .obj. Or are they generating by themselves? How to connect .exe with .asm? | |
The results of an exam are in this order: 72, 40, 94, 18, 80 and are in the data segment. You should write an assembly program which will determine the best result and will put it on location BEST in the same segment that should be defined after the array. … | |
What will be in CH and AH after these commands? MOV AX, 1234 MOV BP, AX MOV DX, 999 MOV DI, DX MOV CH, 222 [bp+di] | |
What would be in registers ax, ah and al after these commands: MOV AX, 1010 MOV AH, 5 ADD AL, 5 I understand that ax contains ah and al but I don't know the answer of this question |
The End.