|
Thanks for reply.......
Actually I have predefined no.s of rows and columns in a datagridview and all the columns are textboxtype I want that when i click a cell it will automaticaly convert to datagridviewcheckboxcell.
your help be truly appreciated...
|
|
|
|
|
Greetings,
I am currently coding some small-scale automation tools for my department and have been running into some issues as I am a beginner to Win32 coding.
I need to read and parse the text from another application's StatusStrip. I am assuming it's a StatusStrip as sending either an SB_GETTEXT or WM_GETTEXT message to the control's handle retrieves nothing. However, it may be a custom control as getting the child windows of this control only returns a handle to a StatusBar Progress Bar control.
I am hoping that it is not a custom control and I am just missing some reason as to why the ToolStripStatusLabels are not showing up as children of the StatusStrip control.
I have also been having issues trying to read from a ListView in this app, but I believe it's a custom control as well because I have no issues reading from another app's ListViews by virtually allocating memory and all of that jazz.
I do know that the app I'm having difficulty with uses a lot of the newer .Net controls that the other app's don't.
So, if anyone has any insight as to how I would retrieve the text from another app's StatusStrip, I would be extremely grateful.
Thanks,
Damien
|
|
|
|
|
Please find the keyword "object inspector" in codeproject search. there are a lot of articles (eg: this one).
try to inspect StatusStrip Text by using those programs. if those programs can read the text that you want then you can find out how those programs work ...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
thank you so very much. was unable to find programs of this nature before. i guess i just didn't know where to look .
this will help a lot for everything i am doing.
once again, thanks!
|
|
|
|
|
The documentation for OpenIcon says that it will restore a window to its previous size and location. This isn't happening - it is restoring the window but not to its previous size. Is there something extra that needs to be done when calling it from C#? The ReturnValue indicates success.
<br />
[DllImport("user32.dll")]<br />
static extern bool OpenIcon(IntPtr hwnd);<br />
<br />
...<br />
<br />
IntPtr wHandle = process.MainWindowHandle;<br />
bool ReturnValue = OpenIcon (wHandle);<br />
|
|
|
|
|
Im a beginner with C#.I want to create a program to store students and courses, each student can have one course at a time and a course can belong to two students or one..
I have microsoft access to create the classes and import them to Visual Studio 2005..
Im using visual studio 2005 and I want to find out the easiest way of doin these sort of programs, programs that can be used to store data, manipulate it and delete it.
As I have said this is probably an easy task for most but Im struggling..
Im very familiar with java(inheritance, polymorphism, generics and other things relating to classes) but I want to use C#...
Please help..
Is this chair taken
|
|
|
|
|
Bonsta wrote: Im very familiar with java(inheritance, polymorphism, generics and other things relating to classes) but I want to use C#...
OK - then you shouldn't have too much trouble, the syntax is similar, and I'm sure there's plenty of articles, even on this site, that cover the DB basics.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Can anyone explain me what an inline procedure is ?
|
|
|
|
|
I didn't think there was such a thing in C#. In C+, inline is a compiler suggestion.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Christian Graus wrote: I didn't think there was such a thing in C#
There is but you have no control over it, it's something that the JIT compiler does if it deems it necessary.
|
|
|
|
|
Just like C++ then ? :P
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Yep , I'm not even sure you can find out when it's been JITted, I remember someone a few years ago having real trouble tracking down a bug and it was eventually sussed out that the method had been inlined. This might have been in a beta version though.
|
|
|
|
|
i want to use splitter control in vc# 2005, but how to do ?
thanks
|
|
|
|
|
Drag and drop it from toolbox on your form
|
|
|
|
|
you joking!?
i know this, but i don't know how to set it's properties and attributes ?
|
|
|
|
|
You set it's properties just like you would with any other control. Is this .NET 2.0? If so, you automatically get two panels (a left and right, by default) that you can then drop other controls onto.
If it's earlier than .NET 2.0, you need to drop a panel on the form, drop the splitter control, and then drop another panel. If I remember correctly, the splitter will automatically dock left...if not you will need to set the dock properties by hand. After that, you just drop controls onto the respective panels.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
1. Drop the control you want on the left hand side on the form, and dock it left.
2. Drop the splitter control on your form (it will dock to the left automatically).
3. Drop the control you want on the right hand side on the form, and dock it fill.
That should be it.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
There are actually 2 different controls that provide similar functionality. There is the 'legacy' splitter control that is the same as the previous versions of visual studio. You have to drop a panel, then the splitter, then another panel.
The better control, IMO, is the SplitContainer. This shows up with a default left and right panels already configured. You can change the orientation so it is top and bottom. It is a container control so you can drop pretty much whatever you want inside of the contained panels.
You'll most likely want to set the minimum sizes for the panels (property names will be Panel1MinSize and Panel2MinSize. This will keep the user from shrinking them too far.
I hope that helps a little.
Pete
|
|
|
|
|
hello,
i want to read a remote directory (ftp/http) or any convenient method..and get all the links or names of the files withinn that folder. is there any way to achive this..if it is ftp..assume that i have the ftp username and password.better if it is a method for a web application .
regards
aneef
|
|
|
|
|
Hello everyone,
I have an XML file which contains the following lines of codes:
<?xml version="1.0" encoding="utf-8"?>
<TestCase Name="Reports" Id="6b5af" Owner="" Priority="0" Enabled="True">
<Items>
<Request Method="GET" Version="1.1" Url="www.goog.com"/>
<Request Method="GET" Version="1.1" Url="www.goog.com" />
</Items>
</TestCase>
I am trying to isolate the lines containing the "Request" element. Is there a quick way of getting just the lines <Request .../> in a string form?
Any help would be greatly appreciated. Thanks a lot!
G
|
|
|
|
|
1) Load the whole fragment into a System.Xml.XmlDocument
2) Use XPath to create an XmlNodeList of the Request Nodes
3) Get the strings from the OuterXml property of each node
|
|
|
|
|
Dear Abisodun,
I am new to C# and XML. COuld you please help me with writing 2) and 3) in C #?
Thanks a lot.
G
|
|
|
|
|
You'll have to show us some code.. The Classes are well documented.
|
|
|
|
|
Hi,
I'm struggling with a property grid control.
Here is what I do:
- I display properties associated to a specific object in the property view.
- For each property, I use a specific editor and allows value to be changed in another form. Each property has access to a specific editor which inherits from 'UITypeEditor'.
- In the EditValue method of my editor, I call my form using the 'ShowDialog' method.
Here is the beginning of my EditValue method:
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)<br />
{<br />
string startingPropertyValue = null;
PropertySpec currentPropertySpec = null;<br />
<br />
if (context != null && context.Instance != null && provider != null) <br />
{<br />
editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;<br />
}
My problem is that I'm not able to retrieve the values selected in my second form and display them for each selected property.
Can you help me please ?
Thanks.
Pat.
p.f. Goudjo-Ako
Bringing our energy together !
|
|
|
|
|
Hello developers,
I am kind of stuck.Please if you can help me with the following
How to create a grid at run time in side a for loop?
hence the number of the grids on a page is equals to the number of times a for loop runs.
My data table contains list od "Id"s from users selection using a checkbox.
Ex. for(int i=0;i<=dt.rows.count;i++)
{
execute a stored procedure with Id parameter.
ds.fill(sda);
gridview gv +i=new GridView();
gv+i.datasource=ds.tables[0];
gv+i.bind();
}
Hence the total number of the grid on a page is equal to dt.rows.count
Please advice
What i mean is to create gridviews dynamically on run time based on user input?
Email : Kibrommail@yahoo.com
Thanks
-- modified at 15:56 Tuesday 3rd July, 2007
|
|
|
|