all groups > c# > february 2008 > threads for wednesday february 27
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
Audio components for c#
Posted by sengupta.amit@gmail.com at 2/27/2008 11:51:53 PM
1.Anyone know of a .net library or component which can encode wav
files to mp3 format and support simultaneous conversions at the same
time (without having to use lame encoder externally).
2.Need a way of create m4b ipod files from an mp3.
Thanks in advance.... more >>
Detecting active forms
Posted by Joza at 2/27/2008 11:27:14 PM
Hi!
I have MDI and two forms, Form1 and Form2. If I open From1 and then
Form2 how to detected from Form1 that Form2 is also opened?!
Is that possible?!
Thnx.
J.... more >>
find Count of open Streams?
Posted by viepia@nospam.com at 2/27/2008 11:26:58 PM
Hi,
In the function
void close(BinaryReader br)
{
br.BaseStream.Close(); // Is this line necessary?
br.Close();
}
Is there a I/O function to find the number of open Stream(s) analogous to
LogStore.StreamCount?
Tha... more >>
One click
Posted by Cdude at 2/27/2008 11:02:25 PM
I want to use one click to deploy my windows application but i want to
include a xml file in which i can change the connectionstring. How can
i do this. When you install the actual application where does it
install the .exe file and is there a setting where i can set where i
want the files to be... more >>
MSMQ Formatter and XmlMessageFormatter
Posted by Chizl at 2/27/2008 9:43:55 PM
On the MQReceiveCompleted method below, I get an error "Name cannot begin
with the '.' character, hexadecimal value 0x00. Line 1, position 40."..
This data is XML that I'm putting into this queue.
---------
<?xml version=""1.0""
encoding=""utf-8""?><DATA><FIELD1>CHIZL</FIELD1><FIELD2>DA
MA... more >>
How to get events assigned to ToolStripMenuItem.Click
Posted by Academia at 2/27/2008 8:39:42 PM
In the code below I
Call CopyToolStripMenuItem which effectively copies the properties of
saveToolStripMenuItem one at a time into newItem.
The next statement changes the Text of newItem to "New"
The next statement adds newItem to the DropDownItems.
Finally I assign an event to newItem... more >>
Getting list of database servers into combo box
Posted by doofy at 2/27/2008 7:17:48 PM
Anyone know how I can pull in a list of available database servers on my
computer (which I will then use to populate a combo box)?
Even just the namespace to use would be a start, though more info than
that would be a lot more helpful.
Filling the combo box is something I think I can figur... more >>
Problems with TableAdapters
Posted by WonderMan at 2/27/2008 6:53:18 PM
Hello,
I am working on an application written with Visual Studio 2005 & C#. It
uses objects nammed TableAdapters, which I am not familiar with. The
database is a SQL Server 2000.
Sometimes, my application raises an exception with the message "Failed
to Enable Constraints", but my problem... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
lists and interfaces
Posted by tshad at 2/27/2008 6:51:22 PM
I am just trying to find out why you would use an interface with a list
class?
This is how I usually set up my list classes:
Racer.cs
***********************************************
public class Racer
{
private string name;
private string car;
public str... more >>
Webbrowser mht file
Posted by CJ at 2/27/2008 6:02:26 PM
After you trigger your event and store an internet webpage as an .mht file,
then you store the contents of the .mht into a database. Has anyone figured
out how to load the contents from the db into a webbrowser, and have it
display the same way with all the embedded pictures and everything?
I... more >>
ado c#
Posted by Analizer1 at 2/27/2008 5:13:14 PM
help with excel files plz
ive gotten some xls files dont know from which version
ive also got them to open using ado net , but i had to physically open them
and save them to 4.0
i have office 2003 on my machine...
any good examples out here working with xls files
thks
... more >>
Linq, xml, and 2033 characters
Posted by R Dorris at 2/27/2008 4:30:00 PM
I have a sp in sql2005 that uses the for xml path statement that I'm trying
to call using Linq to Sql. I've setup the sp in the datacontext and have it
returning a class that has one property of type string. When my code calls
the sp, I'm only getting back the first 2033 characters of the xml.... more >>
LINQ join using Expression Tree
Posted by Darren at 2/27/2008 3:26:52 PM
I'm designing a query editor and have been able to create expressions
on a single table but I am having trouble creating a join dynamically.
Using the adventureworks database as an example,
// let the compiler do it
var q1 = from a in db.Addresses
where a.StateProvinceID == 1
... more >>
Uploading files using HttpWebRequest and PUT takes too long
Posted by tregewitz@yahoo.com at 2/27/2008 2:59:44 PM
I am uploading a zip file using an HttpWebRequest and a PUT operation
to Sharepoint (2003) from a Windows Form application. When I upload
the same file using the Sharepoint Portal Web UI itself, the file
uploads in 1/3 the time. If I copy the file over the network using
Windows Explorer, it al... more >>
Simple Hash algorithm to detect duplicate content
Posted by DotNetNewbie at 2/27/2008 1:33:26 PM
Hello,
I need a simple hash algorithm that will detect duplicate content in
my application.
I want to hash not just the content, but a few other parameters also
like EmployeeID and DepartmentID.
So something like:
int hash = DoHash(string Message, int EmployeeID, int DepartmentID);
... more >>
What property defines a controls paint bounds?
Posted by Tom P. at 2/27/2008 1:20:02 PM
I am creating a custom control and I'm trying to get the painting of
it correct. I'd like to simply use:
e.Graphics.FillRectangle(Brushes.White, DisplayRectangle);
.... or ...
e.Graphics.FillRectangle(Brushes.White, ClientRectangle);
.... or ...
e.Graphics.FillRectangle(Brushes.White, Bounds);... more >>
the this. on requests
Posted by Cindy Lee at 2/27/2008 1:15:12 PM
Sorry if this is a bad questions, but does it matter if I use,
this.Request.QueryString or just Request.QueryString to get my url
parameters? Will they both do the same?
... more >>
OT: Visual Studio with 3 developers and same projekt
Posted by Martin Arvidsson, Visual Systems AB at 2/27/2008 1:11:20 PM
Hi!
We are starting up a big projekt that requires three developers.
What version of Visual Studio 2008 is ideal (Pro, Developer etc), and what
is the recomended versioncontrol software?
Regards
Martin
... more >>
Possible in Linq to Sql?
Posted by Andy at 2/27/2008 1:00:56 PM
Hi,
I have a sql statement which I'm trying to translate to Linq. Not
sure how to do this.
select *
from Table1 t1
inner join Table2 t2 on t1.Id = t2.ParentId AND t2.Type = 'A'
Thanks
Andy... more >>
Best Practice - viewstate / session
Posted by Robert Bravery at 2/27/2008 10:20:53 AM
HI all,
Where can I find documentation on best practices about whether or not to put
usercontrols into either viewstate or session variables. What are the pro's
and cons and if this type of practice is acceptable or frowned upon.
Thanks
Robert
... more >>
What is equivalent of 'null'
Posted by COHENMARVIN@lycos.com at 2/27/2008 10:11:10 AM
I'm a VB programmer learning C#. One thing I don't know is how to
test whether an object is 'null' or not. There is no 'null' keyword
in C#.
Why is that?
CM... more >>
How do I convert a int to a string?
Posted by COHENMARVIN@lycos.com at 2/27/2008 10:03:23 AM
I tried the following:
int myInt;
MessageBox.Show(myInt);
But this does not work, because a string is expected. How do I
convert myInt to a string? I tried myInt.toString and that is not
accepted, and neither is (string) myInt.
Another thing I tried was:
String MyString;
MyString = "Hell... more >>
LINQ and SQL in general.
Posted by Alcides at 2/27/2008 9:56:13 AM
Hello all,
I learn about LINQ here in this forum. I been a VB.NET programmer for
quite a while and we are using an internal solution for SQL access. I
have some experience with C# and I started to write a blog to share my
experiences with a sql framework.
I would like to hear some opinions ab... more >>
Changing a DateTime format --- please help!
Posted by almurph@altavista.com at 2/27/2008 9:42:42 AM
Hi,
Hope that you can help me with this. I'm calling DateTime.Now and
storing in a DateTime container. I see that the pattern format is: m/
dd/yyyy
I need it to be in the format: yyyy-MM-dd HH:MM:SS as type DateTime
but I don't know how to do this! Can anyone help me please? Any
comments... more >>
Why are these NOT equal?
Posted by Bob Bartel at 2/27/2008 9:34:11 AM
I have a routine to compare the current value with the original value of
fields in a Datatable. The code loops through each column to compare the
values and builds an update statement for those columns that have changed.
But for some reason, the Datetime fields are evaluating as not equal wh... more >>
Adding a form to a C# program.
Posted by Jonny Relentless at 2/27/2008 8:55:28 AM
After adding a form to a C# program, I am unable to use it. I want to
use form1 as a sort of menu, so that when the user clicks a button,
form1 will close and form2 (or form3, etc) will open. What code must I
write to make this happen? I am new to programming, so go easy on me
with the explanati... more >>
Adding multiple User Controls to a single placeholder
Posted by Sean at 2/27/2008 8:53:31 AM
I am attempting to dinamically add multiple user controls to the same placeholder based on information recieved from the database. Compilation works but both usercontrols are created one on top of the other. Any suggestions?
From http://www.developmentnow.com/g/36_0_0_0_0_0/dotnet-languages-csharp.... more >>
What functionality give the DataGridView Control in .net 2.0
Posted by TonyJ at 2/27/2008 8:24:07 AM
Hello!
My question is the following.
I use window forms with C# and just wonder if existing DataGridView Control
in .NET 2.0 support my needs see below ?
My need is to have a bound or unbound probably unbound grid with i rows and
j columns where i might !=j.
A cell is defined by the inter... more >>
empty lines
Posted by csharpula csharp at 2/27/2008 8:18:30 AM
Hello,
I read a file via Stream Reader which is associated with web response
from linux server and using Stream Writer to write to a text file.
I read a text file and for some reason I read an extra empty line which
is not part of the file.Why can it happen? Maybe it has something to do
wi... more >>
Regex for replacing all consecutive dashes to single dash
Posted by DotNetNewbie at 2/27/2008 8:10:02 AM
Hi,
I want to replace all consecutive (2 or more) dashes into a single
dash.
So text like "hello--world is-cool------ok?"
should become "hello-word is-cool-ok?"
so it doesn't effect anything except replace all consecutive dashes
into a single dash.
What would the regex look like?... more >>
Automation Excel 2003
Posted by Claude at 2/27/2008 6:50:02 AM
I added a COM reference of Excel 2003 object model so I can
drive Excel from my C# .net application.
I've added code in a button click to write on an Excel worksheet.
When I run my application and click on the button,
the application interrops and an error occurs :
"SecurityException was... more >>
List of functions in a class
Posted by Marco Balk at 2/27/2008 6:07:08 AM
I want to create my own ToString() function, which outputs a summary
of a class.
How can I retrieve a list of functions in a class?
I want to try to get the following output (this will be a nice HTML
list):
Class foo
- functions:
--- static function static_foo()
--- public function publi... more >>
httpWebRequest issue
Posted by gerbrand colombier at 2/27/2008 5:33:27 AM
Hello,
I hope somebody has a good explanation for this issue.
Okay I'm having troubles with the httpWebRequest method. I need to
download reports from a specified server (can't give these details). Now
I don't have trouble with an "HTTPS" url but I with an "HTTP" url I get
the error :
er... more >>
Stream Writer and Reader
Posted by csharpula csharp at 2/27/2008 4:37:31 AM
Hello,
I am using StreamWriter and StreamReader in order to read from a storage
which is being updated once in a while.
How should I implement it? Should I initilize reader and writer each
time? How can I insure that the writing in the file is done from the
last written line an d not overriding... more >>
Trouble with UserControl
Posted by Przemek at 2/27/2008 4:24:55 AM
Hello,
I write a little UserControl
-------
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
namespace UserControlPoint
{
public class ChartPoint : System.Windows.Forms.... more >>
Exposing enums, properties and variables
Posted by alexia.bee@gmail.com at 2/27/2008 3:46:50 AM
Hi,
I created dll class library which I exposed methods on it.
I want to expose enums, properties and variables. The problem is that
I don't have an idea.
This is what I do:
namespace EIServices
{
[Guid("673fcdbf-2bdb-4d05-9560-886bdc81294b")]
[InterfaceType(ComInterfaceType.... more >>
.net 2 serial port communications
Posted by fletch1963@gmail.com at 2/27/2008 1:27:21 AM
Hi All
I wrote a application that communicates via the . net 2 serial port
class. It works fine on Win XP pro
but now I need to run it on Win 2003 server. On Win2003 server the
ouput to the serial port is completely different and no longer
communicates properly. I suspect it has something t... more >>
How to close FileDialog using code???
Posted by Mohit at 2/27/2008 12:04:21 AM
Hi all,
I am opening a FileDialog on a different thread(as per client
requirements:-( ). Now whenever user closes the main window from
which FileDialog was opened, then I want that the associated
FileDialog should also gets closed.
I am having hard luck in finding anything by which I can... more >>
Managed GUID to unsafe win32 GUID struct
Posted by Pål A. at 2/27/2008 12:01:09 AM
I need to convert a managed GUID (or GUID in string format) into an
unsafe win32 GUID struct. Any ideas?
How to convert this:
string DEVICECLASS = "{a5dcbf10-6530-11d2-901f-00c04fb951ed}";
into an instance of this:
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GUID
{
pub... more >>
|