|
Hi Sourie,
u can use the following..
dataGridView1[e.ColumnIndex, e.RowIndex].CellStyle.Format = "HH:mm:ss"
Not sure about the synatx but it will be just like the above
Cheers
Hem
|
|
|
|
|
Hi Hem,
I used this syntax:
DataGridView1.Columns[6].DefaultCellStyle.Format = "hh:mm:ss";
but its output is the same for both "08:35:00 AM" and "08:35:00 PM"
what is your suggestion?
Sourie
|
|
|
|
|
Finally I found it:
DataGridView1.Columns[6].DefaultCellStyle.Format = "hh:mm:ss tt";
Thanks alot
Sourie
|
|
|
|
|
hi,
I have to find the width and height of each character using xpsdocument fontfiles using c#.
how to find? plz reply...
|
|
|
|
|
hi,
While using MSCOMM in sending data at 10hz continously the communcation breaks between sender and reciever.The sender in .Net Application and receiving end on Linux System in C language.
I am using .net frame work 1.1.Can anybody tell what is the reason
|
|
|
|
|
Hi,
I want to create Slope like curve in Rectangle using Gradient ? how can i draw that shape ?
Thanks,
Ramesh M
|
|
|
|
|
Hi all,
I ve a desktop application in c#.
I want the application to start automatically when computer starts.
and during the Execution of the appication,
user should not access other prgrams in anyway ...
(i have windows XP, during execution of application OS functions should be completely hidden,
Even user cannot shutdown it from menu. PC should get shutdown when application gets closed)
How can i achieve this...
Thanks in advance...
Regards,
SIFAR.
|
|
|
|
|
your requirement looks like a virus program...
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
Or an info kiosk. Or a restaurant order management application.
|
|
|
|
|
Change the shell from explorer.exe to your program.
|
|
|
|
|
If its a Legal Program, just make it a Service and let it run automatically when you Computer starts
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Yes, it is a legal application,
But the user may be a non-technical person and he will be allowed to change only some settings in the application.
I ve made a Windows service in my application,
Service also starts with the Computer,
But how can i run my application from Windows Service?
( i wrote, OnStart event of Service and i used System.Diagnostics.Process in it but it did not work)
??????
|
|
|
|
|
|
There is a program available that essentially turns the computer into a kiosk, allowing only specified program to run, and other things like that. I don't remember the name of it, but google "windows kiosk software" and see what you come up with.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I GOT THE SOLUTION :
i gave my exe path in below registry. READ CAUTION
DO THE CHANGES CAREFULLY.
********************
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\Shell
********************
if system is not there then create it.
>>>> CAUTION >>>>>
DON'T FORGET TO GIVE AN OPTION TO CLEAR THIS SHELL VALUE IN YOUR EXECUTING APPLICATION.
OTHERWISE YOU WILL NOT GET BACK TO NORMAL MODE. EVEN IN SAFE MODE ALSO IT WILL START
THAT EXE ONLY.
Have a great time
|
|
|
|
|
How do i process a german cultured Excel file. My code is able to handle en-US
Technology used ASP.Net C# .Net 2.0
Thanks in Advance
Pete
|
|
|
|
|
Hi Pete,
Can u explain what you want with excel? Do u want to insert the data in DB(SQL/Oracle).
Thanks
Hem
|
|
|
|
|
Hi Hem
Thanks for reply.
yes, i need to read the Excel file. and process the data in the same.
when i try to read all data as text, Numbers with german format are of great trouble.
Is there any way to detect the clients culture and process the file?
waiting for the valuable reply
Thanks in Advance
Pete
|
|
|
|
|
|
I am using the following setting in the web config.
globalization requestencoding="iso-8859-1" responseencoding="iso-8859-1" culture="en-US" uiculture="en-US"
Do i need to mention the same again in each page????
Thanks & Regards
Pete
|
|
|
|
|
To set the UI culture and culture for all pages, add a globalization section to the Web.config file, and then set the uiculture and culture attributes, as shown in the following example:
<globalization uiCulture="en-US" culture="en-US" />
|
|
|
|
|
To set the UI culture and culture for all pages, add a globalization section to the Web.config file, and then set the uiculture and culture attributes, as shown in the following example:
<globalization uiCulture="en-US" culture="en-US" />
|
|
|
|
|
hi all,
I want export the pdf file.and I am using following code.In my system .But an error is displaying like adobe readercould not open 'down.pdf' because it is either not a supported file type or because the file has been damaged...
DataSet Ds = FillGrid2(sessionvalue, cid, cmid, crid, pid, sdate, edate);
Response.Clear();
Response.AppendHeader("Content-Type", "application/pdf");
Response.AppendHeader("Content-disposition", "attachment; filename=Download.pdf");
string str = "<table style='border:1px solid #000000;'>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Client: </b>" + client + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Campaign: </b>" + campaign + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td colspan='5'>" + "<b>Report Summary</b>" + "</td>";
str += "</tr>";
str += "<tr>";
str += "<td>" + "Type" + "</td>";
str += "<td>" + "Impression" + "</td>";
str += "<td>" + "Clicks" + "</td>";
str += "<td>" + "Start Date" + "</td>";
str += "<td>" + "End Date" + "</td>";
str += "</tr>";
for (int i = 0; i < Ds.Tables[0].Rows.Count; i++)
{
str += "<tr style='border:1px solid #000000;'>";
for (int j = 0; j < Ds.Tables[0].Columns.Count; j++)
{
str += "<td>" + Ds.Tables[0].Rows[i][j].ToString() + "</td>";
}
str += "</tr>";
}
str += "</table>";
Response.Write(str);
If anybody knows please reply me..
thanks...
Raaj
|
|
|
|
|
Maybe I misunderstood, but are you assuming that writing HTML code and setting the content-type to 'application/pdf' will give you a valid PDF file? That's totally wrong!!
You should use a PDF library for that. I recommend PDF Sharp, which is free.
Also, use the StingBuilder class if you want to append characters to an existing string. It's far more efficient.
|
|
|
|
|
Hi,
I have 1 form with 10 userforms inside, that i use as pages.OK
take a look on this!!!
(coding is the same kind in all userforms, but not the same,ok?!)
in form:
private void Form_Main_Load(object sender, EventArgs e)
{UserControl_DriverPage_Child.Event_DriverPageInfo += new UserControl_DriverPage.Delegate_DriverPageInfo(Page_Info);}
protected void Page_Info(string msg)
{ToolStripStatusLabel_MainInfo.Text = msg;}
in userform:
public delegate void Delegate_DriverPageInfo(string msg);
public event Delegate_DriverPageInfo Event_DriverPageInfo;
now in the same userform(or others) i place this inside routines
that handle events such like button_click,textbox_textchanged, etc
Event_ConstructorPageInfo("OK: constructor added");
this stuff is so wierd that works in some userforms routines others
don´t. I get this exception:
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
...bla bla bla
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|