all groups > c# > december 2007 > threads for monday december 10
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
DataView - Integer Sorting
Posted by Mansi Shah at 12/10/2007 9:55:53 PM
Hi All,
I have used gridview in my application and i m using dataview to sort
the grid. But when i sort the numeric column, dataview sorts it like a
string.
So, after sorting, instead of getting 1,3,11.... i get 1,11,3... in asc
and 3,1,11 in dec..
Anybody has idea regarding this???
R... more >>
Prevent users from reading application generated files
Posted by Mohit at 12/10/2007 9:49:11 PM
Hi Experts,
I am working on a windows application that generates few text
files and saves it onto the disk. Now I want that only my application
can read the files i.e. I don't want the user to open and read
application generated file from windows explorer. My main purpose is
that file shoul... more >>
Is Sql Server Express embedded with Visual Web Developer 2008 Express?
Posted by Jeff at 12/10/2007 6:50:19 PM
Hey
I'm wonder if installing Visual Web Developer 2008 Express version an
Express version of Sql Server 2005/2008 will be installed too or must Sql
Server Express be installed separately??
... more >>
explicit cast between generic types
Posted by Jon at 12/10/2007 6:16:40 PM
Hi,
When I try to compile the following generic class, the compiler gives
me many errors "Cannot conver type '...' to '...'" on the lines
indicated. Besides, the C# compiler gives me errors even if I don't
declare and instantiate C_Filter_MA<Ti,Ts> in my program.
Ti and Ts should be one of {B... more >>
Excel add-in in C#: How to format the cell?
Posted by Aaron Fude at 12/10/2007 4:44:30 PM
Hi,
Is it possible to write an Excel function that no only returns a
value, but also formats the cell in a certain way.
An example of such a function is "=today()" with formats the cell as a
Date.
Thanks!
Pavel... more >>
XmlException - The ':' character, hexadecimal value 0x3A, cannot be included in a name
Posted by simon.vriesema@nrw.qld.gov.au at 12/10/2007 4:38:32 PM
Hi Guys,
Ive seen this posted around on the interwibble a few times, but no
post so far has helped me to understand the problem any better
i appreciate the error is because of "well-formed" xml practices
what i am trying to do however is read an "xml" file using the
following code snipp... more >>
Vis Studio C# 2005 Express
Posted by news.microsoft.com at 12/10/2007 2:42:46 PM
Is this still available somewhere for download?
Can someone provide the URL?
TIA-
... more >>
using = <type> directive
Posted by Dylan Nicholson at 12/10/2007 2:41:35 PM
Can someone confirm that a) is illegal, and b) the solution?
a)
namespace Test
{
struct MyStruct
{
int a;
int b;
}
using MyQueue = System.Collections.Generic.Queue<MyStruct>;
class MyClass
{
MyQueue q = new MyQueue();
}
}
b)
namespace... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Can't create a User Control
Posted by Carl Johansson at 12/10/2007 2:29:23 PM
I'm trying to learn how to create a user control. As far as I can
understand, Visual Studio contains a template named "Windows Control
Library" to this end. However, this template is missing when I open the
"New Project" dialog in Visual C# 2005 Express Edition.
What I can do is add a "Use... more >>
My C# app very slow on Vista
Posted by Katit at 12/10/2007 1:30:18 PM
Hi!
I installed my app on clients Vista machine. It's very slow when it
does database update and TCP messaging. I'm not sure which operation
slow.
Is there any know-how on what could be wrong? How would you approach
troubleshooting?
I can place some logging, this way I can figure what ex... more >>
ThreadPool Deadlocks with SQL - suggestions and workaround?
Posted by Chris Mullins [MVP - C#] at 12/10/2007 1:23:49 PM
All the talking about deadlocking the threadpool recently got me thinking.
I'm just throwing this out there to promote some discussion on the topic,
and hopefully see if some good ideas pop up...
When I first encountered the Threadpool deadlock issues, it was due to
calling synchronously ca... more >>
Activator.CreateInstance problem
Posted by Soulless at 12/10/2007 1:21:08 PM
I have added a method to my main form that is generic and will open a
window given the window name as a string. Unfortunatley, it fails...
Here is the method:
private void OpenWindow(string asFormName)
{
foreach (Form f in this.MdiChildren)
{
... more >>
regular expression 'or-ed' - doesnt work!
Posted by Jonathan Sion at 12/10/2007 12:02:55 PM
Hi,
I'm totally new to this forum, and relatively new to regexp. What I am
looking for is an expression that in a pieace of TSQL code, will move
the function header, and then all whitespaces in it. I came up with
this one:
\s||(^(.|\n)*((create\s*view)|(create\s*proc)|(create\s*function)|
(c... more >>
using directx8 and c#
Posted by colin at 12/10/2007 11:59:46 AM
Hi,
Is there an easy way to do 3d drawing using drect3d8 devices in c# ?
please dont suggest using directx9 unless there is a way to use directx9 on
devices with only direct3d8 support.
the managed directx9 such as XNA does not support devices with direct3d8
only,
the software rasterizer wor... more >>
using Assembly.Load / Statics / Singelton-Objects
Posted by Peter at 12/10/2007 11:49:31 AM
Hi
I can create types from dynamic loaaded assemblies (Assembly.Load)
with Assembly.GetTyp( <typename> ) - OK
I need a reference to the assembly (just Type.GetType() do not work )
now my question.
1) If i need different Types/Objects of the same Assembly in different
app.sections, should... more >>
It it possible to redirect events?
Posted by Sin Jeong-hun at 12/10/2007 11:31:48 AM
class Manager
{
public event ItemEventHandler ItHappened;
public Manager
{
Item i;
i.ItHappend+=new ItemEventHandler(OnItHappened);
}
void OnItHappened(...)
{
this.ItHappened();
}
}
class Item
{
public event ItemEventHandler ItHapped;
}
Above are simplified version ... more >>
Regex - Matching URLS
Posted by Mick Walker at 12/10/2007 10:49:53 AM
Hi,
I am using the following function to match any URLS from within a string
containing the html of a webpage:
public List<string> DumpHrefs(String inputString)
{
Regex r;
Match m;
List<string> LstURLs = new List<string>();
... more >>
Getting Internet Explorer Security Settings
Posted by jd at 12/10/2007 10:37:18 AM
Hi, I have an application that uses embedded IE windows, which doesn't
work if the user has set their IE security settings to high. Is there
any way to programmatically obtain the security settings for Internet
Explorer for the current user?
I had a brief look through the registry but by compa... more >>
Hide app icon on Alt + Tab
Posted by Alexander Vasilevsky at 12/10/2007 10:34:54 AM
How to prevent the emergence of applications icons in the window, the
operating system's displayed when you press Alt + Tab combination?
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
... more >>
Windows Installer Custom Action cannot do xcopy?
Posted by Dave at 12/10/2007 10:33:15 AM
I'm trying to do the following xcopy from my Windows installer and it
doesn't work. I even tried running the installer as user with
credentials instead of LocalService. I'm running in 2003Server, so
its not a vista issue.
Any ideas why i cannot do this xcopy from my installer, yet it works
... more >>
NHibernate mapping
Posted by David Veeneman at 12/10/2007 10:07:17 AM
I'm relatively new to NHibernate, and I am trying to figure out how to map a
collection. I know how to map a collection that is held directly by a parent
class, such as an Order class with an OrderItems property that is a
List<OrderItem>. But what if the collection is held in an intermediate
... more >>
Division Question
Posted by TisMe at 12/10/2007 9:52:19 AM
Hi All,
The code below works as expected, returning 0.2857143
public partial class tests : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Single myVal = (float)200.00 / (float)700.00;
this.Label1.Text = myVal.ToString();
}
}
... more >>
Islamic Manners (1): Sidq (Truthfulness
Posted by abdo911 at 12/10/2007 9:20:34 AM
All=E2h, Exalted is He says, "You who have faith! Have taqw=E2 of All=E2h
and be with the truthful"; "...being true to All=E2h would be better
for
them"; "... men and women who are truthful...All=E2h has prepared for
them
forgiveness and an immense reward"; "Among the believers are those
who... more >>
Gridview Column Width
Posted by Yin99 at 12/10/2007 8:36:25 AM
I have a Gridview binding to a DataTable source. I'd like to set the
column with of the second column. I cannot do this apparently because
when AutoGenerateColumns=true, they do not appear in the columns
collection.
I modified the RowCreated even to gridview, and I can change
properties on ... more >>
Using Interface to dispose and null and object
Posted by Daniel Jeffrey at 12/10/2007 8:19:11 AM
I may be on the wrong track here but I thought I could do this, but it isn't
working.
I have a class which I have used a interface to define.
This class is then inherited from, and many of them are used (conditionally)
on a form.
In order to simplify my dispose area, I thought I could u... more >>
distinct value in dataview
Posted by rodchar at 12/10/2007 8:13:06 AM
hey all,
i have a dataview with a single column in it which contains duplicates. What
is the best way to eliminate the duplicates rows so i can turn this column
into the primary key?
thanks,
rodchar... more >>
Call c++ function from c# with some difficult parameters
Posted by capiccc@gmx.de at 12/10/2007 7:45:56 AM
Hello together
i just have a little bit tricky question about calling a function out
of a compiled c++ dll (which do some special mathematic thing) from a
c# application. The c# application works as cgi and should do, as
said, some mathematical iterative things (the Levenberg-Marquardt
method... more >>
Clocktime Resolution
Posted by IdleBrain at 12/10/2007 7:41:59 AM
I am trying to convert long system clock time (1.2841535619381043E+17)
to Date Time as {{12/7/2007 17:21:22XXX.XXX } ie in order of us.
I receive clock time as string object type. So I have tried something
like:
strValue = Convert.ToString("1.2841535619381043E+17");
longValue = long.Parse(s... more >>
IDataReader
Posted by RP at 12/10/2007 6:59:47 AM
I saw a code in a class where IDataReader is used to retrieve result
from query, even if only one column is to be retrieved. It uses a
CommandObject with ExecuteReader but not using ExecuteScalar.
For what IDataReader is used and what are the benefits of it as
compared to sime DataReader.... more >>
User Control Issues
Posted by cfps.Christian at 12/10/2007 6:12:20 AM
I've created 4 user controls. 1 is the main control that holds the
other 3. When the form loads it takes an object and creates the first
user control which in turn takes aspects of the objects and creates
the other three user controls. In the new event of the three user
controls I set the val... more >>
Barcode scanning help desperately needed!
Posted by jim at 12/10/2007 5:55:45 AM
I need to have 2 simple barcode reader applications finished by midnight
tonight. I have never written any barcode reader software and need any help
that you may be able to offer.
I do not know what type of barcode the user will have, so I need to be able
to accept input from any industry ... more >>
Service Crashing
Posted by Cuong Tong at 12/10/2007 5:49:20 AM
I ran my service and it crashes everynow and then. The following log is recoreded
in the Application Event viewer
An unhandled win32 exception occurred in XYZService.exe [9204]. Just-In-Time
debugging this exception failed with the following error: Debugger could
not be started because no u... more >>
Load Users from Active Directory
Posted by Sehboo at 12/10/2007 5:42:04 AM
I posted this in another group as well...but now I am trying my luck
here...
I have followign method which loads users from active directory
private List<String> GetUserLoginsFromAD()
{
List<String> results = new List<string>();
DirectorySearcher srch = new DirectoryS... more >>
Changing activating button
Posted by Advait Mohan Raut at 12/10/2007 3:27:30 AM
Hello friends,
In my winwows form, I have two text boxes - textbox1 & textbox2 also
the form has two buttons - button1 & button2.
button1 will work for textbox1 and button2 will work for textbox2 .
In other words, if type something in textbox1 and press Enter, button1
should be pressed and ... more >>
Create setup
Posted by Christian Havel at 12/10/2007 2:53:00 AM
Hi,
I want to create a setup for my C# 2.0 exe application.
Exists there a project type for this in Visual Studio 2005?
Is there something to consider (some traps I should know)?
Christian... more >>
Any pointer to get C#/Java interaction?
Posted by christery@gmail.com at 12/10/2007 2:40:59 AM
Got at java consumer to a producer that I want to connect to a pref.
C# or some other .net app,
on the producer side we went with java->jni- (thanks javah)>C->fortran
program connecting to our rdb database but I hope thats not the thing
to do on the windows end...
can it be done in a more s... more >>
C# lib to read and write ID3 tags of MP3 files
Posted by Veerle at 12/10/2007 2:36:16 AM
Hi,
I haven't been able to find a good tool to modify and manage the ID3
tags of my MP3 files in the way I want, so I decided to write my own
tool. Looking for a free .NET library on the internet to read and
write the ID3 tags v1 and v2 of the MP3 files the choice is rather
limited.
I trie... more >>
Logging
Posted by Christian Havel at 12/10/2007 12:50:03 AM
Hi,
I am using C# 2.0. Exists any .NET build-in feature for logging or any good
freeware tool?
Christian... more >>
Managed class inherit from unmanaged class
Posted by ttc at 12/10/2007 12:03:41 AM
Hi All,
I have a managed class that inherits from an unmanged class. The question
is, if the object of the manged class get garbage collected, will the memory
be free automatically for me or only the bit that is used by the managed
code? What about the unmanaged bit?
Does anyone know of ... more >>
|