Hi I created a C# Application about 2 months ago. Haven't really touched done anything to it, other than moving the folder. I re-opened it today and got these warnings.. Warning 1 The custom tool 'ResXFileCodeGenerator' failed while processing the file 'Properties\Resources.resx'. Warning 2 The custom tool 'SettingsSingleFileGenerator' failed while processing the file 'Properties\Settings.settings'. Warning 3 The custom tool 'SettingsSingleFileGenerator' failed while processing the file 'Properties\Settings.settings'. They're just warnings, but unfortunately all the Forms and .cs files in my project cannot be opened, and i receive this error message "The project ______ does not exist in the current directory. It may have been moved, or deleted" I have no idea why i got this message, I haven't really removed anything from the project folder. I always move the filed from my laptop-USB thumbdrive-pc, and it always works. Can anyone help me out? Thanks in advance.
zoroyster
Posts
-
Cannot Load ResXFileCodeGenerator and SettingsSingleFileGenerator -
Getting The Difference Between MonthsHi harini. Thanks for the reply. Ive read the link, but it doesn't mention anything about getting the difference between two dates in months :c Hope you have other references.. tnx!
-
Getting The Difference Between MonthsHi, Im trying to create a C# program that will compute the exact number of months between two durations. This is my code TimeSpan duration = startTime - stopTime; //to compute the difference between days, I use this code int result = (duration.Days); unfortunately it stops with duration.Days.. there are no available methods that will compute the months or years (eg. duration.Months , duration.Years) i tried to compute the days and divide it by 30, but this approach is highly innacurate. Hope you guys can help tnx
-
Wildcard Query using C# and AccessHi, I'm attempting to perform a wild card query using C# and microsoft access. The results will be placed in a data grid. Ive tried using "*" ,"#" and "?" symbols but it still wont work heres my query statement.. daGuests = new OleDbDataAdapter(string.Format("SELECT * FROM Assignee WHERE SN = '*{0}*'", search), conn); daGuests is my data adapter search is a string taken from a textbox.. is there something wrong with my code? im pretty sure theres nothing wrong with my other codes, the daGuests = new OleDbDataAdapter(string.Format("SELECT * FROM Assignee WHERE SN = '{0}'", search), conn); statement works perfectly. Hope you guys can help.
-
C# connection to Lotus ApproachHi guys. Anyone know the connection strings to connect C# application to Lotus Approach databases? (or id this is even possible?) tnx. -zoroyster
-
A simple form sizing problemgot it. thanks! :-D
-
A simple form sizing problemHello How do i modify my C# form in such a way that every time I run it, it will automatically maximize and fit the screen? thanks in advance :-D
-
Counting the Number of Working Daysi knew it wasn't going to be that easy.. haha thanks for the help CPallini. :P
-
Counting the Number of Working DaysHi I'm creating a C# program to measure differences between dates. Ive figured out how to measure the difference between two dates using DateTime and TimeSpan, but is there any short cut way on how I will be able to measure the time elapsed with just weekdays? (meaning saturday and sunday will no longer be counted when measuring the difference) thanks
-
unrecognized zeros in C# string formatHi. I have an auto-increment database field with 5 digits. (example. "00001", "00002", "00003") But every time i query it using C#, and place it in text boxes or in labels, it always removes the zeros, so I always end up with just "1", "2", "3", etc. I'm currently using microsoft access 2003. The error also occurred when I used mySQL. Anyone know how to set form objects to recognize the zeros in the values? Thanks in advance.
-
Date Measurements in C#Colin Angus Mackay wrote:
See the documentation for the DateTime and TimeSpan classes
tnx! :-D
-
Date Measurements in C#Hi, i'm creating a C# program that measures date differences. for example i have 2 text boxes, one text box contains the date 4/12/2007, the other text box contains 5/23/2008. I need to count the number of days difference from 4/12/2007 to 5/23/2008. Im sorta new to C# and i have no idea how to do this, since i cant just treat it as simple numerical values, given that it must reference the calendar for the measurements to be exact. thanks in adavance..
-
How to Clear Contents of a NotePad Textfilexibeifeijian ,code works perfectly! thanks alot xibeifeijian and Keshav!!
-
How to Clear Contents of a NotePad TextfileHi. This is sorta no brainer question for some of you, but does anyone know the C# codes to clear all contents of a certain notepad file? thanks a bunch
-
Reading a specific word/phrase from a linePatrick Sears wrote:
If you can rely on a standard line format, it's pretty easy: string line = "Name: Joseph Smith"; string[] parts = string.split(line, ":"); Then the parts[] array will contain the following strings: parts[0] = "Name" parts[1] = " Joseph Smith" Note the space before Joseph. You could use string.Trim() to get rid of that, or you can modify the split to use StringSplitOptions.RemoveEmptyEntries. I'm assuming you're using C#, here. ------------ Cheers, Patrick
Hi Patrick! thanks for the help. Yes, im using C#, but i received this error "Error 1 'string' does not contain a definition for 'split'" for string[] parts = string**.split**(line, ":"); do i need to import something? thanks again
-
Reading a specific word/phrase from a lineHi Not sure if this was already asked, but I'm trying to find a way to get a certain text (or phrase) from a line in notepad using C# example: (notepad) >Name: Joseph Smith >Address: Main Street I need to get name (Joseph Smith) and the address only, ignoring the "name:" and "address:" so far i only know how to read the entire line, but i have no idea how in the world i can isolate the desired text/phrase Hope you guys can help. Thanks