|
I have no any idea about it.so please send me full code and demonstrate it.
|
|
|
|
|
That's not how it works, sorry. Why do you have this task, if you don't know how to work with XML, or with a listview control ?
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 )
|
|
|
|
|
how made datagrid auto resize column width to fix data length??
thanks
|
|
|
|
|
Hi,
First, set the property "AutoSizeMode" to "NotSet" for the column.
Then set the "width" to desired length.
Manoj
|
|
|
|
|
What I want the datagrid to do, is to auto-resize. It does that already when something longer is inserted into the datagrid. But it does not shrink, when something shorter is inserted from the datasource.
I would prefer to let the framework handle the sizing.. I really do not want to program this - since this datagrid is one among many with this problem. It's pretty standard behaviour to resize columns according to their content.
Why is it that the column width does rezise for strings which are longer, but does not resize for strings which are shorter. Sounds to me like I have to reset the width to standard widths each time I instantiate the datasource?
Hm...
|
|
|
|
|
hi all
i have a problem to show a picture or gif image b/w request and response (b/w server and the client).
what i tried was image visible false basically...
when button click when it request server i made the image visible true...
but the image is visible only after the response from the server ...
what should i do...???
bye
|
|
|
|
|
Before Running your Application try to remove all the cookies and the browsing history and try it again.
Regards,
Satips.
|
|
|
|
|
Why ?
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 )
|
|
|
|
|
The only way you can do that, is AJAX.
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,
I want to access usb drive content in windows application. Can any body tell me or can provide me any link to that??
Chandan
|
|
|
|
|
You can use System.IO.DriveType.Removable to find a removable drive. From there you can access it just like a normal drive.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Here's a code project article about this subject:
http://www.codeproject.com/cs/system/DriveDetector.asp
An intellectual is someone whose mind watches itself.
Albert Camus
|
|
|
|
|
Hi, I'm attempting to perform a wild card query using C# and microsoft access. The results will be placed in a data grid. Ive tried using "*" ,"#" and "?" symbols but it still wont work
heres my query statement..
daGuests = new OleDbDataAdapter(string.Format("SELECT * FROM Assignee WHERE SN = '*{0}*'", search), conn);
daGuests is my data adapter
search is a string taken from a textbox..
is there something wrong with my code?
im pretty sure theres nothing wrong with my other codes,
the daGuests = new OleDbDataAdapter(string.Format("SELECT * FROM Assignee WHERE SN = '{0}'", search), conn); statement works perfectly.
Hope you guys can help.
|
|
|
|
|
I don't use Access anymore but the SQL should be closer to:
"SELECT * FROM Assignee WHERE SN LIKE '%{0}%'"
I'm not real sure about the % characters. They might be something else.
|
|
|
|
|
I consider that we could use 2 character '*' and '%' based on what I need
In SQL query, we use "Select * frm Assignee WHERE SN like 'Th%'"
In Crystal Report, we use CrystalReport1.DataDefinition.RecordSelectionFomular = "{Assignee.SN} like 'Th*'";
It seem to be a solution or an answer.
|
|
|
|
|
Hi,
On microsoft access, we have 2 wild characters, "*" and "?". So the mistake is in using "=" instead of the LIKE.
Try to use sentance as:
daGuests = new OleDbDataAdapter(string.Format("SELECT * FROM Assignee WHERE SN LIKE '*{0}*'", search), conn);
and I hope it will work for you.
Manoj
|
|
|
|
|
|
You should use Parameter to make it easier instead of formatting datetime.
string dateneeded = dateTimePicker6.Value.ToLongDateString();
String query = "INSERT INTO purchaserequest(dateneeded) VALUES (? )";
MySqlCommand command = new MySqlCommand(query, connection);
command.Parameters.Add(new MySqlParameter("pDate",dateneeded));
command.ExecuteNonQuery();
It seem to be a solution or an answer.
|
|
|
|
|
hi,
thanks...il try this one...
i appreciate it...
regards
jing
|
|
|
|
|
you just have to use the datetimepicker properties/methods
datetimepicker.value (one way to get the datetimepicker value)
|
|
|
|
|
jing,
You can try an essy way out.
Just put the "date-time" in single quote while preparing sql string.
i.e. your query string should be changed as below:
String query = "INSERT INTO purchaserequest(dateneeded) VALUES (" + "'" + dateneeded + "'" + )";
Also please check you have the correct column name.
Manoj
|
|
|
|
|
|
Hi all,
I want that the dll of my application which are on the client machine after deployment should be protected that no one can see the code and logic using some deassembler tool. How should i protect this???
i tested a third party tool to read a dll of some trial version application from internet. Its opens the code easily, but when i tried the same tool with some system32 dll, the dll showed to be locked. I want this to be in my dll also. How is it possible ???
Sample Code, Suggestion, References welcom ........
Thanx
sandeep
|
|
|
|
|
The system32 dll is written in C++. That's the only way to stop people from reading your code at all. Otherwise, all you can do is use an obsfucator.
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 )
|
|
|
|
|
I’m actually quite good at looking at x86 machine code and producing equivalent C++ code. It takes some time but it’s not impossible.
Steve
|
|
|
|