all groups > c# > november 2007 > threads for thursday november 22
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
Need help with handling a time field
Posted by news.microsoft.com at 11/22/2007 10:56:48 PM
I have a form field that accepts a start time and one that accepts an end
time. I am using a masked editor that allows the user to enter the hour and
minutes and am and pm. When I save the form how do I add the current date
to the time to be able to save it to the sql server table? I really... more >>
[?] ERROR_HOOK_NEEDS_HMOD during installing system hook
Posted by Gambero at 11/22/2007 8:04:56 PM
Hi, i want to do system hook WH_SYSMSGFILTER,
my code is:
IntPtr hMod =
Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]);
//install hook
hSysMsgHook = Api.User32.SetWindowsHookEx(WH_SYSMSGFILTER,
SysMsgHookProcedure, hMod, 0);
//If SetWindowsHookex fails.
if (hSysMsg... more >>
XML file
Posted by R.A.F. at 11/22/2007 7:48:49 PM
Hi,
I would like to know if there is a particular method to create a blank
XML file, with only following lines:
<?xml version="1.0" encoding="utf-8"?>
<Settings>
</Settings>
where <Settings> is the root node.
thx.
RAF... more >>
Catching Exceptions
Posted by Jeffrey Walton at 11/22/2007 5:57:16 PM
Hi All,
I derived an EncodingException from Exception. In my code, when I
catch an OverflowException I throw a new EncodingException. The catch
and new-throw executes fine.
However, the code I am trying to guard never catches an exceptions.
The guarded code is below. I've read Jeffrey Richt... more >>
MSDN download issues
Posted by DeveloperX at 11/22/2007 5:45:32 PM
I'm starting to lose my rag. My Internet connection has stayed up but
for the third night running I've had a fatal error downloading VS 2008
pro at about 60pc on MSDN. Is anyone getting any joy on this? I'm not
paying for shipped DVD's because MS can't figure out how to deliver
content online. I... more >>
Clarification req'd
Posted by JohnS at 11/22/2007 3:20:01 PM
Hi there,
Can someone briefly take a look here:
http://msdn2.microsoft.com/en-us/library/4eeya3de(VS.80).aspx
And search for "Possible Error Using VSLangProj Assemblies with EnvDTE =
Assembly".
I don't currently get this error on my development machine but I don't =
fully understand al... more >>
System.Net.Mail and SSL
Posted by WIzmanG at 11/22/2007 1:51:56 PM
Hi all
I am having trouble with sending email via a C#2.0 application, I use
the same settings as I use in Outlook but I cannot get email to send.
I am trying to use SSL on port 465 and get the error below, If I disable
SSL and use port 587 all goes well.
I have been Googling for 2 days... more >>
DllImport C++ dll produces exception
Posted by bbembi_de@lycos.de at 11/22/2007 12:52:13 PM
Hello everyone,
I really need some help on this:
I have a C# console application.
I use DllImport to access a c++ dll.
In an extra thread I poll a method in this dll.
This works fine.
Now the problem:
I use the same code and put it in the simplest windows forms
application and then the a... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
newbie
Posted by Gigs_ at 11/22/2007 12:37:11 PM
why is this working
namespace ConsoleApplication2
{
class Database
{
public Database()
{
CommonField = 42;
}
public int CommonField; // doesn't this have to be declare before
constructor
public static void Main()
... more >>
strange copy&paste problem in VS2005
Posted by Jeff at 11/22/2007 11:35:09 AM
Hey
In VS2005 I've copied some text to the clipboard, but when I paste it, I get
something I previuosly added to the clipboard.
I thought a reboot of my computer would help, but it didn''t....
after this problem occured, I've done a test where I copyed text from
TextPad to vs2005 and th... more >>
Get selected files by using GetFiles does not work as expected
Posted by TonyJ at 11/22/2007 10:52:55 AM
Hello!
I use this static method GetFiles from the Directory class and I hope to get
only those files that have file extension ini but I get
all files that begin with ini as the file extension for example *.iniQ and
*.iniP and so on.
Directory.GetFiles(Directory.GetCurrentDirectory(), "*.ini... more >>
C# timestamp datatype?
Posted by Soulless at 11/22/2007 10:43:28 AM
Hi,
I am accessing a stored proc from within C# and the result of the proc
populate a dataset.
The problem is, the proc returns an int and a timestamp. I do not
need the timestamp and wish it was not there, but it is and my code
fails because I am not sure what I can send the timestamp to... more >>
C#, Excel and Access
Posted by R.A.F. at 11/22/2007 10:36:26 AM
Hi,
I have a dilema now regarding usage of Excel.
I do not have access to main DB (MS SQL), i only get a simple excel file
with particular data with which i must work.
as i want to use "as database", i was wondering if it is better to do
all queries (select ...) on this excel file or if i... more >>
interop - from .net 1.1 to 2.0
Posted by Ricardo Quintanilla at 11/22/2007 10:22:00 AM
is it possible from visual studio 2003 (C#) to add a reference to library
build on .net framework 2.0?
as far as i tried i can not do that, and i need to do that.
really thanks to who can help me... more >>
Modify text files by set back file pointer
Posted by TonyJ at 11/22/2007 9:42:21 AM
Hello!
I supposed to modify some text files. In the file(s) which consist of
different section. In one section you might have
Path = <Installation_path>. The program will then replace the text string
Installation_path with the path that was chosen in the installation
program. An example could... more >>
Write a program for modifying a file
Posted by TonyJ at 11/22/2007 8:53:13 AM
Hello!!
I'm supposed to write a program that modify a file with data that has been
entered in the installation program(inno setup).
This program will start after the install file has been created.
When the program start that modify the file(s) I don't want the console
window to appear.
I... more >>
Container structure
Posted by csharpula csharp at 11/22/2007 8:30:28 AM
Hello,
How can I create (with Gui companents) the following structure :
Creation of sublists (that i need to save and load) from a big list that
is presented to the user?
*** Sent via Developersdex http://www.developersdex.com ***... more >>
Design Pattern (maybe)
Posted by csharpula csharp at 11/22/2007 8:01:20 AM
Hello,
I got the following scenario :
ComboBox in UI where the user chooses one of the options and according
to his/her choise - I create new object (or sub form). What is the best
way doing it? (I can do switch with cases but it seems not good enough)
Thanks!
*** Sent via Developersdex ... more >>
VS 2008 available in french?
Posted by Kerem Gümrükcü at 11/22/2007 7:56:02 AM
Hi,
does anbody know when the VS 2008 will be available
"en francais", in french. I also would take a french trial
if available. Great would be a Team Suite as a trial. I
have some fellow developers who prefer the french
language and sometimes i had to do the same, when its
time to meet our ... more >>
C# 2.0.50727 compiler crashes
Posted by tsahiasher@gmail.com at 11/22/2007 7:28:38 AM
the following code crashes my csc.exe (visual studio 2005):
project Base
references: System
BaseClass.cs:
namespace Base
{
public class BaseClass<T>
{
public void BaseFunc()
{
Console.WriteLine("BaseFunc");
}
}
}
project Type
referen... more >>
ODBCConnection how to prompt for user+pass when having a DSN
Posted by roundcrisis at 11/22/2007 7:00:54 AM
That is the whole question
I have a lsit of DSN availables and to use these for an ODBC
connection I would mostly need to prompt for username and password,
how can i do this?
Thanks... more >>
enabling remote desktop in windows xp
Posted by fkucuk@gmail.com at 11/22/2007 6:57:28 AM
hi,
how can i enable or disable "Allow users to connect remotely to this
computer" option under the SystemProperties / Remote with c# code?
... more >>
how to add sub-items to context menu items
Posted by weird0 at 11/22/2007 6:23:17 AM
private void treeView1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right) // detect Right
click
{
TreeNode selectedNode = treeView1.GetNodeAt(e.X,
e.Y);
ContextMenu cMenu = new ContextMenu();
... more >>
problems using the tablelayoutpanel in VS2005
Posted by lars.mollerup@nve.no at 11/22/2007 6:21:42 AM
Sorry if I am posting in wrong group...
I am having a problem adding controls dynamically to this control
( using tablelayoutpanel.add(col,row)).
I am doing this to a cell where there is an existing control. I
thought this would just move the existing control to the next
available cell and ... more >>
How to check word, excel are installed in the machine
Posted by santel at 11/22/2007 5:43:03 AM
Hi,
How to check whether the MSOffice files like word, excel, powerpoint
are installed in the machine or not? Anyone please help!
... more >>
Can i set the request parameter in asp.net
Posted by Navaneet at 11/22/2007 4:38:26 AM
Hi,
I need to set a request parameter, is it possible?
If yes, how?
Actually i have a sever side code(in vb) like.
if trim(request("addCustomCD")) = "1" then
--
--
end if
At the end of this if, i need to set addCustomCD to 0.
Thanks,
-Kumar N... more >>
soapmessage c# windows app help
Posted by plork at 11/22/2007 3:47:43 AM
hi all
can someone help me out
i'm trying to get the soap message from a web service call in my c#
code. i'm using .net 2 and vs 2005
SoapMessage message;
message.GetReturnValue();
but it says Use of unassigned local variable 'message'
is anyone able to help... more >>
using CLR Stored Procedure
Posted by lausivcid at 11/22/2007 2:51:12 AM
Hi,
Is it possible to read the SqlContext.Pipe.Send? string output of a
SQL Server 2005 CLR Stored Procedure in an external WinForms C#
project?
Thanks,
Lausivcid
... more >>
getting the response message from web service call
Posted by plork at 11/22/2007 2:21:00 AM
hi all i'm calling a web service method and can get it's results just
fine however i want to grab the repsonse message from the call
is anyone able to tell me how i do this?
results = service.getMethod(a, b, c, d)
then iterating through
for (int i = 0; i < results .Length; i++)
{
st... more >>
Opening Folder Browse Dialog On Client Side Options
Posted by Moshiko at 11/22/2007 12:08:10 AM
Hi guys,
I am writing a website and I would like to write a user control
(ActiveX? DLL?) that can open the Windows Folder Browse Dialog from
the client.
I do have a user control (a DLL project) that opens the relevant
Dialog box.
I have problems integrating it in my website - I woul... more >>
|