|
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
|
|
|
|
|
You are setting the content length to the number of characters in the string, but that is not the same as the number of bytes that the string uses when encoded. You have to encode the string first to get the size of the encoded data.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanx.. I got it..
|
|
|
|
|
Hi all,
I am having a application which i have to use a stored procedure to create it also the stored procedure requires two parameters (year and month is the criteria for the report).
please help me how to do this.i have a poor knowledge in Crystal reports please help me.
Regards
Ruwandi
rkherath
|
|
|
|
|
hi,
how to create an autoincrement id to be displayed on a textbox? the id will then be stored in the database table...
i have already created my code for that problem but it behaves differently.it behaves like this...if the current value of my pur_requestid in the table is null, then there would be no value displayed in the textbox. but if i inserted a value like 1 then when i execute my program the textbox receives 2.
i want my textbox to automatically display 1 eventhough i will NOT insert a value on my table.
my code that behaves differently...supposed to be the event being fired is when the user clicks the button NEW a purchase request id will be generated..
private void button7_Click(object sender, EventArgs e)
{
MySqlDataReader reader = null;
try
{
String query = "Select last_insert_id(pur_requestid) as lastinsertedid from purchaserequest where lpur_requestid = null order by pur_requestid desc limit 1";
MySqlCommand command = new MySqlCommand(query, connection);
reader = command.ExecuteReader();
if (reader.Read())
{
currentId = reader.GetInt64("lastinsertedid");
currentId = currentId + 1;
textBox1.Text = currentId.ToString();
}
}
catch (MySqlException mse)
{
MessageBox.Show(mse.Message);
}
finally
{
if (reader != null)
{
reader.Close();
}
}
thanks, hoping for your reply...
regards
-- modified at 22:59 Tuesday 8th May, 2007
jing
|
|
|
|
|
Hi,
I am binding a gridview to an objectdatasource
The gridview consist of columns and contains one CustomerId which is hidden (with datakeyname = "CustomerId")
In objectdatasource, here is the code
<asp:objectdatasource id="ObjectDataSource1" runat="server"
="" enablepaging="True" maximumrowsparametername="PageSize" selectmethod="AA_Paging_GetCountry" typename="admin" startrowindexparametername="StartRow" selectcountmethod="AA_Paging_GetRowsCount" oldvaluesparameterformatstring="original_{0}" conflictdetection="CompareAllValues" updatemethod="AA_Paging_UpdateCountry" onupdating="AA_Paging_OnUpdating" ondeleting="AA_Paging_OnDeleting" deletemethod="AA_Paging_Delete">
<deleteparameters>
<asp:parameter name="CountryId" type="Object">
So in my code behind:
public void AA_Paging_OnDeleting(Object source, ObjectDataSourceMethodEventArgs e)
{
if (selected == null)
{
//NEED ANSWER HERE TO ACCESS THE SELECTED DATAKEYNAME OR SELECTED CUSTOMERID TO FURTHER
//PROCESS THE LOGIC, AND IF IT LEADS TO CONDITION SO I CAN CANCEL THE DELETE OPERATION
//cancel delete operation
e.Cancel = true;
}
}
|
|
|
|
|
I have a simple xml file that displays a card file like in a Library. Each card has only one attribute, the index number. The cards are displayed in a treeview and when a use selects one I need to display the card's content in a window.
The problem is that I don't know how to access a single element by referencing the attribute "number".
Xml file:
<cardfile>
<card number="0">
<front>This is the front of card 1.</front>
<front>This is the back of card 1.</front>
</card>
<card number="1">
<front>This is the front of card 2.</front>
<front>This is the back of card 2.</front>
</card>
... etc.
</cardfile>
Thanks,
Mark
|
|
|
|
|
@ is the symbol used for attributes in an XPath. I think it's someting like "/cardfile/card[@number='0']"
The W3C website has excellent XPath tutorials on it.
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 )
|
|
|
|