|
i am creating a C# application,the main form has a background image.
i want to put another panel on top but it should be trasparent.
i want to see the back ground image.
how can i make the panel trasparent?
My small attempt...
|
|
|
|
|
Set the panel background color to transparent should do the trick
|
|
|
|
|
but i tried that. but i didnt work
My small attempt...
|
|
|
|
|
i removed the panel and added the label
but the samething happening i cant change it to transparent.
there is an option in backcolour to set transparent but it shows a gray colour only
My small attempt...
|
|
|
|
|
Hello,
I have made a little test project, where it works just fine with the transparent color set to the panel and label!
I know that there a problems with transparency in multiple cases (TransparencyKey, Transparent Color, ...).
If you search the web you will find a lot off peaple sharing the same problem.
One hint could be, that there are some graphic cards (processors) who have problems with transparency in compination with 32 bit Color quality.
So as a quick test you could set Color Quality to 16 bit.
Hope it helps,
Martin
|
|
|
|
|
Change the opacity value.
If your Panel does not support Transparent background (try changing background color to transparent from the properties window ), then you should implement your custom panel using :
this.SetStyle(ControlStyles.SupportsTransparentBackColor | Opaque, true); in your constructor.
Then playing with the opacity value of your control, you can make it as much transparent as you want.
Hope this helps...
|
|
|
|
|
both didnt work
how can i chage the transparency with Opaque?
My small attempt...
|
|
|
|
|
Check this out:
http://www.c-sharpcorner.com/UploadFile/ShrutiShrivastava/TransparentPanelinCSharp11232005015233AM/TransparentPanelinCSharp.aspx
Alpha blending may also help.
Blumen
|
|
|
|
|
its not showing the bacg ground image
My small attempt...
|
|
|
|
|
Hi all,
I have used skmmenu 2.2 version in my sharepoint(2003)project. now when i view the same page in netscape browser 8.1 or Mozilla firefox, the look & feel of the browser drastically changes & the menu seems distorted,in terms of the alignment & css applied to it. The menu works fine for IE 5.5/6.
Went thro the skmmenu documentation as well, but did not come across any mention of browser compatibility.
Would appreciate any kind of help on this issue.
Regards,
Yogesh J.
|
|
|
|
|
hye everybody
i'm beginner in c#
wanna ask u all how to use
PORTACCESS.INPUT in C#
thanx
|
|
|
|
|
This could be a good start.
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hello All,
I have a datagridview control to display information like the file name and file path. The file paths displayed are all long strings and i want them to wrap to the column. To achieve this i have set the follwinf properties:
1) DefaultCellStyle.WrapMode = DataGridViewTriState.True
2) AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
3) AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders
Here i find that the text gets wrapped only if space is provided in the text. I have almost all the file paths with no space and hence the text is not getting wrapped. Please help me out to solve this issue.
Thanks in advance
Thanks and Regards
Madhu
|
|
|
|
|
Hi
I have problem in clearing the grid view. It is binding the old values every time i try to bind any values to the grid.
This is the code i have written to clear the grid view
Private void clearGridView(DataGridView gView)
{
gView.SelectAll();
if(gView.SelectedRows.Count== gView.Rows.Count)
{
gView.Rowsl.Clear();
}
foreach(DataGridViewRow dvConnRow in gView.SelectedRows)
{
gView.Rows.Remove(dvConnRow);
}
dgView.DataSource=null;
}
Can any one help me to solve my problem please
kesavan
-- modified at 3:36 Wednesday 9th May, 2007
|
|
|
|
|
gView.Rows.clear();
Hope this helps...
|
|
|
|
|
Not working. It is binding the old values to the grid. If I bind the new values it is appending the the existing values.
kesavan
|
|
|
|
|
setting the datasource to null should clear the grid.
|
|
|
|
|
Hi All,
how will i find what are the SP,view,tables and class file used the single C# file.
could you plz give the your suggestion.
Thanks n Advance
Rds
Senthilkumar
|
|
|
|
|
search for this in C# articles, I think it'll help, sorry can't provide link, I'm using a very minimalist browser right now
findRefs - find method, property and field references originating from your assembly
|
|
|
|
|
The easy way is to remove the reference to your data layer, and then check all the error messages, to see what they are calling. Or, if your data layer methods are static, just search for the name through the file.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi everybody
i m creating a window's software.i want to add feature of online registration form in it how could i achieve it.please give some clue if possible
send some source code.
|
|
|
|
|
Checkout Updater Application Block from Enterprise Library ( you can download it from Microsoft website )
Also, you can have a look at webservice development to create your webservice, log in, send the encrypted user registration info, decrypt it on web service side, validate, send the result back to your application.
Or, can try .NET Remoting instead of web services.
|
|
|
|
|
fgfdhghgfd wrote: i m creating a window's software. online registration form. send some source code.
Are you okay Mr. fgfdhghgfdfgfdhghgfd??
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
I am getting this error An established connection aborted by the software in
host machine when i try to read the response from the host machine.
I am not getting this error when i run the code in debugging mode
I cant predict the reason.
Thanks in advance
Sakthi
|
|
|
|
|
Hi..
I'm trying to upload a image file to the server using HttpWebRequest/HttpWebResponse.
so i form a Postdata as and storing in a StringBuilder object (sbFormData)..
Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="submit-name"
Larry
--AaB03x
Content-Disposition: form-data; name="files"
Content-Type: multipart/mixed; boundary=BbC04y
--BbC04y
Content-Disposition: file; filename="file1.txt"
Content-Type: text/plain
... contents of file1.txt ...
--BbC04y
Content-Disposition: file; filename="file2.gif"
Content-Type: image/gif
Content-Transfer-Encoding: binary
...contents of file2.gif...
--BbC04y--
--AaB03x--
while adding the image content i read byte by byte and then adding to the sbFormData.
But when i see the sbFormdata's length its not showing exact length. That is not adding the image content's length.
Then setting the HttpWebRequest.Length to sbFormdata.Length..
httpWebRequest.ContentLength = sbFormData.Length;
after when i try to write the sbFormData to the httpWebRequest.GetRequestStream(), i get
Error:
"Bytes to be written to the stream exceed the Content-Length bytes size specified."
try
{
StreamWriter s = new StreamWriter(httpWebRequest.GetRequestStream());
s.Write(sbFormData.ToString());
s.Close();
}
catch (Exception e)
{
Debug.Print("Error in sending data " + e.Message);
}
Please help me..
regards,
nas
|
|
|
|