It appears that you're too stupid for this task. If this is paid work, you are a thief. If it's homework, talk to your teacher. If it's your own project, buy a damn book and read it, and start with reasonable tasks.
It reminds me that, longtime ago I took TCP/IP (Networking) programming class.
The instructor gave us a FULLY working code, and explicitly told what line of code to change and how to change it. The only hard part was, he gave a printed out paper and asked us to type it. His thought was as the students type it, they will understand the code.
The next week, about 50% of the class could not do it . literally his jaw fell to the floor. I don't understand why even they go to school.
In my year 11, our maths teacher gave us the exam and said, this is it. I will just change the numbers on the day. We were able to spend a month in class doing this exam, asking him questions. The exam was out of 120, and if you got 100-120 out of 120, you got 100%. You had a 20 point leeway. A lot of kids still failed. So, people have been dumb for a long time.
Here in Massachusetts, In the late 90's students were required to pass Comprehensive Standard Test in order to graduate high school.
The first year they had a pilot test, many students failed the exam. There were (and still are) many schools with large number of students who fail the test. A local newspaper published school by school test results and someone brought the paper to work. We were going through the list, which was very grim.
One of the senior engineers ( he was a bit old too ) laughed hysterically and then said, "I am so happy, this test result tells me my job is secured for life. I don't feel threatened by this kids coming off school and taking my position."
Look, before you start implementing something, give it sometime and RTFD. It is well documented. Before you start working on your C# application, interact with ImageMagick from the command line. Once you figured out everything you need then start coding.
If you have specific question, I am sure will find it in the documentation.
I have a datagrid and I want to populate it from the tables in MS Access. Also I want to get the combination of different columns from the 3 Tables and populate them by providing my own column names in DATA GRID.
Connect to the database and get data into a dataset. All you need is a query to get the data from all the tables into one. (I am suspecting Union or join like scenario here.)You do have options of having your own column names. A bit of search in the documentation will help you.
Time is the best teacher; unfortunately it kills all of its students.
I am developing an application on Win mobile 5.0 emulator in C# using Visual studio 2008.
Can anyone let me know how to write an SQL statement in C# which returns the row count?
Is the parameter required to store the count value?
I will be greatefull if someone helps with the code snippet for the same.
I have tried the following code for the select statement(the select stmt does not return the row count value) and is working fine.
SqlCeDataAdapter adap = new SqlCeDataAdapter();
String connstring = @"Data Source=Program Files\signup\signupdb.sdf";
conn = new SqlCeConnection(connstring);
comm = new SqlCeCommand();
comm.Connection = conn;
comm.CommandText = "select * from signuptbl where username =@uname";
SqlCeParameter para = new SqlCeParameter();
para.ParameterName = "@uname";
para.Value = uname_in;
adap.SelectCommand = comm;
System.Data.DataTable dt = new DataTable();
psw1 = dt.Rows.ToString();
What changes should be done in the above code for writing a select stmt the return the number of rows selected?
I am developing an application that reads a DES encrypted password generated using Java in a properties file and decrypts it, using DESCryptoServiceProvider. I am provided with the key string originally generated with Java using DES.
Does anyone have an example or sample code that converts/uses a Java generated key to decrypt a Java generated password in C#? After removing the dashes, I get the "Specified key is not a valid size for this algorithm" exception.
I've tried both of these lines of code and get the same error:
Could anyone tell me how to setup orientation to landscape, and datetime , and tabname in footer when user print the excel sheet by default. i am sending my excel code.Could any one tell what i need to do i search in google but no luck I need In C#.
this works fine when u want working with a one TableAdapter. for multuple tableAdapters, u need extend each tableAdapter class for supporting Transactional operation.
In my scenario : i'm dealing with multiple tables (insert,update or delete to/from multiple tables) within a single transaction and i think above method does not correct for this operation. look at this code sample :
CustomersTableAdapter tableAdap = new CustomersTableAdapter() ;
SqlTransaction tableAdapTran = null;
SqlConnection tableAdapConn = null;
OrdersTableAdapter ordersAdapter = new OrdersTableAdapter();
SqlTransaction ordersAdapterTran = null;
SqlConnection ordersAdapterConn = null;
tableAdapConn = tableAdap.OpenConnection();
tableAdapTran = tableAdapConn.BeginTransaction();
ordersAdapterConn = ordersAdapter.OpenConnection();
ordersAdapterTran = ordersAdapterConn.BeginTransaction();
// What i must write here ?
can anybody help me about this issue ?
Note : i don't want to use TransactionScope class.
Could not load type 'RCH.BL.EMR.PatientEmergencyContacts" from assembly 'BL, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null"
Please bear in mind the reason this is annoying is because every other use of the same assembly BL.dll works perfectly fine and when I document that line the whole things work like clock work.
Governorates = new RCH.BL.Asclepius.JordanGovernorates().GetAllFromDB();<br />
PatientNationality = new RCH.BL.Asclepius.Nationality().GetAllFromDB();<br />
NumberFormats = new RCH.BL.Asclepius.NumberFormat().GetAllFromDB();<br />
//Contact Information Type<br />
InformationType = new RCH.BL.Asclepius.ContactInformationType().GetAllFromDB();<br />
//rate of stay<br />
PatientRateOfStay = new RCH.BL.Accounting.RateOfStay().GetAllFromDB();<br />
//Emergency Contacts<br />
EmergencyContactsBL = new RCH.BL.EMR.PatientEmergencyContacts();//this is the one that's causing the gates of hell to open and unleash the demons<br />
It's clean code, and that way you can spot it when something doesn't match the pattern. Unless you have seen the code often, then the brain starts filling in the holes with the things that it expects to see..
I are troll
Last Visit: 31-Dec-99 18:00 Last Update: 3-Oct-23 11:57