| Groups Some of the recent posts:
Subject: Snapshot an image of a running application From: Bill Fuller
I am wondering if there is a way to capture an image of a running Windows
Application when the user hits a special key sequence to bring up a
"comments" dialog to be used during testing of a new app. This feature would
be cached into a central database along with the comments so that we will
have a picture of what the tester was seeing when opening up the comments
dialogue.
Read whole thread:
Snapshot an image of a running application
Subject: Can a ShowBalloonTip event be raised from a console or win service app From: Bill Fuller
I have a Win Service app that monitors the health of remote servers,
including web services. I would like to raise a WinBalloonTip for
significant events, such as the Death of a connection or service. Is this
possible from a service (or even console app, for that matter), or does it
have to be a WinForms app to do this.
Read whole thread:
Can a ShowBalloonTip event be raised from a console or win service app
Subject: Problem with signing assemblies using AL.exe (Strong name signing an unsigned assembly) From: Poggs
I got this error while signing an unsigned assembly.
ALINK: warning AL1020: Ignoring included assembly 'Validator.dll'
ALINK: error AL1016: No valid input files were specified
This is my AL command : al /out:Validator2.dll /keyfile:myKey.snk
Validator.dll
What am I doing wrong here..
Anyway, my real problem is how to strong name sign an unsigned assembly that
contains unmanaged code. Is this possible. I tried signer.exe but it cannot
handle the non-IL codes in there.
Any help will be highly appreciated
Read whole thread:
Problem with signing assemblies using AL.exe (Strong name signing an unsigned assembly)
Subject: Question about 'public' and 'public static' From: Ben Voigt [C++ MVP]
> Thank you all for the replies - I really appreciate it. I have a C++
> background and am preparing for an interview.
>
> Suppose I am writing a general utility 'class' (simple functions like Max,
> Min, Average, etc) that does not need access to instance members because
> each function is self contained.
>
> Wouldn't it be inefficient for me to instantiate the Utility class and
> then class the appropriate Utility.Method rather than applying the method
> straight away without the creating the instance?
>
> I could achieve this in C++ by declaring the methods outside of a class in
> the header and then include the appropriate header in the source file.
>
> What would be the equivalent in C#? Interpreting Bob's description,
> declaring the appropriate methods as static would be the way to go.
>
> Thanks again.
C++ uses static in *exactly* the same way. From the Visual C++ Language
Reference:
"When modifying a data member in a class declaration, the static keyword
specifies that one copy of the member is shared by all instances of the
class. When modifying a member function in a class declaration, the static
keyword specifies that the function accesses only static members."
Of course this is highly inaccurate. Static member functions can access
non-static members, both functions and data, as long as an instance of the
class is referenced in the process. Since the static member function is a
member of the class, it can access private and protected members in this way
as well.
Read whole thread:
Question about 'public' and 'public static'
Subject: ListView Grid Distortion From: Liz
My ListView components seem to produce distortion when they are scrolled in
Details view; it looks almost like the text has a "strike-through" attribute
applied to it.
Does anyone know of a fix for this? If not, is there an alternative
component available (that behaves like a ListView) ?
TIA
L
PS: this is in VS 2005, SP1 ... I have not checked yet whether vs2008
behaves differently
Read whole thread:
ListView Grid Distortion
Subject: Going slightly mad - Insert sql not working from code but does in Access? From: sloan
A.
You want to run
.ExecuteNonQuery
and not the scalar.
2. You need to provide the datatypes of Va1-Val5.
"JamesB" <james@com> wrote in message
news:47cc74b5$0$21861$db0fefd9@news.zen.co.uk...
>I am trying to insert a row to an Access database:
>
> INSERT INTO tblTest (Val1, Val2, Val3, Val4, Val5) VALUES ('blah', 0, '',
> '', 'foo');
>
> If I run this in my code:
>
> String insStr = "INSERT INTO INSERT INTO tblTest (Val1, Val2, Val3, Val4,
> Val5) VALUES ('blah', 0, '', '', 'foo');
> OleDbCommand insCmd = new OleDbCommand(insStr, DBConn);
> try
> {
> insCmd.ExecuteScalar();
> }
>
> I get an error "Syntax error in INSERT statement". Yet if I create a new
> query in the Access db and paste the insert statement in there, it works
> fine! All fields are text apart from Val2, which is a Yes/No field.
>
> Anyone spot what I'm doing wrong here?
Read whole thread:
Going slightly mad - Insert sql not working from code but does in Access?
Subject: control questions From: Analizer1
Hi hows it going
ive made dynamic buttons and added a button click event
ButtonClick(object sender,eventargs e)
Im sending all the Buttons created 1 to 3
I dont know how to get which button was clicked
thanks
Read whole thread:
control questions
Subject: Latest XML parsing/memory usage benchmark From: jimmy Zhang
The latest benchmark results are now available using the latest Intel Core2
Duo processor. In summary, VTD-XML using JDK 1.6's server JVM achieved an
astonishing 120MB/sec sustained throughput per core on a Core2 Duo 2.5GHz
processor.
* Parsing /Memory usage
http://www.ximpleware.com/2.3/benchmark_2.3_parsing_only.html
* XPath Only: http://www.ximpleware.com/2.3/benchmark_2.3_xpath.html
* Parsing/XPath/Update:
http://www.ximpleware.com/2.3/benchmark_2.3_update.html
* Indexing/XPath/Update:
http://www.ximpleware.com/2.3/benchmark_2.3_indexing.html
Read whole thread:
Latest XML parsing/memory usage benchmark
Subject: generating C# classes from XSD with Custom Attributes.. From: sloan
Maybe this can help:
http://www.jondavis.net/blog/post/2007/05/XML-to-C-Code-Generation.aspx
I'm not sure..but check it out.
"parez" <psawant@gmail.com> wrote in message
news:91797c0d-ee6e-423d-a9b4-3563a19423a6@p25g2000hsf.googlegroups.com...
> Hi All
>
> I am trying to generate classes from XSD which looks like this
>
> namespace WindowsFormsApplication1.Something.Some
> {
> public class Address
> {
>
> public Address()
> {
> }
>
>
> [FormMapper("TextBox2")]
>
> public string StreetAddress { get; set; }
> [FormMapper("TextBox3")]
> public string UnitNumber { get; set; }
> [FormMapper("TextBox4")]
> public string City { get; set; }
> [FormMapper("TextBox5")]
> public string State { get; set; }
> [FormMapper("TextBox6")]
> public string zip { get; set; }
>
> }
> }
>
>
>
>
> How do i represent the FormMapper Attribute in the xsd.
>
> Please Help and thanks
Read whole thread:
generating C# classes from XSD with Custom Attributes..
Subject: common DataBinding scenario: Yes/No backed by true/false From: sklett
I have the need to display a DropDown with 2 options: Yes/No.
I want to bind this control to an entity which represents the field in
question with a bool.
What I've done in the interim is to manually add "YES" and "NO" strings to
the control, then in the SelectedIndexChanged event set the bool value by
performing a string comparison for YES or NO. This is less than elegant.
I've been thinking of way to set the DataSource of the DropDown that would
allow me to bind straight to the SelectedValue property. The only thing I
can come up with is to create a small class like:
class YesNoOption
{
private string _display;
private bool _value;
public YesNoOption(string display, bool value)
{
_value = value;
_display = display;
}
// properties
}
Then create 2 of the above and place in a List.
List<YesNoOption> options = new List<YesNoOption>();
options.Add(new YesNoOption("YES", true));
options.Add(new YesNoOption("NO", false));
comboBoxBindingSource.DataSource = options;
There must be a better way than all of this, no? This seems like a common
scenario that people would deal with but I haven't been able to find much on
the topic.
Any suggestions or experiences with this scenario?
Thanks,
Steve
Read whole thread:
common DataBinding scenario: Yes/No backed by true/false
|