all groups > c# > february 2008 > threads for wednesday february 6
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
Check Base64String.
Posted by Abhi at 2/6/2008 10:37:11 PM
How to check if provided string is Base64String.... more >>
generic datatypes
Posted by Tony Johansson at 2/6/2008 8:59:34 PM
Hello!
Here I have declared a queue consisting of ints which is a value type.
This is a queue of ints for example 5 int in the queue 6 7 8 4 7
Queue<int> intQueue = new Queue<int>();
Here I have a queue consisting of queue of ints
Each element in the queue is a queue of ints.
Queue<Queue... more >>
Generic object manipulation
Posted by dsmith@datasync.com at 2/6/2008 3:19:44 PM
I have a class to store a data array and associated metadata, and the
array can be constructed either as (for illustrative purposes) float
or short. I would like to convert this to a generic version of the
class to avoid a lot of extra type checking throughout the class, and
speed up certain fu... more >>
Invisible App Run
Posted by LVP at 2/6/2008 2:31:23 PM
Hi,
I have the need to run an on demand process (ProcessB) that is invisible.
I can not use a Windows Service unless I can trigger it OnDemand and the
Client will allow me to Install a Windows Service.
The Client is not willing to install a windows service.
So AppA runs ProcessB but Proces... more >>
Reference classes of a website project
Posted by Tem at 2/6/2008 2:21:01 PM
My solution has 2 website projects. I need to reference a class in Website
A's app_code folder in Website B. but I can't figure out what namespace to
use.
Can this be done?
Tem
... more >>
How to stop the excel process created in my code
Posted by DAXU at 2/6/2008 12:54:03 PM
Hello,
I did following code to open an excel sheet and now just close it. But
the problem is that the excel process created in my code is still
there when I use:
excelApp.Quit();
Marshal.ReleaseComObject(excelApp);
What else should I do to properly shutd... more >>
Disabling XAML designer on startup
Posted by sundarvenkata at 2/6/2008 12:22:28 PM
Hi All,
Is there a way to disable XAML designer while editing any XAML file?
It is very sluggish and gets on my nerve
Thanks,
Sundar... more >>
Regex question
Posted by D.J Bonlay at 2/6/2008 12:16:02 PM
Hi,
I am testing a regex string value and I am getting discrepancies in the resuls
If I use the following string in C# for a validation control:
RegularExpressionValidator3.ValidationExpression = "(?=.*\\d)[\\w]{8,8}";
I get different results than what I expect and from the results fro... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
_TIMESTAMP_ and __TIME__ equivalent in C#
Posted by Eitan at 2/6/2008 11:38:01 AM
Hello,
I would like to display a timestamp of when the application was compiled.
In C++ I used the _TIMESTAMP_ and __TIME__ etc.
Do we have anything equivalent in C# and .NET?
Thanks,
EitanB
... more >>
C# Resources.resx Question (VS2008)
Posted by NvrBst at 2/6/2008 11:24:03 AM
I need my resource file in a generic namespace to be accessable by a
shared class. I change the Resources.resx File Properties -> Custom
Tool Namespace: MyResources. This field is under the "Custom Tool:
ResXFileCodeGenerator" property.
This works fine. I can now access the resource like so... more >>
Which is faster for arrays - foreach or for ( i... ) ?
Posted by DoB at 2/6/2008 10:50:27 AM
Hi,
Given the following declaration:
object[] a = new object[SOME_BIG_NUMBER];
which code is faster?
1.
foreach ( object o in a )
DoSomethingWith(o);
2.
int iSize = a.Length;
int i;
foreach ( i = 0; i < iSize; i++ )
... more >>
Convert DateTime.Now() to SQL Server(tm) standard internal format for datetime
Posted by huohaodian@gmail.com at 2/6/2008 10:41:57 AM
Hi,
How can I convert a value created from DateTime.Now() to the datetime
format that SQL Server recognises?
Thanks in advance.
... more >>
64 bit configuration
Posted by bob_jeffcoat@hotmail.com at 2/6/2008 10:24:07 AM
Hi,
I'm trying to build my application for both 32 and 64 bit Windows but
my project references a non-managed Dll that comes in 2 formats, one
for 32 and one for 64. How do I set up my solution so that I can
build for both targets easily? Is it possible?
Also, are there any problems using 'u... more >>
Remote object equality
Posted by Looch at 2/6/2008 8:48:40 AM
All,
Given the two classes below:
namspace Namespace1
public class MyClass
{
public string test1;
public string test2;
}
..........
namespace Namespace2
public class MyClass
{
public string test1;
public string test2;
}
.........................
static void Main (stri... more >>
Picturebox displays error image after converting to VS2008
Posted by Rainer Queck at 2/6/2008 8:41:06 AM
Hello Microsoft Support,
It looks like there is a bug inside the VS2008 Pro IDE.
I did quite a bit of debugging to narrow the problem down. Here is the
result of my efforts:
A VS2005 project compiles and runs fine, built in VS 2005 Pro.
This application displays a bunch of thumb jpg images... more >>
Prevent Stream Ownership
Posted by jehugaleahsa@gmail.com at 2/6/2008 8:34:03 AM
Hello:
I have a memory stream that I am writing XML to. I have a declaration
like this:
MemoryStream memoryStream = new MemoryStream();
using (XmlWriter writer = new XmlTextWriter(new
StreamWriter(memoryStream)))
{
// do something
}
memoryStream.Seek(0, SeekOrigin.Begin); // this is... more >>
Constructorname.classname is inaccessible due to its protection le
Posted by Andrew at 2/6/2008 8:17:03 AM
I've got a compilation error. It says:
ConstructorName.ClassName is inaccessible due to its protection level
eg:
I've got a windows form with a button, when clicked it goes into code:
ClassName ABC = new ClassName();
ABC.TMsg(messagename);
Any ideas how to fix this ?
The class ClassName... more >>
Incorrect usage of threads
Posted by TonyJ at 2/6/2008 8:02:08 AM
Hello!
If I have a control in the form that is accessed by a different thread then
the one that was used when the control was created
I get "Cross-thread operation not valid: Control 'digital' accessed
from a thread other than the thread it was created on." which this mail is
about
As I have... more >>
Change NewLine for StreamReader
Posted by jehugaleahsa@gmail.com at 2/6/2008 7:53:22 AM
Hello:
I am reading a rather oddly formatted file being sent to us by an
outside source. I am wondering if there is a way to change what
StreamReader sees as a newline. It is searching for a \r\n, but the
file has newlines set as \r. Obviously, my StreamReader treats the
whole file as one lin... more >>
Creating header in datagridview
Posted by DBC User at 2/6/2008 7:45:55 AM
I would like to create a datagrid view, with columnheader and
rowheader, is it possible to do that? I know I can create column
header but never seen one example where you can create a row header as
well
Thanks.... more >>
Refreshing a Datagrid from another form.
Posted by SePp at 2/6/2008 6:22:50 AM
Hi all.
I want to refresh a Datagrid from another form.
For Example I have a Datagrid in that I want to edit data. The user
has the ability to press a button to change these data.
A new Form opens and the user changes the data. After that he saves
the changes and the current form is closing... more >>
Method level permission
Posted by Victor Hadianto at 2/6/2008 6:09:59 AM
Hi All,
Is it possible to set invoke permission at method level? For example
on a class:
public class MyClass
{
public void MethodA() { ... }
public void MethodB() { ... }
}
Can I somehow set that MethodA() and MethodB() will throw exception
depending who calls it? Yes I reali... more >>
Progress Bars and Threads
Posted by Malenfant at 2/6/2008 4:07:28 AM
I have a C# application that acts as a UI for a telecommunications
rebilling system which processes very large datasets. The entire
rebilling system is inside a single object which has a
percentageCompleted property that shows how much of the dataset has
been processed. I'd like to attach a prog... more >>
Type initializer threw exception
Posted by tshad at 2/6/2008 3:38:19 AM
I got the following error message when I had set a static string value to ""
or " ";
"The type initializer for "theSettings" threw an exception."
"The path is not of a legal form."
The variable is set as:
private static string logFilePath;
In a static function.
If I set logFilePath... more >>
Secure single sign on/automatic login
Posted by Samuel.cyprian@gmail.com at 2/6/2008 2:15:54 AM
Hi guys!
I need your input on how to solve a problem that we have.
Our company provides a web-service, a SaaS.
Our idea is to create a destop appilication that can communicate with
the web service using https.
I have written a .net app in C#, and I need ideas on how I can login a
user withou... more >>
Running an windows app in memory
Posted by cameljs18@yahoo.com at 2/6/2008 12:43:52 AM
Okay well maybe my heading isn't exactle right but what i want to do
is create a windows application that loads when the machine starts up
but instead of having it on the screen i just want it to be an icon on
the start bar in the right corner eg. Like where speaker volume
control is for instanc... more >>
Storing and logging with SQL server in QuickFix
Posted by Yasir Zaheer at 2/6/2008 12:29:38 AM
Hi,
I want to log and store my messages using a SQL Server Database in an
application using using QuickFixEngine (www.quickfixengine.org). The
documentation at the website says that
- I have to recompile the project, Commenting out the satement
"#define HAVE_ODBC 1" in the file "config_wind... more >>
|