|
Perhaps you can draw it in a separate thread and pass the resulting picture back to be used as a background for the Window?
I are Troll
|
|
|
|
|
Hi for all
im now tring to redirect my project to PHP page from C# APP
and i used these lines (code):
// prepare the web page we will be asking for
HttpWebRequest request = (HttpWebRequest)
WebRequest.Create("http://localhost/d.php");
// execute the request
HttpWebResponse response = (HttpWebResponse)
request.GetResponse();
that executed my program without showing me a PHP page in my browser
and i used these lines also as my code
string targetURL = @"http://localhost/MyPage.php";
System.Diagnostics.Process.Start(targetURL);
and that run true but i prefer the first method to do that
So any help
Thanks in advance
|
|
|
|
|
Hi,
the first method will not open a browser, because you are doing a http-request. This means you call the site like a browser. The second call opens the browser because the operating system will open the browser to handle the command (in this case an url) you passed.
For displaying the php-page within your app you could use the webbrowser-control.
Regards
Sebastian
|
|
|
|
|
Hi All
I'm create a system of medium-sized
I want to be the system of bilingual Arabic and English
I want to do the work Mithod GENERAL Oqo Bmnadadtha screen present in the system
How Ostzia of change in the screen from right to left or vice versa
Has been used following code but all the screen using this code to close immediately after opening
if (Arbic)
{
Form.RightToLeft = RightToLeft.Yes;
Form.RightToLeftLayout = true;
}
else
{
Form.RightToLeft = RightToLeft.No;
Form.RightToLeftLayout = false;
}
thanks
Thaer
|
|
|
|
|
You should look at using Internationalization. This will greatly cut down the work you need to do.
This link[^] has a section on Arabic support. here[^]
|
|
|
|
|
Hi,
Am trying to update a database, setting a datetime value to the value set on a datetimepicker, and every time I try it, I get the following error message
ERROR[HY000][DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Statement not allowed in readonly isolation level (7671)
Is it possible to override this isolation level, and if so, please can someone point me in the right direction of how?
With thanks in advance
Scott
|
|
|
|
|
Does anyone know how to get an thumbnail of an Form thats Minimized
This code works ok when the form is normal or maximum size, but not when its minimized, or anything in front of it.
private Bitmap GetFormImage(Form formToCapture)
{
Bitmap formImage = null;
using (Graphics g = formToCapture.CreateGraphics())
{
formImage = new Bitmap(formToCapture.Size.Width, formToCapture.Size.Height, g);
using (Graphics mg = Graphics.FromImage(formImage))
{
IntPtr dc1 = g.GetHdc();
IntPtr dc2 = mg.GetHdc();
BitBlt(dc2, 0, 0, formToCapture.ClientRectangle.Width, formToCapture.ClientRectangle.Height, dc1, 0, 0, 13369376);
g.ReleaseHdc(dc1);
mg.ReleaseHdc(dc2);
}
}
return formImage;
}
Appreciate the help...
With great code, comes great complexity, so keep it simple stupid...
|
|
|
|
|
You could try showing the form, get the image, and then minimize it again
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
This is not posible... but a good alternative... thanks for the reply...
With great code, comes great complexity, so keep it simple stupid...
|
|
|
|
|
The Form class, like all Control descendants has a ToBitmap method, I don't know if you might be able to make use of that.
I hesitate to expand on my answer, since to me a Minimized Form has no graphical representation to put in an image. When minimized a Form is only shown in the TaskBar, and then only if the appropriate properties are set.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
You are absolutly correct on this, the form has not graphical representation, but how does M$ do it, when you look at vista or win7 thay can make an thumbnail of an window thats minimized... Thanks for the reply...
With great code, comes great complexity, so keep it simple stupid...
|
|
|
|
|
Paw Jershauge wrote: but how does M$ do it, when you look at vista or win7 thay can make an thumbnail of an window thats minimized
If I knew that, I'd probably be working for them. Unfortunately I don't.
However, I have just found this[^], which refers to a SetIconicThumbnail method, which sounds, sort of, like it might be what you need.
Good Luck!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
Hi,
I need to clear all the Control field's - (Radiobuttonlist, Dropdownlist, Textboxes and Fileupload) values on a button click. I am able to do for Radiobuttonlist, Dropdownlist and Textboxes but not able to do for FileUpload control. Can anyone please help me out in this. Thanks in advance
Thanks,
Santa.
|
|
|
|
|
You should:
1. Post this in the ASP.NET forum.
2. Post some code to show what you have tried.
|
|
|
|
|
Hi,
I want to show serial numbers on the row headers and check boxes in the first columns of the grid. Please give me an idea or reffer me to some good article.
Thanks
Syed Shahid Hussain
|
|
|
|
|
Firstly, what sort of grid?
1) A Windows Forms DataGrid ?
2) A Windows Forms DataGridView .
3) A Web Forms DataGrid .
If either of the first two, and they are the only two items of data that you want in your DataGrid , it seems to me that you might be better using a data bound CheckedListBox .
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Thanks Henry,
But I want to make a user control in which I can allow the user to see row numbering and the selection check box. numbering is not so important but check box is keen requirement. And I want to give the check box option in the properties window so that in some cases if we dont want to show check box it will not generated. Iæve in mind that there is onpaint method where I've to write code but how I just want a move.
(This GV will be used very frequently in my appplication so that plz reply soon I wnat to develop it as soon as possible)
Thanks
Syed Shahid Hussain
|
|
|
|
|
I suggest the following search terms for Bingle
1) c# add checkbox column to datagridview
2) c# datagridview row header text
Loads of hits for both. Just pick the ones that fit your scenario best.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hi..all,
We are going to make PDF file from image tiff. Also we have co-ordinate information of the text. Now we want to hide the text in specified position. Is this dll has facility to hide the text in specified position?
Please Help me..
any example would be appreciated..
Thanks,
Raj
|
|
|
|
|
You know the co-ordinate of the text in the image file? then maybe you could try drawing a white box or something over the text on the image, then convert it to pdf.
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Hi,
thanks for your reply..
actually i am using itextsharp.
i am able draw text in specified position by using coordinate but i want to hide that text means the text is show in invisible mode.
when we select the pdf text and copy to text or word he shows there..!!
so if there is any example to how to do this would be great help for me.
Thanks,
Raj
|
|
|
|
|
Hi,
I am trying to pass a datatable as a parameter to a stored procedure. my sql server is 2008.
Also my database transactions happens with the class from enterprise library January 2006.
Following is my code:
DataTable dt = new DataTable();
DataColumn dcol = new DataColumn("Col1", typeof(int));
dt.Columns.Add(dcol);
DataRow dr;
dr = dt.NewRow();
dr["Col1"] = 1;
dt.Rows.Add(dr);
SqlParameter parameter = new SqlParameter("@MenuRights", SqlDbType.Structured);
parameter.Value = dt;
DataTable dtbl = ExecuteDatabaseQuery.Reference.ExecuteQuery_DataTable(ConAdmin, "teststorepro", "teststorepro",
ProjectConstants.QueryType.StoredProc, null, true, null,
parameter);
When the sqlcommand is made and passed for executing, it throws an error
"Failed to convert parameter value to IEnumerable".
Following is the code from enterprise library:
Database db = (Database)CreateConnection(ConnectionName);
if (WriteInfoInLogFile == true && WriteToLogs == true)
{
CLogger.Reference.sLogInfo(ConnectionName, OptionName, oQuery, TypeOfQuery, CLogger.EStatus.StartProcess, LogMsg, CLogger.MsgType.Information, SQLParams);
}
DbCommand cmd = (DbCommand)CreateCommand(db, oQuery, TypeOfQuery, cmdTimeOutMin, SQLParams);
DataSet dstStorePro = db.ExecuteDataSet(cmd);
if (dstStorePro.Tables.Count > 0)
{
int TableCount = dstStorePro.Tables.Count;
for (int i = 0; i < TableCount; i++)
{
DataTable dtbl = dstStorePro.Tables[i];
Boolean HasMsg = GetStoreProMessage.GetMessage(dtbl);
if (HasMsg == false)
{
dt = dtbl;
}
}
}
when the command is passed to db.ExecuteDataSet(cmd); , it throws the above error.
Sandeep Kumbhar
|
|
|
|
|
any solution
thanks
Sandeep Kumbhar
modified on Wednesday, September 16, 2009 12:00 AM
|
|
|
|
|
Hi,
i am developing windows desktop application using c#.net
in my application how can i use google api for searching google ad-sense
please describe me the approach for this
Thanks
Anil Veeraghattapu.
|
|
|
|