|
hi,
I want to make css Builder how to make it please help me.
thanks
Wafy
|
|
|
|
|
The first step is to specify what it should actually do.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
We are having a Crystal Report with Unicode data (Indian Language-Marathi) as
an output.The report is getting generated but at line break a word is getting
cut instead of getting wrapped in next line.
We are working with Crystal Report which is a part of VS 2005.
Please suggest the solution either in Crystal or any other Reporting
method/Tool.
Thanks
|
|
|
|
|
we developed windows application using C#,and we created setup file(Using Installer Class also ) for this ,this setup runnig succes fully in my machine ,but problem it was not runnig in Client Machine ,it is showing error " login Failed User is Not Trusted user " . How Can Connect client Sql Server 2005 .Could u Please help me.
|
|
|
|
|
Hi
As regard a Program, How can I Determine An Expire Date By Means Of a Code?
Thanks....
|
|
|
|
|
Hi,
I'm transmitting Live video over LAN by joining multicast group address "224.0.0.1".At client side, for receiving video I used same group address.
I've read that multi Cast range is from 224.0.0.1 to 224.255.255.255 but I tested my server application with max. 3 clients.
Can any one tell me the video which is transmitting at this address, How many systems can preview it.
And what should be hardware constraints
Regards,
Shanzay
|
|
|
|
|
hi frien ,
Iam working on project (windows application) site builder ,
I want to write to css file in specific element or specific class or id
,edit it and read it pleas help me to do it.
thanks
Wafy
|
|
|
|
|
Hi All,
Im getting the error 'index was outside the bounds of the array'
on the line:
Datatable dt = new Datatable();
Can anyone tell me what is the problem here?
Thanx
|
|
|
|
|
i don't see any array here but some code error (maybe mistyping)
Datatable dt = new Datatable(); change to
DataTable dt = new DataTable();
so where is the error raise???
dhaim
program is hobby that make some money as side effect
|
|
|
|
|
Hi i created in my web application dynamically some excel files...,
Now same thing i want to do in windows apllication...,
But there i wont get any web.ui , web.ui.htmlcontrols and webcontrols..,
But using that one only i created excel files in my web application...,
Now insted of that interface what i have to implement it in windows application...,
Its my web app code:
for (int i = 0; i < DS.Tables.Count-1; i++)
{
System.Web.UI.WebControls.DataGrid grid = new System.Web.UI.WebControls.DataGrid();
grid.HeaderStyle.Font.Bold = true;
foreach (DataRow dr1 in DS.Tables[i].Rows)
{
foreach (DataRow dr2 in DS.Tables[i + 1].Rows)
{
if (dr1["MID"].ToString() == dr2["MID"].ToString())
{
if (!Directory.Exists(_path + "\\" + dr1["MID"].ToString() + @"\"))
{
Directory.CreateDirectory(_path + "\\" + dr1["MID"].ToString() + @"\");
string _XLSPATH = _path + "\\" + dr1["MID"].ToString() + "\\" + dr1["Name Of Employee"].ToString() + ".xls";
using (StreamWriter sw = new StreamWriter(_XLSPATH))
{
using (HtmlTextWriter hw = new HtmlTextWriter(sw))
{
grid.DataSource = DS.Tables[i];
grid.DataBind();
grid.RenderControl(hw);
}
}
}
I dont have knowledge about windows...,
Plz guide me
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
I am loading 300 pictures inside the listbox but when i scroll up and down
all the way the memory goes from 32,000k to 689,000k and up and also it doesn't come down.
Form1.cs
LisboxClass lb = new ListBoxclass();
lb.Size = new Size(200, 524);
Form1.Controls.Add(lb);
string[] str = Directory.GetFileSystemEntries(Application.StartupPath + @"\images");
lb.BeginUpdate();
PictureControl picControl;
foreach (string s in str)
{
picControl= new PictureControl(s);
lb.Items.Add(imgcontrol);
}
lb.EndUpdate();
This is how I am drawing Items
Bitmap b = new Bitmap(800, 800);
Rectangle rect = new Rectangle(0, 0, 120, 80);
private void ListBoxclass_DrawItem(object sender, DrawItemEventArgs e)
{
((PictureControl)Items[e.Index]).DrawToBitmap(b, rect);
e.Graphics.DrawImage(b, e.Bounds.X + 40, e.Bounds.Y + 5, 120, 80);
}
|
|
|
|
|
For each image file you load, create its thumbnail in the stream to reduce its memory used, then draw to your listbox. Or you can store that thumbnail in imagelist (as cache) then draw to your listbox.
according your code you have to manage at least 300 object that contains image, but in my opinion i will use one object that manage all 300 image
hope it helps
dhaim
program is hobby that make some money as side effect
|
|
|
|
|
Hi,
your code will rescale the original images over and over, every time DrawItem is called.
This is an expensive operation, both for CPU cycles and memory. I suggest you calculate the
images you need just once, at the right size, and keep those available in each item of your ListBox.
That way, your ListBox will scroll much faster, and your memory footprint will be lower.
BTW: not sure how you observe your memory footprint, it not coming down is not necessarily bad.
BTW2: the Image (and hence also the Bitmap) class offers a Dispose() method, you should call it
explicitly when you are done with the Image (Bitmap) for better performance too. Think of it
as closing a file.
|
|
|
|
|
Hi
please help me abuot pdf expire?
for example we want expire the pdf file (TTL=10 days)
thanks
|
|
|
|
|
What are you trying to do ? You can't expire a PDF file, AFAIK.
|
|
|
|
|
Do I Allocate An Expire Date For a PDF File? (SIMILAR Trial Program) How?
Thanks
|
|
|
|
|
I don't think that a PDF file has any property like expiration date.
If it has, you will probably have better luck looking for it in a different forum, as it has nothing at all to do with C# programming...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi all
I use an error provider in my win form in order to validate some text
boxes value.
My problem is this:if the user input something wrong then the error
provider shows him a
notification,It is logical,but when user correct the value the error
notification is still visible to him
and the user think that he made a mistake again.The same problem is
happened in DatagridView.
what should I do to prevent this?(the error provider disappeared when
user correct his value when he entered)
the following code is a piece of my code which I use:
private void txtName_Validating(object sender,
System.ComponentModel.CancelEventArgs e)
{
if (!IsNameValid())
{
e.Cancel = true;
}
}
private bool IsNameValid()
{
txtName.Text = txtName.Text.Trim();
if (txtName.Text == string.Empty)
{
erp1.SetError(txtName, "Name must not be blank.");
return false;
}
else
{
erp1.SetError(txtName, "");
return true;
}
}
---------------------DataGridView-----------------
void DataGridView1CellValidating(object sender,
DataGridViewCellValidatingEventArgs e)
{
if (dataGridView1.Columns[e.ColumnIndex].HeaderText=="Input")
{
char[] chArray=e.FormattedValue.ToString().ToCharArray();
bool flag=false;
foreach(char ch in chArray){
if(!Char.IsDigit(ch)){
flag=true;
e.Cancel=true;
break;
}
if(flag==true){
dataGridView1.Rows[e.RowIndex].ErrorText = "Invalid Product
Image";
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].ErrorText =
"The file name must end with '.gif'.";
}
else
{
dataGridView1.Rows[e.RowIndex].ErrorText = "";
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].ErrorText
="";
}
}
}
}
|
|
|
|
|
At the beginning of the validation function reset the error for the control by doing the following
erp1.SetError(txtName, ""); // an empty string hides the error provider.
private bool IsNameValid()
{
erp1.SetError(txtName, "");
txtName.Text = txtName.Text.Trim();
if (txtName.Text == string.Empty)
{
erp1.SetError(txtName, "Name must not be blank.");
return false;
}
else
{
erp1.SetError(txtName, "");
return true;
}
}
|
|
|
|
|
Hi,
How can i simplify a path for filexpto.txt?
c:\folder1\folder13\folder137\folder1376\filexpto.txt
..\\folder1376\\filexpto.txt ????
.\folder1376\filexpto.txt ????
how do you do it?
|
|
|
|
|
This won't truncate the path the way you are asking, but it will compact it. You need to call the PathCompactPathEx from shlwapi.dll.
[DllImport( "shlwapi.dll" )]
static extern bool PathCompactPathEx([Out] StringBuilder pszOut, string szPath, int cchMax, int dwFlags);
static string CompactPath(string path, int length)
{
StringBuilder sb = new StringBuilder();
PathCompactPathEx(sb, path, length, 0);
return sb.ToString();
}
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
You can also check out this article[^].
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Hi,
Does anybody knows how to put a form inside a form in a design way?
Like you can drag/move the inside form to any position.
Imagine you have two forms, the diference is that one is inside the other.
(I not talking about transfer data between forms, i know how to use usercontrols too)
It´s design issue, it´s not really importante to me, but anyone knows thanks!!!
|
|
|
|
|
Hi,
I know that you can add a Form to another Control (e.g. a Form) by setting its TopLevel
property false; I have no idea if that is possible in Visual Designer itself tho.
Not sure how useful it would be either, if it has to be part of a Form right from the start,
why make it a Form first?
|
|
|
|
|
It´s not useful, i don´t need it!
I only wanted to know how is done. I saw it in some applications and it looks nice!
|
|
|
|