|
|
Hi folks
The whole last weekend i tried to understand the source of the User Interface Process Application Block v 2.0. But i didn't understood it. I tried to build an own application based on the UIPAB but it didn't work.
The documentation in the MSDN isn't what it should be.
Now i'm looking for a good tutorial for applying the UIPAB. Does somebody where i can found something like that?
Thx
|
|
|
|
|
The Patterns and Practices books (available as PDFs for free, or as printed books at-cost) at http://msdn.microsoft.com/patterns[^] should be all you need. Many of these describe the various application blocks in great detail.
If you have trouble understanding it, I would suggest you read through the .NET Framework SDK and maybe pick up a few books.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
I am trying to use OpenSchema method in C#. Here is my code:
res1 = m_Service.adoConnection.OpenSchema(ADODB.SchemaEnum.adSchemaTables, new object[] {null, null, null, "TABLE"}, null);
however, when the program is executed, the error below is returned:
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
May anyone teach me what is the correct syntax to use OpenSchema in C#? I cannot use OleDBConnection in this case as my code is to be used in both OleDB and ODBC connection.
Regards,
CTBMei
|
|
|
|
|
hi,
i wonder whether i can use array list as datasource for datagrid,
anybody could tell me what kind of object that can be used as datasource for datagrid, any article on that?
my dataGrid didn't display anything when i use arraylist(of data rows) as its dataSource.could anybody tell me why?
Thanks
|
|
|
|
|
Thanks, i found the solution
|
|
|
|
|
Hi, I've the same problem.
Can you show me your solution?
|
|
|
|
|
Please help me..
I have a really big wierd.. . shell script which I have to convert to a Batch file to run java code written on linux..
I have to compile a very big package from java..
help me please.
PS: I had posted this on general fofum, but I could'nt get the response..
So.. Please help
_____________________________________________________
Believe! Every thing has a purpose
|
|
|
|
|
saud_a_k wrote:
I had posted this on general fofum, but I could'nt get the response
Two things: (1) Your problem has even less to do with C#. (2) You just say you have a problem and then give absolutely no details - how are you expecting people to help?
I suggest you post your query to a more appropriate forum with details of what the problem is.
And before you ask: I know nothing about Linux or Java
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
ok.
_____________________________________________________
Believe! Every thing has a purpose
|
|
|
|
|
Does that really hurt your feelings?
/\ |_ E X E GG
|
|
|
|
|
ofcourse.. I am human..
not to mention it's been 2 days + the weekend.. I haven't gone anywhere with this..
_____________________________________________________
Believe! Every thing has a purpose
|
|
|
|
|
Do you want me to help you?
/\ |_ E X E GG
|
|
|
|
|
Yes!! PLease!!
_____________________________________________________
Believe! Every thing has a purpose
|
|
|
|
|
I need the two following functions rewritten to be recursive. It's from June's issue of MSDN Magazine, the article about a breadcumb/sitemap control for ASP.Net 1.1. I've translated into C#, but I'm not good with recursion (never have been), so any help would be greatly apprecited! Oh, and one other thing, the web.sitemap file that it reads from is 3 levels deep, these methods take advantage of that (<root><node><node2>), but as you could guess, the web.sitemap file could be infinately deep(that's what the recursiveness is for, as you know).
<br />
private SiteMapPath GetSiteMapPath()<br />
{<br />
SiteMapPath objPath = new SiteMapPath();<br />
SiteMapNode objCurrentNode = GetCurrentNode();<br />
SiteMapNode objTempNode = new SiteMapNode();<br />
int i = 0;<br />
bool found = false;<br />
<br />
objPath.Add(this.siteMapNode);<br />
<br />
if(objCurrentNode != this.siteMapNode)<br />
{<br />
while(!found)<br />
{<br />
objTempNode = this.siteMapNode.NodeList[i];<br />
if(objTempNode == objCurrentNode)<br />
{<br />
objPath.Add(objTempNode);<br />
found = true;<br />
}<br />
else<br />
{<br />
if(objTempNode.HasLeaf)<br />
{<br />
foreach(SiteMapNode objNode in objTempNode.NodeList)<br />
{<br />
if(objNode == objCurrentNode)<br />
{<br />
objPath.Add(objTempNode);<br />
objPath.Add(objNode);<br />
found = true;<br />
break;<br />
}<br />
}<br />
}<br />
}<br />
<br />
i += 1;<br />
}<br />
}<br />
<br />
return objPath;<br />
}<br />
<br />
private SiteMapNode GetCurrentNode()<br />
{<br />
SiteMapNode resultNode = new SiteMapNode();<br />
SiteMapNode tempNode = new SiteMapNode();<br />
int i = 0;<br />
bool found = false;<br />
<br />
if(this.siteMapNode.Url.Equals(this.currentUrl.PathAndQuery))<br />
resultNode = this.siteMapNode;<br />
else<br />
{<br />
while(!found)<br />
{<br />
tempNode = this.siteMapNode.NodeList[i];<br />
if(tempNode.Url.Equals(this.currentUrl.PathAndQuery))<br />
{<br />
resultNode = tempNode;<br />
found = true;<br />
}<br />
else<br />
{<br />
if(tempNode.HasLeaf)<br />
{<br />
foreach(SiteMapNode node in tempNode.NodeList)<br />
{<br />
if(node.Url.Equals(this.currentUrl.PathAndQuery))<br />
{<br />
resultNode = node;<br />
found = true;<br />
break;<br />
}<br />
}<br />
}<br />
}<br />
<br />
i += 1;<br />
}<br />
}<br />
<br />
return resultNode;<br />
}<br />
|
|
|
|
|
Recursion is not hard. It's simply a method calling itself, passing the argument necessary for the next loop (or acting on a reference object in the case of object-oriented platforms like .NET).
If you're having troubles and don't understand recursion (which you might want to read up on, since it's a pretty basic requirement of larger development efforts), take a look at some of the other breadcrumb controls for ASP.NET alread on this site:
http://www.codeproject.com/info/search.asp?&cats=3&cats=4&cats=5&cats=6&searchkw=breadcrumb[^]
Most even use recursion, IIRC, so you can get a good idea of how it works.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Does any body knows a NoteBook control like Delphi's control?
|
|
|
|
|
I've never seen Delphi, so what does a Notebook control do?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
A NoteBook control si like a TabControl without labels. Basicly, is a panel that allow to have multiple contents and change them dynamicly.
I have to develop an application outlook style, but left panel will be a container for many types of information. Each info has diferent
representation. SQL Server manager is an example.
Thanks
Elvis
PD: Sorry, my english is not good.
|
|
|
|
|
Hi,
I am trying to use OpenSchema method in C#. Here is my code:
res1 = m_Service.adoConnection.OpenSchema(ADODB.SchemaEnum.adSchemaTables, new object[] {null, null, null, "TABLE"}, null);
however, when the program is executed, the error below is returned:
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
May anyone teach me what is the correct syntax to use OpenSchema in C#? I cannot use OleDBConnection in this case as my code is to be used in both OleDB and ODBC connection.
Regards,
CTBMei
|
|
|
|
|
I define a class inherited UserControl like this
public class MyControlBase: System.Windows.Forms.UserControl
the default size of UserControl is width = 150 and height = 150
I set the new size
<br />
private void SetSize()<br />
{<br />
this.Size = new System.Drawing.Size(200, 200);<br />
}
then I draw a image at region Rectangle(150,150,50,50)
but nothing happend !
And if I put the same code in this procedure ,it working right
private void InitializeComponent()<br />
{<br />
this.Size = new System.Drawing.Size(200, 200);<br />
}
Why?
|
|
|
|
|
Did u call the SetSize() before InitializeComponent() is called in constructor?
|
|
|
|
|
You can't just draw on a control and expect it to persist. Once the control is invalidated (like when you resize it) you need to redraw.
So, override OnPaint :
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
}
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I have a application about drawimage. My form's have a backgroundimage.I want to display some images on it. And, these images need winking. but I don't know how to do it.
|
|
|
|
|
Uhhh.... "Winking" ??? What's that?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|