all groups > c# > march 2008 > threads for sunday march 2
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
locate file by typing name
Posted by Andrus at 3/2/2008 9:35:19 PM
I have solution opened in Visual C# 2008 Express IDE.
I want to locate any cs file quickly by its name:
type file name or first letters of it, eq. myclass.cs
After that some instance of file should highlighted in Solution Explorer
window or opened for edit.
Any idea how to use this o... more >>
Can't initialize password textbox
Posted by Parrot at 3/2/2008 7:55:01 PM
I am using information from a cookie to initialize a password box but the
password is blank when displaying the web page. Can anyone explain why I
can't programmatically initialize a password textbox. I am able to intialize
the user id textbox but not the password box. I inspect the Passwor... more >>
Need an explanation rss xml
Posted by Robert Bravery at 3/2/2008 7:47:32 PM
HI all,
I am reading an rss feed using linq.
When I save the xml to a file on disk I get:
(A),
but when I view therss feed in explorer and view source I get
(B).
THe <cfi: ...> tags are missing
Now I am a novice when it comes to theses things. Could someone explain the
difference
Than... more >>
Parsing in between strings using Regex
Posted by CJ at 3/2/2008 7:44:52 PM
Is this the format to parse a string and return the value between the item?
Regex pRE = new Regex("<File_Name>.*>(?<insideText>.*)</File_Name>");
I am trying to parse this string.
<File_Name>Services</File_Name>
Thanks
... more >>
How to reference a richtextbox ?
Posted by Bart at 3/2/2008 6:45:34 PM
Hi all,
Firts of all I am complete new to C# but I am trying to build a simple
texteditor.
So on my mainform I have a tabcontrol and each of the tabs contains a
RichTextBox. Now when the users selects another tab I want to get a
reference to the RichTextBox located on that tab.
Ive tr... more >>
Linq o SQL to query an XML data column
Posted by Alexandre Brisebois at 3/2/2008 6:08:41 PM
I have been trying to use Linq o SQL to query an XML data column I
currently have in my DB,
but it seems that Linq to SQL sees a typed xml column as an XElement,
I don't want to get the full column locally to then use Linq to Xml.
can someone point me in the right direction on this ?
Rega... more >>
EventArgs and derived classes
Posted by ACS at 3/2/2008 4:22:43 PM
Hello,
I'm wondering for certain events, such as a MouseClick event which
uses MouseEventArgs, how are these EventArgs classes' members
populated? i.e. how do the .X and .Y members get assigned?
I ask because for a project I'm working on, I'm making a custom
ListView control with custom eve... more >>
soundplayer
Posted by WD at 3/2/2008 4:02:00 PM
Hi,
I'm using the Soundplayer class in my c# project and can't seem to get all
my files playing. If I play the tada.wav sound in windows it works fine. If I
play my 0.7 second audio tone, nothing comes out. I had a look and the tada
sound goes for nearly 1.95 seconds. Does the length of the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Making a base class' methods thread safe
Posted by Steve K. at 3/2/2008 3:19:12 PM
I am creating several data access objects that all derive from a base class
which implements the web service access functionality.
For example (fake code):
<code>
public class DAOBase
{
protected List<TType> Search<TType>(string nameHint)
{
// code to login to web service... more >>
RSS feed XML linq
Posted by Robert Bravery at 3/2/2008 2:21:29 PM
Hi all,
I'm readming values from an rss feed, by way of the suplied xml file. Using
linq I can get the title and description, but need to know the last download
time. Can some one through me a hint. A snipit of the xml file
..
Thanks
Robert
<?xml version="1.0" encoding="utf-8"?>
<rss... more >>
Debugging unmanaged calls from managed app
Posted by Fredo at 3/2/2008 11:52:37 AM
I'm using an unmanaged image library (FreeImage). It has a wrapper called
FreeImage.NET which has all the interop stuff for FreeImage.
I have the source for FreeImage and I wanted to trace into the calls, but I
can't figure out how to debug it.
What I did was compiled debug versions of eve... more >>
Load/Save Bitmaps
Posted by cdvolko@gmail.com at 3/2/2008 10:57:47 AM
Hi,
I'm looking for code to load and save bitmap files (24 bit per pixel).
TIA
Claus... more >>
how to start a method when form is created
Posted by finer at 3/2/2008 10:57:45 AM
does anyone know how to call a method from a class automatically AFTER
a form has been created?
I am trying to call a method automatically after the form is displayed
to the user (not before).
anyone know how to do this?
thanks,
-dave... more >>
Missing something fundamental with C# OOP
Posted by truevision.net@gmail.com at 3/2/2008 10:12:25 AM
Hi,
I have a slight problem with how things work that I'm sure I'm
missing. I don't really get it how I am supposed to get references
between classes and instances of them. Example:
using System;
using System.Windows.Forms;
namespace Test
{
public partial class Form1 : Form
{
... more >>
communication between classes
Posted by doofy at 3/2/2008 7:56:57 AM
This is a conceptualization problem for me regarding how
classes/namespaces share information. I can't really return an
object/value back from a called class to a calling class by directly
naming the calling class instance in the called class, as this violates
object oriented guidelines, as... more >>
Alternative to static property in interface?
Posted by Sin Jeong-hun at 3/2/2008 5:25:35 AM
I would like to get a static property of classes through an interface.
But static isn't allowed in interface. The class types are
implementing an interface, and loaded from external assemblies (this
is my plug-in architecture). So, if the property is not static I
should create an instance for ea... more >>
A question on threading
Posted by Rahul at 3/2/2008 4:38:19 AM
Hello,
I am writing a program related to image compression in C# (GUI
Application). In that I have a "heavy, long running" method which
among other things, calls this.Invalidate(); to make the screen
refresh to display the changes in image during processing.
The problem is that, once the pr... more >>
enum questions
Posted by csharpula csharp at 3/2/2008 2:40:23 AM
Hello ,
I have 2 questions about enums:
1) How can I recognize defined enum in other projects ,do I have to add
the full namespace path before it such as:
Projects.New Project.Test.MessageType (MessageType is an enum) - each
time I use it or I can somehow do it with using in the head of... more >>
Cast<Customer>() causes exception
Posted by Andrus at 3/2/2008 1:28:30 AM
I tried
Northwind db = CreateDB();
IQueryable<Customer> gqueryable = (from c in db.Customers
select new { c.CustomerID, c.City }).Cast<Customer>();
but got exception in Cast<>()
Why Cast() is not working ? It should be easy for Cast() to create new
Customer and assign matching prope... more >>
Delegates question
Posted by tshad at 3/2/2008 12:29:14 AM
Just trying to get my head around when to use delegates and when not to.
I understand delegates and use them with collection sorts and finds.
But in an example program I was playing with I am a little confused as to
why I would use delegates:
************************************************... more >>
Some miscellaneous newbie 2005/.Net 2 questions
Posted by Peter Webb at 3/2/2008 12:02:15 AM
These have all been bugging me for a while.
1. myBuffer.Render
I use manual double buffering, it works well (no flicker, and suits the
logic of my app). Accordingly my on_Paint override is:
protected override void OnPaint(PaintEventArgs pe)
{
//base.OnPaint(... more >>
|