|
Hi, all!
I'm working on a control library which now contains four independent controls. This control library is one dll indeed. The question is how to do so that each control would have its own icon instead of standard one(undefined) because when I trying to set
[ToolboxBitmapAttribute(typeof(BT.WinUI.Controls.CWSplitter), @"CWSplitter.bmp")]
they all then will be with undefined icon. But I was seen a dll where this is done. It has 9 controls and each with its own icon...
Thanks.
Regards,
@LEXX.
|
|
|
|
|
Did you apply the ToolboxBitmapAttribute to each control class?
- Nick Parker My Blog | My Articles
|
|
|
|
|
Hello,
i have developed a web service where the client sends to the server a signed xml document signed with "Infopath". When the server receives the document it is impossible fot him to valiadate the signatures. Here is my code:
(doc is a XmlDocument)
<br />
XmlNodeList nodeList = doc.GetElementsByTagName("Signature");<br />
SignedXml[] signatures = new SignedXml[nodeList.Count];<br />
<br />
for(int i = 0; i < nodeList.Count; i++)<br />
{ <br />
signatures[i] = new SignedXml();<br />
signatures[i].LoadXml((XmlElement)nodeList[i]);<br />
if (!signatures[i].CheckSignature())<br />
validSignatures--;<br />
}<br />
The xml document has been signed with a valid X509 certificate.
thank you for your help!
|
|
|
|
|
Hi could anyone give me some source code or tutorials on generating product keys in c#??
Also need advice. I want to generate a product key and have some way to detect if the licence count is at its maximum. So therefore the program can not be installed again.
How do I do this??
Thanks.
|
|
|
|
|
Product keys sources' usually aren't given away.
To make one, you will need to create your own algorithm.
Aaron Eldreth
TheCollective4.com
My Articles
I hereby boycott this poll. Really....
- Leppie
|
|
|
|
|
|
Here is a good Article and code.
Applications Licensing using the .NET Framework
By Kenn Scribner
http://www.developer.com/net/net/article.php/11087_3074001_1
|
|
|
|
|
Is it possible to make customized SaveFileDialog using C#? please guide
|
|
|
|
|
Hi all!
I'm trying to write a method that reads an object. If the object can't be read, the stream should return to it's original state. This seems to be easily achievable by getting the stream's position before attempting to read and to set is back to the same position if reading would fail. However, this does not work out:
public void ReadFromStream(StreamReader stream)
{
long safePos = stream.BaseStream.Position;
string line = stream.ReadLine();
string[] keyAndName = line.Split(new char[]{' '});
if(keyAndName[0].Trim() != keyWord)
{
stream.BaseStream.Position = safePos;
System.Windows.Forms.MessageBox.Show(stream.ReadLine());
throw new Exception();
}
}
Should I return the stream C++-style? I wouldn't think so since a stream is a reference type in C#...
I don't have a clue why this fails. FYI: the value of safePos and stream.BaseStream.Position always remain the same, in my case 16384.
Thanks for any help!
Jochen
|
|
|
|
|
You might want to try wrapping your stream with BufferedStream
BufferedStream bstream = new BufferedStream(stream);
and read from it. This will allows you to call Seek to reposition the pointer.
|
|
|
|
|
I can use the Seek method on the Basestream property. However, I cannot get the exact position in my stream, since that property only returns positions which are multiples of the buffersize. Using DiscardBufferedData() does not have any influence here...
|
|
|
|
|
I am porting an enterprise level 3-tier C++ application to C# with a tight timeline. I am confused with the database jargon in .net Can somebody advice me on which objects/wizards can satisfy following requirements:
1. Compatibility with multiple database vendor (Oracle and MS SQL to start with)
2. Transactional control
3. Ability to fetch XML from query results
4. Ability to operate on views and execute stored procedures
Can some expert guide me?
|
|
|
|
|
Hello,
I want a C# code that I can use to open the CD driver.
thanks
|
|
|
|
|
|
Hi,
I read some data from SQLServer db and then draw some graphics (lines only) in my form's paint eventhandler. I know that this is time consuming and memory too. It works ok with local SQLServer but, takes a lot of time in case of a remote SQLServer and the page is not repainted/refreshed properly.
Is there any way to make it more efficient like caching, etc.
Cheers
CNU
|
|
|
|
|
hi,
which method you are using Disconnected or Connected ( i mean data adapter or data reader )
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I am using data adapter.
I connect to the db when I start my application. I keep the connection alive as long as the appl. runs ( and I have to ). I close the connection when the appl is closed.
Just out of curiosity, what this data adapter or reader has got to do with this ??
Cheers
CNU
|
|
|
|
|
hi,
DataAdapter >> If you are using data adapter it will close the connection. that's is you don't want to close the connection explicitly. And if we are trying to update tables using data adapter it will automatically open the connection and will do ooperation and will close automatically.
If it is Data reader it is your headache to open and close the connection once you finish the operation or record fetching. It won't open or close connection automatically ( like our recordset).
So if you are using datareader here in your application , for all request it will goes to database and will give you record and keep the connection active until and unless you close.
I suggest you to use dataset(data adapter) to do your operation.
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
hi,
i have one little problem. The overall problem that i am facing is splited into different steps. Please read and give me your idea. I submitted this problem once in this forum. But at that time i got lot of reply says "little more specific". That's why i splited my entire problem into different steps.
Setp one.
i have one panel control in my form. I am spliting this panel control into two part say working region and holding region. This spliting is only logic spliting.
That is i am dividing(logically spliting) panels few portion (region) for working region and the remaining for holding region. This much explanation is fine right.
Result :It's working properly.
Step two.
Next stage is based on user request ( Dynamically ) i am adding one label control into panel.
Say for a button click my logic will create a label control dynamically and it will add that label control into my panel's holding region. This much thing will do by the button click event handler.
After this user will drag the dynamically created control from from panel's holding region and will droup there in panel's working region.
( This dynamically created label is a custom control which inhrited from windows Label control.)
Result : It's working properly.
Step Three.
The autoscroll property if panel is set true. Why because user will create n number of label's. And he need to place it in somewhere in panel. User can deside and re-arrange the label control inside the panel.
Result : It's working properly.
Step four:
Just think. For user one label means his one work status. User can join more than one work status into one work status.(tecnically speaking we are joining two label controls into one label control.). if user join two or more work it will create a single control (after combining the selected control into one) and automatically come there in holing region of panel.
The remaining process will continue like the step two.
The control will be there in holding region of panel for all movement of hori or vertical scrolbar.
This won't dispose or remove the control from that holding region.
Result : It's working properly.
Step five :
Like work joining , i can split one work into fifferent work or i can de couple joined work (step four) into individual works. In this situation i am dynamically creating n number of label controls and place it in that holding region.
( You will get n number of individual work if split a joined work using n number of individual works).
So all controls will come there in holding region.
here my problem start's.
If i am moving my horizontal scrollbar then suddently the controls there in holding region ( not in working region ) will vanish from my panel. this problem is only with horizontal scroll bar.
Any body knows what is happening behind this ?
**************************
S r e e j i t h N a i r
**************************
|
|
|
|
|
I want to a MDB database in VC#.net. The database isn't localhost, it is at other computer in intranet. When I run my programm, can't connect to the database.
|
|
|
|
|
|
In webapplication, how do set to ie timeout?
|
|
|
|
|
All,
I have been writing an app that has a "Windows-Like" taskbar. When a user minimizes a MDI child, I place the form's name in the taskbar and "Hide" the MDI Child (.visible = FALSE). However, if the user resizes the taskbar or if the MDI Parent is resized the "Hidden" MDI Children magically reappear minimized. I have stepped through the code in the IDE and the MDI child's visible property actually sets itself to TRUE. Is there any way around this? I have attempted to "re-hide" the MDI Child by putting (.visible = FALSE) in the child's "Move" event (this fires when the MDI Parent is resized or the taskbar is resized) , but this causes a flicker and does not consistently work. I have also tried the (.visible=FALSE) in the "Resize" event of the child form as well, but this does not seem to work either.
H E L P ! ! ! ! I just want the MDI child to be hidden and stay that way until "I" tell it otherwise.
Regards and thanks in Advance,
|
|
|
|
|
try this:
Form[] myChildren = this.MdiChildren;
foreach (Form child in myChildren)
{
child.Visible = false;
child.Enabled = false;
}
This signature left intentionally blank
|
|
|
|
|
Well I have been looking around for a while to an answer to this question.
Here is my problem:
I have a report that uses several graphics for operation information
White background with black text.
I just fell across an article on here that talkes about using a histogram to read barcode
information from a graphic.
My question is
Could you use the same method to get the text off a graphic?
Thanks for the info
any information here would be great...
Will
|
|
|
|