all groups > dotnet general > september 2003 > threads for tuesday september 2
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
Importing text files
Posted by Va at 9/2/2003 10:51:05 PM
I am trying to import tab delimited text file into a
recordset. The code I am using is
conn_string = "Driver={Microsoft Text Driver (*.txt;
*.csv)};Dbq=c:\AMPS\Files\2538;DefaultDir=c:\temp;Extension
s=asc,csv,tab,txt;"
Set con = New ADODB.Connection
Set rst = New ADODB.Recor... more >>
Comparing strings
Posted by Dennieku at 9/2/2003 8:28:26 PM
Does anybody have an idea how to compare two strings?
What I want to know is the percentage of the differences between the strings
Thx,
Dennieku
... more >>
how to cast IntPtr to struct type
Posted by BestNews at 9/2/2003 6:28:00 PM
Hi all,
how to cast an System.IntPtr value to struct type.
Example:
protected override void WndProc(ref System.Windows.Forms.Message m)
{
const int WM_WINDOWPOSCHANGED = 0x0047;
if(m.Msg == WM_WINDOWPOSCHANGED)
{
string str="";
quickGetText(0,-1,ref str);
//HERE I NEED TO... more >>
Display Setup Question
Posted by Jessi_Right NO[at]SPAM yahoo.com at 9/2/2003 5:44:04 PM
Hello. I have just enrolled in a Visual Basic class, so please
forgive this very basic question about the display environment of the
VB Editor....
The illustrations in my textbook indicate that they can choose the
form that they have created in the Class View and, to the right of
that, the... more >>
Getting physical thread Id
Posted by Hayk at 9/2/2003 5:06:12 PM
Hello,
Does anyone know how to get the current thread's ID
in .Net (e.g., for logging purposes)?
The Thread class doesn't have thread Id member. There is
the Process.Threads property, which returns collection of
ProcessThread objects which have IDs, but then how do you
find out which one ... more >>
VB.Net Datareader skips first record in results
Posted by idletask NO[at]SPAM msn.com at 9/2/2003 4:30:06 PM
I'm having some trouble with this..
My VB datareader seems to skip the first record in the reader. I've
looked at my query in enterprise manager to confirm what I am suppose
to receive back, and what the data reader starts at is the second
record in the reader.
I've done read test to make ... more >>
Opening Multiple Windows
Posted by Evan Kontos at 9/2/2003 3:05:16 PM
I am using the window.open function to open a small window and I am
using GET to get values back from that window. I want to be able to open
another from the second window but I get an error message when I try to
do another window.open. Any suggestions are welcomed.
Evan Kontos | EKontos@comt... more >>
Selection rectangle drawing over eveything in its container
Posted by Philippe Meunier at 9/2/2003 2:47:14 PM
Hi,
I would like to know How I could draw a Dashed rectangle over everything in
a container. I will use this to draw a selection rectangle (like in VB.NET
Form Designer UI). And even it draws in invert colors I think, but this is
not necessary for now.
Can I do this with a usercontrol ? Bec... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.Net controls don't display
Posted by Scott Anderson at 9/2/2003 2:00:46 PM
I just installed VStudio.Net and although the ASP.Net
controls are fine in design view, they do not display on
the web page. Obviously something did not get
installed/configured correctly, but I have no idea what.
Thx.... more >>
passing results from javascript to code behind
Posted by Bruce Wiebe at 9/2/2003 12:38:46 PM
Hi all
i have the following code in a asp.net code behind page that pops up an
alert that at the moment shows the users screen height,
Dim str As String
str = str & "<SCRIPT LANGUAGE=JavaScript>alert(screen.height);</SCRIPT>"
Page.RegisterClientScriptBlock("myscript", str)
What i would l... more >>
Help with accessing webserver
Posted by Jeffery J. Morgan at 9/2/2003 11:49:19 AM
Hello,
I have a problem that I have not been able to resolve. I have a feeling that
it is related to a security policy, but not sure which one.
Within our domain, there are developers that are working on their local IIS
servers on .ASP projects. We have some Macintosh computers that we are
... more >>
compiler error messages have incorrect line numbers!
Posted by doug at 9/2/2003 11:01:38 AM
I am working on a C++ program in .NET. The compiler
generates error messages that are associated with the
wrong line numbers (which is extremely frustrating).
Also, the debugger arrow is positioned on the wrong line
after breakpoints and steps.
Can anyone explain this to me?
The follow... more >>
NEWBIE - How to survive the postback.
Posted by Jim Mitchell at 9/2/2003 10:26:44 AM
I load a table and a textbox on the initial pageload. The value in the
textbox survives the postback, the values in the table do not.
Is there a way for the values in the table control to survive a postback?
Thanks in advance.
... more >>
Merge XML files
Posted by MAF at 9/2/2003 10:02:06 AM
Is there a quick way to merge two XML files
example A
<TestNode>
<Data>123</Data>
</TestNode>
<TestNode>
<Data>123</Data>
<Data>222</Data>
<Data>333</Data>
</TestNode>
<Next Data>
"Hello World"
</Next Data>
Result would be
<TestNode>
<Data>222</Data>
... more >>
Data Types
Posted by serban at 9/2/2003 7:52:41 AM
Hello
What is the difference between these lines:
Private Shared s as [String]
Private Shared s as String
Thank you
serban... more >>
Simple - Show Form
Posted by danp NO[at]SPAM solidservices.net at 9/2/2003 7:34:21 AM
I am new to VB.NET and I have a simple question. How do I show a form
from a command button click event? The code I have below is not
working. I am trying to show the form frmAgent. What am I missing?
Private Sub cmdNewAgent_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Han... more >>
OCX in ASPX
Posted by Robert at 9/2/2003 7:03:41 AM
Two ways:
1. Create the OCX by dropping it on the page.
2. Create it dynamically on page load.
With method 1. The OCX appears but can't change its
properties or call its fuctions.
With method 2. The OCX never appears, and can't figure out
how to add it to the page, but its properties and... more >>
getting the application handle
Posted by dewisch at 9/2/2003 4:00:18 AM
i have made a dll which will be used by web and
windowsapplication.
now i need a handle to the application, which uses my dll.
is there any way to do this?
thx in advance
dewisch... more >>
Paging in ASP.NET without using Datagrid
Posted by krish_sathya NO[at]SPAM rediffmail.com at 9/2/2003 12:48:25 AM
Hi all
I have aspx file which consists of html tables and displays records
from the database.I need to do paging displaying only 10 records at a
time.
Thanks for the help
Regards
Sathya... more >>
Intellisense with C# and multi-file assembly
Posted by Frank Jona at 9/2/2003 12:12:28 AM
Intellisense with C# and a multi-file assembly is not
working. With VB.NET it is working.
Is there a fix availible?
We're using VisualStudio 2003
Regards
Frank... more >>
|