|
I think that even we answered quickly and now we have to wait for him...
What are we simulating here? The lounge discussion board? :->
|
|
|
|
|
So sorry for being late
i have a problem with internet connection
i want to make some thing like simulation questions in the microsoft certicates
thanks so much and sorry for being late
Best wishes
omer
|
|
|
|
|
Your question still makes no sense. What do you mean by simulation questions?
|
|
|
|
|
I think I see. Are you looking to create a system which poses questions in the same way that the Microsoft exams are run? If so, you are going to need to have a database with questions and answers in them.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Sorry that my question was not understood
????
do any one know about the MCSE Questions
there are practise questions called Simulation questions????
in this type of question the student sees some thing like the actual windows interface and he can interact with it as if it is a real operating system
??????????
i want to do some thing like this
???????????
Sorry for second time
i hope it is clear now
thanks!!!!!!!!!!!!!!!
omer
|
|
|
|
|
Bitmap BMP = new Bitmap(60, 32);
Graphics g;
g = Graphics.FromImage(BMP);
g.DrawString("abcdef", font, Brushes.Red, new PointF());
MemoryStream mem = new MemoryStream();
BMP.Save(mem,ImageFormat.Bmp);
Byte[] B = mem.ToArray();
size of B should be 60*32/8
but i got the size is 7734
can i get exact size pls
|
|
|
|
|
JABIR E wrote: size of B should be 60*32/8
No, it shouldn't. It should be 54+60*4*32, which it is.
Each pixel uses four bytes, not a single bit.
The bmp file format is not a raw data file, it is an image file format that has a header (in this case 54 bytes), followed by the image data.
---
single minded; short sighted; long gone;
|
|
|
|
|
So i have this method, that accepts data inputs of various types from a web form...now some of them (if not all) can be left empty...and thus insert nothing. now my coding is not allowing it to accept these empty strings, any ideas?
This is the coding i am using at the moment;
protected void Submit_OnClick(object sender, EventArgs e)<br />
{<br />
try<br />
{<br />
vesselLicense.InsertVslLic1(Convert.ToDateTime(txtRegistrationDate.Text), Convert.ToInt32(txtMartimeRegistrationNumber.Text), txtVesselName.Text, <br />
Convert.ToInt32(ddlVesselCategory.SelectedValue),rblOperativeStatus.SelectedValue, Convert.ToInt32(ddlBasePort.SelectedValue), <br />
txtRemarks.Text, txtPreviousAuthorisation.Text, Convert.ToDouble(txtOverallLenght.Text),Convert.ToDouble(txtWidth.Text), <br />
Convert.ToDouble(txtHeight.Text), txtConstructionPlace.Text, txtCountry.Text, Convert.ToInt32(txtContructionYear.Text), txtShipyard.Text, <br />
txtHullMaterial.Text,txtStructuralRemarks.Text);<br />
<br />
lblMessage.Text = "Data Input Successful";<br />
<br />
Response.Redirect("VesselLicense_Page2.aspx", false);<br />
}<br />
catch (Exception ex)<br />
{<br />
lblMessage.Text = ex.Message;<br />
}
This is the InsertVslLic1() Method used to input the data in the database (SQL Server 200)
public void InsertVslLic1(DateTime regDate, int martimeRegNo, string vesselName, int vesselCategory, string operativeStatus, int basePort, string vesselRemarks,<br />
string previousAuthorisation, double lenght, double width, double height, string constructionPlace, string country, int constructionYear, string shipyard, string hullMaterial,<br />
string structuralRemarks)<br />
{<br />
try<br />
{<br />
DBConnection db = new DBConnection();<br />
db.OpenConnection();<br />
<br />
string _sqlString = ("EXECUTE spA_FSH_InsertVslLic1 @RegistrationDate = '" + regDate<br />
+ "', @MartimeRegNum ='" + martimeRegNo<br />
+ "', @FishingVesselName ='" + vesselName<br />
+ "', @FishingVesselType ='" + vesselCategory<br />
+ "', @OperationalStatus ='" + operativeStatus<br />
+ "', @FishingVesselBasePort ='" + basePort<br />
+ "', @FishingVesselRemarks ='" + vesselRemarks<br />
+ "', @PreviousAuthorisation ='" + previousAuthorisation<br />
+ "', @FishingVesselLenght ='" + lenght<br />
+ "', @FishingVesselWidth ='" + width<br />
+ "', @FishingVesselHeight ='" + height<br />
+ "', @ConstructionPlace ='" + constructionPlace<br />
+ "', @ConstructionCountry ='" + country<br />
+ "', @ConstructionYear ='" + constructionYear<br />
+ "', @ConstructionShipyard ='" + shipyard<br />
+ "', @ConstructionHullMaterial ='" + hullMaterial<br />
+ "', @ConstructionRemarks ='" + structuralRemarks<br />
+ "', @HomePortID ='" + basePort+ "'");<br />
db.RunSQLQuery(_sqlString);<br />
}<br />
catch (Exception ex)<br />
{<br />
throw ex;<br />
}
Any ideas on how i can fix this? thank you
|
|
|
|
|
|
thanks
|
|
|
|
|
still it does not help...i cannot parse all my fields
|
|
|
|
|
First, please use the <pre> tags instead of the <code> tags. It will help the readability of your code sample.
The comment about using the TryParse (or even Parse ) is valid, but it doesn't apply to all data types. The DateTime and numeric (Int32 , Double , etc.) data types should all have both of these methods.
What is the error you get when you try to insert the data? Have you verified that the SQL statement is correct and that the fields are not set to be non-null in the database?
|
|
|
|
|
hi how get month name from datetime picker like if the date is 20/04/2006 I need month as April.....................
|
|
|
|
|
|
And you can use the CustomFormat property to customize how it's displayed.
|
|
|
|
|
hi!
k, i googled it, i CPed it and couldn't find it..
i've got this code:
<br />
CrReport report = new CrReport();<br />
int copies = 1;<br />
bool collated = false;<br />
int pageFrom = 1;<br />
int pageTo = 1;<br />
report.PrintToPrinter(copies, collated, pageFrom, pageTo);<br />
my problem is that i want to print all the pages of a report..
so i'd have to set pageTo to value of totalPageCount of the report..
but in the report object i can't find any property that would give me this value..
anyone knows how to get that totalPageCount value?
thx for any help!!
life is study!!!
|
|
|
|
|
Have search on MSDN?
You have to put value 0 on pagefrom and pageto
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|
|
i need code for
BANK MANAGEMENT SYSTEM
|
|
|
|
|
Try RentACoder. I'm sure Christian Graus will speak of it in glowing terms.
Cheers,
विक्रम
And sleep will come, it comes to us all
And some will fade and some will fall
|
|
|
|
|
We cannot do your work.What is your problem.
As vikram said try with rentaCoder.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
When it asks you for the code, just type "PASSWORD OVERRIDE"
that always works in the movies
|
|
|
|
|
And I want the new 686 processor with onboard Artificial Intelligence.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
but you have to type really really fast, and not actually press the keys, and simulate pressing far more keys than is really necessary...and the font on the screen has to be really BIG and in green - and if you get it wrong it beeps with DENIED in big red letters. Even on a mono display....cool!
And it doesn't matter how many attempts you get, you will always get it on the last attempt, and with only a few seconds to go before you are compromised. And notice how their disks are always formatted, and they never get CRC errors!
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
i need car of type
PORSCHE
|
|
|
|
|
Hi there, is your problem solved I need a car of the type "FERRARI", subtype "SCUDERIA". Thank you.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->ßRÅhmmÃ<-·´¯`·.
|
|
|
|
|