|
You might want to take a look at the AutoScroll property of the form itself as this provides the functionality you're looking for.
|
|
|
|
|
well thanks. i got it.
Keshav Kamat
India
|
|
|
|
|
i need a function like it sholud delete all special characters and spaces in the given name ony a to z and numbers 0 to 9 has to come plz help me out
suresh
Suresh.R
|
|
|
|
|
Hi,
Use the ToCharArray method of the string and check whether each of the characters is numeric, special character or something else... as simple as it sound to be.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Use a regular expression -- [a-z][0-9]
only two letters away from being an asset
|
|
|
|
|
Hello,
I'm trying to write a binary file stored in Access DB (an exe) and when I'm writing it I'm getting something like "binary binary binary..." before the real file content and therefore I'm having the file corrupted.
Please help.
|
|
|
|
|
Hi,
I think somewhere in ure code u are writing ToString() with the variable containing the binary data.
Post ure code to see what's wrong.
HTH.
|
|
|
|
|
Hi,
I am using VS 2003 and create a multi file assemble dll using csc /t:library /out:mydll /addmodule:M1.netmodule,M2.netmodule
the application works fine but I can not use in my IDE namespace.classname.memberfunction
to show what libaries and memeberfunctions(arguments) I can use in the dll like in a sigle file assembly. Anyway to get around with it?
Thanks
|
|
|
|
|
Hi,
Is there any possible way to format the column headings of Dataset in C#? Formatting in the sense, making the column headings as bold or setting the column width etc? Any help in this regard is greatly appreciated.
Thanks in advance.
Meeram395
|
|
|
|
|
raja_raman wrote: column headings as bold
I think you can set datagrid properties to do this
|
|
|
|
|
Hi Rajaraman
DataSet is a class, instance of DataSet just can hold values which is different from how you are going to display.
Massaging of look and feel is purely depends on the application type (Web, Windows or others)
In web application you can use styles and in win forms either by properties or overriding paint method of the controls.
M.Sendilkumar,Thomson,Bangalore,India
|
|
|
|
|
Dear All,
I want to draw a circle generation using the center point and a radius.
Can anybody suggest a good algorithm r code to compute the values and later will convert to motion to draw in a paper.
Thanks in advance
|
|
|
|
|
You can just use trig to calculate the pixels. Why can't you just use the API that draws a circle ?
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 )
|
|
|
|
|
After i compute the values which generates circle i will transform into motion control signals to move the x & y motors in a circular form.
|
|
|
|
|
Hi,
I have written an Excel VBA application which has a number of sheets
with a grid of horizontal and vertical values. For example, one sheet
has 200 people horizontal cells and 300 vertical cells. Each of the
200x300 cells may have a value, which may be text, checkbox or
combobox. There a number of sheets relating to people, with the
vertical cells on each sheet relating to different categories.
I want to replicate this grid behaviour in both a WinForms and a local
ASP.NET application.
I would prefer to only use Excel when the user wants to export the
results back to a spreadsheet and not in the data updating process.
I see that there are a few spreadsheet controls out there (like
spreadsheetgear.com) that allow users to use an Excel-like control
inside a WinForms or ASP application. These controls do not allow
check boxes and combo boxes in cells.
Also, places like telerik.com sell all sorts of controls, including
grid controls which look useful.
I wanted some advice about what people think is the best way of going
about this task, preferably with examples or links. Links to
commercial controls are ok, as well as codeproject links.
Regards
excelthoughts
|
|
|
|
|
Hello All,
I need to create a template field in gridview with table of one column repeating as 5 columns. Any ideas and suggestions guys. Cheers, Shilpa.
Something like this.
ProductImage productImage productImage productImage productImage
ProductName ProductName ProductName ProductName ProductName
Price price price price price
I have tried this in templatefield of gridview but the data is showing as one column
" width="100" height="100" border="0"> | | $<%# Eval("Price") %> | | <%# Eval("ProductName") %> | |
protected
void DisplayProducts(int cid)
{
DataSet ProductList = new DataSet() ;
string cmd = "StoredprocedureName" + cid;
ProductList = a.SelectDSQuery(cmd);
GridView1.DataSource = ProductList;
GridView1.DataBind();
}
Thanks in Advance for your help. Best Regards
|
|
|
|
|
sorry this was supposed to be table of 5 columns and 3 rows but its not shown properly
ProductImage productImage productImage productImage productImage
ProductName ProductName ProductName ProductName ProductName
Price price price price price
Thanks in Advance for your help. Best Regards
|
|
|
|
|
try writing snippet for it..
life is study!!!
|
|
|
|
|
My main Form (and only one) gets a packet of data and has to process it, then update textboxes, labels, etc on the form. It a lot of code(but not cpu intensive) so I'd like to put the processing code into another class but I don't know let the class get access to the main form's textboxes, labales, etc when that helper class needs to update the main form.
Always gracious for your help.
|
|
|
|
|
Make the helper class a private class of the main form. Have the main form create an instance of the helper class passing itself to the object as its "owner." The private class can access the form and do what it needs to do to update the controls. When it comes time for an update, the form can call an "Update" method on the child object.
However, an approach that's just as good in these situations is to keep update code in the main form class only factor it out into its own source code file. Use C#'s partial feature to seperate it out. In my opinion, this helps modularize the code without the need for an extra class. In some situations, you do actually want to factor functionality into a serparte class, but in other cases, like this one, in my opinion, partioning the code while keeping it in the same class is enough.
|
|
|
|
|
Hi,
I was wondering if anyone could recommend the best way to parse XML in a memory efficient manner. I have an XML document that stores an ID and the corresponding English string, for example:
<string>
<id>Dialog_Button_OK</id>
<value>OK</value>
</string>
I am traversing an XMLDocument with around 250 strings, and for each string I read the ID, look for it in an enum that I've created previously that includes all of the IDs, and when I find the ID in the enum, I store the ID and the corresponding value in a dictionary.
The problem I have with this method is that its taking up too much memory. Although this method can produce the strings very quickly, the footprint it leaves is larger than I like.
Is there a way to store these strings without using up so much memory? I've seen possibilities with caching, and I've also seen promise with a class I saw in .NET 3.0 called a XmlDictionary. Could anyone lend a hand with this problem?
Thanks,
Adam
|
|
|
|
|
Try using the XmlTextReader rather than the XmlDocument, you read in one node at a time and it's discarded when you've read it in, the XmlDocument retains most of the DOM in memory, providing a much more powerful method for navigating through the document but as you found out much more memory intensive.
|
|
|
|
|
hello code project your sample code for sending sms using webservices is not working not even one mesaage delivered to anyone hfghgfh
erwerre
|
|
|
|
|
hello code project your sample code for sending sms using webservices is not working not even one mesaage delivered to anyone
erwerre
|
|
|
|
|
Go to the article where you got the code sample from and scroll to the bottom of the article. There you'll find a forum where you can post questions about that code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|