all groups > c# > april 2007 > threads for wednesday april 11
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
Retrieving date from sql server.
Posted by Pawel at 4/11/2007 11:59:07 PM
Hi!
I'm writting form applications wich will open files (*.doc, *.dsw, etc)
directly from database at the moment.
I read data from row (image column) and with reader and fill in data to byte
table (byte[]).
And how can I open the other aplication and load the data (byte[]).
I don't want t... more >>
A problem with System.Configuration namespace
Posted by Jyothi Kumar at 4/11/2007 10:50:01 PM
Hi, my project is a migrated project from VS 2003 to VS 2005, in this project I used System.Configuration.ConfigurationSettings.AppSettings, now in VS 2005 it is giving a warning Message like:
ConfigurationSettings.AppSettings is Obsolete, please replace with ConfigurationManager.AppSettings, but I... more >>
I am having difficulty in converting string to datetime
Posted by Ambrose at 4/11/2007 10:49:39 PM
"31-03-2007 10:00:00 AM" to Datetime .Regional Local settings is dutch
(NL).Please help me .
... more >>
re: updating dataset date fields in xml web services
Posted by Walter Mark Worsfold at 4/11/2007 8:52:41 PM
Hi,
Does anyone know how to pass dates via dataset updates in xml web services
under vs.net 2003, as the dates cause errors of null exception; even though
I pass valid dates. Have already found out that certain data adapter
commands don't work.
--
Regards
Walter Mark Worsfold MCP
h... more >>
Q: Newbe quiz. MDI Forms...
Posted by Martin Arvidsson, Visual Systems AB at 4/11/2007 7:41:25 PM
Hi!
Before i am going to write my app, i need to ask two questions.
1. Is the MDI about to dissapear? What style of programing should you apply?
2. Did a little experiment with MDI forms. Created a MDI parent with menus
and all (from the template) Created a child. How can i from the child ... more >>
install assembly in GAC
Posted by fairyvoice at 4/11/2007 6:54:00 PM
i create a project and sign it with strong name then i build it into an
assembly as a dll file.
after these i use "gacutil /i assembly.dll" command in command line to
install the assembly and it told me the installation was successful, and i
did find the assemly.dll in c:\windows\assembly, it... more >>
DateTime and ParseExact
Posted by sippyuconn at 4/11/2007 6:02:00 PM
Hi
Why does this alway return false ????
I would think I have all the correct formats
Is there a built in format ie f,F,g,G for datetime with AM/PM ???
Thanks
string[] dateFormats = { "f", "F", "g", "G",
"dd-MM-yyyy hh:mm tt",
... more >>
set focus on the program with win32
Posted by Vinki at 4/11/2007 4:36:00 PM
Hello Everyone,
I am not sure what am I doing wrong here. I spend almost whole day working
on this. I am trying to set focus on the process that I started by
Process.start. Below is my code
Process process;
process = new Process();
process.StartInfo.UseShellExecute = false;
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
sql parameter
Posted by MikeJ at 4/11/2007 4:15:06 PM
example below can we get a parameter by name or have to use the indexOf
SqlCommand cmd = new SqlCommand("proc_ERRORLOG_INSERT", oConn);
cmd.CommandType = CommandType.StoredProcedure;
SqlParameter param = new SqlParameter();
cmd.Parameters.Add("@Fileid", SqlDbType.Int).Value=99999;
cmd... more >>
Where do I get Crystal_regwiz merge modules?
Posted by Tom Jones at 4/11/2007 3:36:07 PM
I have an application that was originally built using Visual Studio 2003
that I upgraded to Visual Studio 2005. When I attempt to build the *.msi
file in the deployment project, I am getting a compile error stating that it
cannot find: "C:\Program Files\Common Files\Merge
Modules\Crystal_re... more >>
C# generic function
Posted by Tao at 4/11/2007 3:16:30 PM
hi.. group
I have a question about generic fucntion. Let us say, I have a function
F<T>(int a);
can I do something like:
Type type = obj.GetType();
F<type>(3);
thanks.
... more >>
Delegate is using the wrong value
Posted by james at 4/11/2007 2:26:23 PM
(Sorry if this is a double post)
Hi Guys,
I am creating a delegate a couple times and passing in a local
variable. However, when the delegate is invoked it uses the variable
passed into the last created instance (sorry that was a mouthful).
Here is an example from my code:
private void ... more >>
Problem passing a Valuetype to a Delegate?
Posted by james at 4/11/2007 2:15:57 PM
Hi guys,
I create a delegate and pass in a local variable. When the variable
is a reference type everything works fine, but when it is a valuetype
the delegate uses the value of the last instance that was created
(sorry that was a mouthful). Heres an example of the problem:
private void d... more >>
Better path/filename regex?
Posted by sherifffruitfly at 4/11/2007 1:38:21 PM
This is the best I could quickly come up with:
(?<path>[a-z]:\\(?:[^\\]+\\)+)(?<filename>.+?\.[\S]+)
It's certainly too permissive, but I don't *think* it leaves any valid
ones out (I'm sure a counterexample is only seconds away... :) ).
Many thanks if you have a better one...
cdj
... more >>
Partially compare two strings
Posted by codingeek NO[at]SPAM gmail.com at 4/11/2007 12:21:28 PM
I can't seem to find the right keywords to find the google to my
problem.
I need to find out if two strings have a partial match within each
other.
I am using it do to URL comparisons for an httpmodule I am writing.
For me, I want a regex or simple algorithm to make statements like
this ... more >>
Converting to generics
Posted by Frank Rizzo at 4/11/2007 12:00:48 PM
Given the inneficiencies of ArrayList and Hashtable on 64-bit systems, I
am converting them to List<> and Dictionary<> respectively. It's a
pretty massive system, so there are a lot of casts. For instance.
ArrayList aaa = new ArrayList();
aaa.Add(new Customer());
aaa.Add(new Customer());
... more >>
[OT] Looking for algorithm
Posted by Chris Dunaway at 4/11/2007 11:28:36 AM
I am posting this here because I think someone here will either know
the answer or know a better place for me to ask this question.
I am looking for an algorithm to provide AI for a Tic Tac Toe (aka
Naughts and Crosses) style game. But not necessarily for Tic Tac
Toe.
I'm looking for an al... more >>
Control XML Serialization element name
Posted by Hardy Wang at 4/11/2007 11:12:01 AM
Hi all,
I want to control element name of a collection in XML serialization,
[Serializable()]
public class MatchedServiceItem {
[XmlArrayItem(ElementName = "ServiceList")]
public List<int[]> MatchedServiceIDs;
}
Then I get following result
<?xml version="1.0" encoding="utf-8"?>
<Setting... more >>
Passing arguments to call a javscript function from aspx.cs file
Posted by moni at 4/11/2007 11:01:44 AM
Hi..
I am trying to use javascript for google maps display.
If I call the javascript function from my aspx file I use:
<input type="text" id="addresstext" value="Huntington Avenue,
Boston, MA" name="yourName" style="width: 287px" />
<input type="button" id="addressclick" value="... more >>
C# & ADO - Multi-threaded web app
Posted by Xataraxx at 4/11/2007 10:58:32 AM
I'm somewhat new to C# & .Net, so pardon what might be a silly
question...
I'm in the process of building a web application that needs to make
pretty heavy use of a backend database (MySQL, if it matters).
Obviously the DB access needs to be thread-safe. Or at least I think
it does. Which... more >>
Bad memory leak in C# ActiveX control in Internet Explorer
Posted by Adam Clauss at 4/11/2007 9:45:08 AM
We have created an ActiveX control (a series of them actually) which can be
loaded into Internet Explorer and accessed via Javascript using the
techniques described here:
http://support.microsoft.com/kb/555687/en-us
Functionally, everything is working as we expect. We can access the C# data... more >>
Creating a deterministic polling thread
Posted by LordHog NO[at]SPAM gmail.com at 4/11/2007 9:35:25 AM
Hello all,
I have a little application that needs to poll a device (CAN
communications) every 10 to 15 ms otherwise the hardware buffer might
overflow when there are message burst on the bus. I would implement an
interrupt driven model, but the external device (which is connected
via USB) d... more >>
enum in constructor
Posted by Колева at 4/11/2007 9:30:02 AM
I want to use an enum field in a constructor.
For example:
class Student
{
private string name;
private enum university {.....};
private byte course;
......
public Student ( string name, enum university)
{
.........
}
I'm fairly new to programm... more >>
Constants and thread safety
Posted by paul.hester NO[at]SPAM gmail.com at 4/11/2007 8:45:17 AM
Hi all,
All of the classes in my DAL are static, with constants defining the
stored procedures and parameters. I've been having some problems with
my site which makes me wonder if there's a thread safety issue.
Are consts thread safe? Would the following example create any thread
safety iss... more >>
reuse object
Posted by Henrik Zawischa at 4/11/2007 7:52:00 AM
Hi,
this is probably a newbie question par excellence. Would appreciate help
nonetheless. I have just started with C# and ran into a problem.
I have created a class with several properties and methods. In one of the
methods (main actually) I create an instance of a special log file class. ... more >>
Write One Control, Use with Forms App & Web App?
Posted by Naeem at 4/11/2007 7:42:03 AM
Is it possible to write one control and use it in both a .net forms
application and a .net web application?... more >>
Unmanged dll hangs
Posted by sonic1981 NO[at]SPAM googlemail.com at 4/11/2007 7:36:35 AM
Hi Everyone
I'm trying to access an unmanged dll from ASP.Net (C#). I'm basically
calling a logon method within the dll but when I get to this method
call the system hangs? I've checked all the security, i.e. the ASPNet
account has access to the System32(where the dll resides) and I've
added ... more >>
SQL Connection in app.config question...
Posted by Joe at 4/11/2007 7:34:01 AM
I'd like to specify the connection string to the SQL Server so that I can just
refer to it instead of the full connection string.
Here's what I have:
<app.config>
<appSettings>
<add key="SQLDBConn",value="Server=SqlSrvr;Database=DBName;User
ID=uid;Password=pwd;Trusted_Connection=False" />
... more >>
How can I run this line from within a C# console app?
Posted by Ronald S. Cook at 4/11/2007 6:58:38 AM
I have the following line that I wish to execute from within a C# Console
Application.
svcutil.exe http://localhost/COWFeedyardService/Services/Animal.svc
/out:Animal.vb /config:App.config
Manually, I can open the Windows SDK Command Prompt and type exactly the
above and it works. But h... more >>
.Net UI Components
Posted by zivlaub NO[at]SPAM gmail.com at 4/11/2007 6:10:25 AM
Can anyone recommend me a third-partly .NET UI Component suite for
winforms applications?
... more >>
SmartClient - ASP.NET Issue
Posted by Mike at 4/11/2007 6:02:20 AM
Greetings, I have an aspx page where on it is a link that calls my
smartclient (a windows form) that opens up. When the user is done in
the form, he or she hits a button that saves data and closes the
form. I want the smartclient to call the opened browser (IE6 and
maybe 7 down the line) and r... more >>
URL of referring/calling page
Posted by Zeba at 4/11/2007 6:00:37 AM
Hi !
How do I get the URL of the page which has called the current page.
Say PageA.aspx calls PageB.aspx. How do I get PageA's url from the
Pre_Init function of PageB. I tried something like
Request.UrlReferrer.ToString()
But it gives me an Object not instantiated error.
Same with ... more >>
Getting the currently logged in user
Posted by simonlpwaters NO[at]SPAM gmail.com at 4/11/2007 4:17:59 AM
I need to obtain the username of the currently logged in user on a
machine. However, the program that needs to do this will be running
under different credentials to the logged in user, so using
Environment.UserName will give the user name of the user that is
running the program.
Any help wo... more >>
Nested Scope
Posted by AA2e72E at 4/11/2007 3:48:03 AM
Could someone give me a simple example of nested scope in C#, please?
I've searched Google for this but have not come up with anything that makes
it clear. I am looking at the ECMA guide and trying to understand Goto in
this contect.
PS: This is not homework.
... more >>
Combobox column in dataGridView
Posted by Jesper, Denmark at 4/11/2007 2:56:01 AM
Hi,
Why can't I type text in a DataGridViewComboBoxColumn in a DataGridView. I
can only select members in the drop down part of the combo box.
Regards
Jesper , Denmark... more >>
Convert Xml to xls using .net
Posted by dotnetnari at 4/11/2007 2:27:07 AM
hi,
How to Conevrt xml sheet into Excel document using
Consoleapplications in C#
Thanks..
... more >>
Property control like in Visual Studio Designer
Posted by Jan at 4/11/2007 1:26:01 AM
I could use a property control like the one in Visual Studio shown in
designer mode.
The grouped mode is not absolutely necessary for me - but would be nice to
have.
Anybody know one? - or maybe you can give a hint how to create one?
Thanks... more >>
Express formally Inheritance in a class with parameters - Either C# or VB
Posted by pamela fluente at 4/11/2007 1:03:27 AM
I have a question: either a C# or VB answer is perfectly fine. I want
to know if there is a way to tell a class that there is an inheritance
relationship between the type parameters.
I have a complex situation, but to make it easy I have reduced the
problem to the very essence.
Here is my s... more >>
This webpage freezes
Posted by tony lock at 4/11/2007 12:14:00 AM
Has anybody else noticed that this webpage freezes when viewed with IE7 on a
wide screen (1920*1200) when IE7 is maximised. Or is it just me, using Vista
Ultimate by the way.... more >>
Any MSFT guys around
Posted by L.W.C. Nirosh at 4/11/2007 12:00:00 AM
Hi All,
My apologies for posting this in two news groups...
I just need to develop a site that allow scrolling different part of the
page seperately, the required template is a one to one map of this
http://msdn2.microsoft.com/en-us/library/aa581778.aspx
Just like this I want my page to... more >>
|