Home | Index | Dotnet4all Snippets | Submit resources
About | Mail us 





setting tab stops (Thursday, January 06, 2005)

Found the following interesting discussion in the Newsgroups:

setting tab stops
by:steve

anyone have an idea of how to set tab stops for nodes in a treeview control.
i'd like to display a string of tab delimited data in the tree nodes so the
nodes at the same level appear as if they are columnar.

tia,

steve


 Reply:
by:Ken Tucker [MVP]

 Hi,

Maybe this will help.
http://www.thecodeproject.com/vb/net/vbnettreelistview.asp

Ken
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004


 Reply:
by:steve

 thanks...i'll give it a good look.

steve



Posted by Xander Zelders
0 Comments



a little of topic, need some postcode data(uk)

Found the following interesting discussion in the Newsgroups:

a little of topic, need some postcode data(uk)
by:aussie rules

Hi,

I am developing an app that needs to validate postcodes(from all different
countries), and cann't seem to find any online/downloadable postcode data on
the internet, outside of Australia Post.

I would like the UK post code/area codes the most at this point, and I know
that Royal Mail do sell this, but its a bit expense for my project to
purchase this information.

Does anybody know where else I can get this from

Thanks


 Reply:
by:Anonymous

 Try Quick Address @ www.qas.com or GBGROUP @ www.gb.co.uk

These are the two we currently link to but I don't know how much they are.

Hope this helps.
Chris.

----- aussie rules wrote: -----

Hi,

I am developing an app that needs to validate postcodes(from all different
countries), and cann't seem to find any online/downloadable postcode data on
the internet, outside of Australia Post.

I would like the UK post code/area codes the most at this point, and I know
that Royal Mail do sell this, but its a bit expense for my project to
purchase this information.

Does anybody know where else I can get this from

Thanks






Posted by Xander Zelders
0 Comments



sleep

Found the following interesting discussion in the Newsgroups:

sleep
by:Tony

I want my program to sleep (do nothing) for one hour.
I can use the timer and 3600 seconds and code around the midnight problem.
is there a better way?
I looked at datediff, hour, minute, second still have to worry about
midnight.

Thanks


 Reply:
by:David Browne

 
How about this:

Public Sub SleepUntil(ByVal untilWhen As DateTime)
Dim wakeUp As TimeSpan = untilWhen.Subtract(Now)
If TimeSpan.Compare(wakeUp, TimeSpan.Zero) = 1 Then
System.Threading.Thread.Sleep(untilWhen.Subtract(Now()))
End If
End Sub
David


 Reply:
by:Herman Kheyfets

 System.Threading.CurrentThread.Sleep(New Timespan(1,0,0))
where 1 is one hour

Gerasha



Posted by Xander Zelders
0 Comments



Web Custom Control - Datagrid Event Handling Problem

Found the following interesting discussion in the Newsgroups:

Web Custom Control - Datagrid Event Handling Problem
by:alkamista@lycos.com (The Alchemist)

I am having a problem with a dynamically-generated Datagrid. It is
important to point out that this problem does not exist with a
design-time created Datagrid, but only with a dynamically generated
Datagrid in a Web Custom Control (WCC) :

The datagrid has LinkButton Column which has a select LinkButton for
each row. When this button is clicked, the Datagrid raises its
'ItemCommand' event which captures the information for that row and
sends it to a event handler method. The problem is that this method is
never getting called. It seems logical to assume that there is
something wrong with the event-wiring of the datagrid. The signature
of the event-handler is:

Private Sub DataGrid1_SelectedIndexChanged(ByVal source As Object,
ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
dg.ItemCommand

(dg is the name of the datagrid). The 'Handles' keyword in VB.Net is
supposed to wire the event to the handler but that is not happening.
So I tried to manually add the handler to the event with the following
line of code in the CreateChildControls method of the WCC using the
line:

AddHandler dg.ItemCommand, AddressOf Me.DataGrid1_SelectedIndexChanged

That does not work either. The datagrid loads up just fine, and on
selecting a row it does a PostBack and hits the OnLoad event but never
hits the event-handler method.

Why is this event not being wired to the handler? Or might there be
some other problem?

Thanks in advance for any help.



BZ


 Reply:
by:Raterus

 Please don't crosspost, this post has no business in these forums as it has nothing to do with VB or VB's controls.

microsoft.public.dotnet.languages.vb,
microsoft.public.dotnet.languages.vb.controls

I'll be nice though and answer your question, you haven't re-instantiated your datagrid in page_load of the postbacked page, and given it the same ID as the previous page had.



 Reply:
by:alkamista@lycos.com (The Alchemist)

 
This control is written in VB.Net, how can it not be relevant to these
groups?

Yes I did and it does not not work.

I am posting the code below, any help would be MUCH appreciated.
Imports System.ComponentModel
Imports System.Web.UI
Imports System.web.UI.WebControls

<DefaultProperty("Text"), ToolboxData("<{0}:WebCustomControl1
runat=server></{0}:WebCustomControl1>")> Public Class
WebCustomControl1
Inherits System.Web.UI.WebControls.WebControl

Protected WithEvents dg As DataGrid
Protected Overrides Sub Render(ByVal output As
System.Web.UI.HtmlTextWriter)

Dim DataTable As New DataTable

Dim col As New DataColumn
col.ColumnName = "Last Name"
DataTable.Columns.Add(col)
Dim col2 As New DataColumn
col2.ColumnName = "First Name"
DataTable.Columns.Add(col2)
Dim col3 As New DataColumn
col3.ColumnName = "Level"
DataTable.Columns.Add(col3)

Dim selectColumn As New ButtonColumn
selectColumn.ButtonType = ButtonColumnType.LinkButton
selectColumn.CommandName = "select"
selectColumn.Text = "select"

dg.Columns.Add(selectColumn)

Dim row As DataRow
row = DataTable.NewRow
row.Item(0) = "Smith"
row.Item(1) = "John"
row.Item(2) = "Level 1"
DataTable.Rows.Add(row)

row = DataTable.NewRow
row.Item(0) = "Jones"
row.Item(1) = "Mary"
row.Item(2) = "Level 2"
DataTable.Rows.Add(row)

dg.DataSource = DataTable
dg.DataBind()
dg.RenderControl(output)
End Sub
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)

dg = New DataGrid
dg.BackColor = System.Drawing.Color.Red
dg.ID = "testID"
'I tried the following line instead of using the handles
keyword and that didnt work either:
'AddHandler dg.ItemCommand, AddressOf
Me.DataGrid1_SelectedIndexChanged
Controls.Add(dg)

End Sub

'Public Sub bz()

Private Sub DataGrid1_SelectedIndexChanged(ByVal source As Object,
ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
dg.ItemCommand

Debug.WriteLine("The event handler has been called.")

End Sub

End Class


 Reply:
by:John Saunders

 
How about MyBase.OnLoad(e)
--
John Saunders
johnwsaundersiii at hotmail


 Reply:
by:Mircea Pleteriu

 Hi,

I am experiencing the same problem as you are.
Have you got any solution?



Posted by Xander Zelders
2 Comments



Windows Services

Found the following interesting discussion in the Newsgroups:

Windows Services
by:Anonymous

Is there any reason I shouldn't be able to open a file from a windows service. I am trying to make sure my service is doing something, but any time I try to open a file, the service crashes....like the following example:

sw = New System.IO.StreamWriter("C:\Temp\Temp.txt")

Causes the service not to run. Help.


 Reply:
by:Anonymous

 From the example you gave you are opening the file to write to it. Try just reading from it using the stream reader


 Reply:
by:Phill. W

 "Sean" <anonymous@discussions.microsoft.com> wrote in message
news:8B16B449-6D95-451B-9B1A-EB5038E4DA46@microsoft.com...
> Is there any reason I shouldn't be able to open a file from a windows
> service.

No.

> I am trying to make sure my service is doing something, but any time
> I try to open a file, the service crashes....

By "crashes", I'm asumming you mean "throws an Unhandled
Exception", in which case ...

Wrap a Try...Catch construct around the offending line(s), catch
the Exception and see what it tells you - they're suprisingly /good/
at that sort of thing ... ;-)

HTH,
Phill W.



Posted by Xander Zelders
0 Comments



installutill

Found the following interesting discussion in the Newsgroups:

installutill
by:Paul Nelson

I am trying to install a windows sewrvice, and am having trouble doing so. The error I get says I should use intallutil.exe to install the service before it can be used or tested, but when I try and run installutil.exe, I get a error saying this program is not on my machine. Can anyone give me some help with this?

Thanks,

Paul.

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.


 Reply:
by:Anonymous

 Open a command window by going to Programs->Visual Studio .Net-> VS.NET Tools->VS.NET Command prompt and try it from there. That sets up all your paths correctly.


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
Are you sure you are running "INSTALLUTIL.EXE" from the "Visual Studio
..NET Command Prompt"?

--
Herfried K. Wagner [MVP]


 Reply:
by:JLW

 If you are doing this on a "Production Machine" without VisStudio installed,
installutil.exe is located in {Windows}\Microsoft.NET\Framework\{Version}

For instance, on my WinXP box, it is located in
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705

You can add it to the path if you think you will need it that much, or just
type it all in. If this is a machine with VisStudio installed, Herfried and
Sean are correct, or you can go the hard way as I described. The .NET
command prompt has all the paths set up. Ofcourse, you can be a cheesy
bastard like myself and take the paths that it set's up, and set those into
the windows paths of your machines and never worry bout it again :)

HTH<
JLW



Posted by Xander Zelders
0 Comments



Using Variable Control Name

Found the following interesting discussion in the Newsgroups:

Using Variable Control Name
by:B-Dog

I'm capturing the checked radio button to XML file using the name of the
radio button. I want to read my xml file to find which button was checked
on close and the check the appropriate button when for loads. How do I use
a variable control name. This is what I'm trying to do below but of course
it doesn't work, I'm rookie.

Thanks
Dim rbchecked as String
'rbchecked is name of radio button checked on exit from XML

rbchecked.checked = true



 Reply:
by:Ken Tucker [MVP]

 Hi,

This will check every control on the form. If the control is a
radiobutton it will write its name and if it is checked to the output
window.

RadioButtonChecked(Me.Controls)

Private Sub RadioButtonChecked(ByVal sender As
Control.ControlCollection)
For Each ctrl As Control In sender
If TypeOf ctrl Is RadioButton Then
Debug.WriteLine(String.Format("{0} Checked {1}",
ctrl.Name, DirectCast(ctrl, RadioButton).Checked))
End If
RadioButtonChecked(ctrl.Controls)
Next
End Sub

Ken
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 * "B-Dog" <bdog4@hotmail.com> scripsit:
> I'm capturing the checked radio button to XML file using the name of the
> radio button. I want to read my xml file to find which button was checked
> on close and the check the appropriate button when for loads. How do I use
> a variable control name.

My FAQ:

\\Private Function FindControl( _
ByVal ControlName As String, _
ByVal CurrentControl As Control _
) As Control
Dim ctr As Control
For Each ctr In CurrentControl.Controls
If ctr.Name = ControlName Then
Return ctr
Else
ctr = FindControl(ControlName, ctr)
If Not ctr Is Nothing Then
Return ctr
End If
End If
Next ctr
End Function
///

Usage:

\\DirectCast(FindControl("btnBla", Me), Button).Enabled = False
///

Notice that the procedure listed above is "slow", if you have to access a
lot of controls by name very often, you should store references to them in a
'Hashtable' object. You can use the name of the control as key:

\\Private m_Controls As New Hashtable()
///

Adding a control:

\\Dim DynamicPictureBox As New PictureBox()
DynamicPictureBox.Name = "PictureBox1"
m_Controls.Add(DynamicPictureBox.Name, DynamicPictureBox)
///

Looking for a control:

\\Dim p As PictureBox = DirectCast(m_Controls.Item("PictureBox1"), PictureBox)
///

Removing a control:

\\m_Controls.Remove("PictureBox1")
///

Sometimes it's even better to add the control to an array. This will allow
fast and easy index-based access to the control references:

\\Dim MyLabels() As Label = {Label1, Label2, ..., Label10}
///

Access by 'MyLabels(0)' to 'MyLabels(9)'.

Control arrays:

Control arrays, as known from VB6, are not included in VB.NET 2002/2003.

Creating Control Arrays in Visual Basic .NET and Visual C# .NET:
<URL:http://msdn.microsoft.com/library/en-us/dv_vstechart/html/vbtchCreatingControlArraysInVisualBasicNETVisualCNET.asp>

WinForms Controls--Creating Control Arrays in VB.NET
<URL:http://www.devx.com/vb2themax/Article/19907/>

--
Herfried K. Wagner [MVP]


 Reply:
by:B-Dog

 Wow, thanks for the reply, looks more complicated than I thought it would
be, to get around it before I had used and Case, If string = "" then
radio.checked = true etc. which was only a few lines. May stick with that
since I only have a few radio buttons. Thanks!



Posted by Xander Zelders
0 Comments



Remoting and Windows Services

Found the following interesting discussion in the Newsgroups:

Remoting and Windows Services
by:Anonymous

Can anybody tell me what is wrong with this code snippet:
' Create a new TCP Channel to accept remote requests
' Using Channel 51010 as nobody else ought to be using it
Channel = New TcpChannel(51010)

' Register the channel
ChannelServices.RegisterChannel(Channel)

' Create a Singleton class
Manager = New DistributedInterfaceLibrary.ManagerClass

' Expose the Singleton SAO
RemotingServices.Marshal(Manager, "SECOManager.rem")

I am trying to create a Singleton SAO, but when i try to start my service with this code in it, it Starts and immediately stops.


 Reply:
by:Anonymous

 nevermind, I'm retarded, thanks anyways....=


Posted by Xander Zelders
0 Comments



Creating a DSN via odbc - But do i need one at all?

Found the following interesting discussion in the Newsgroups:

Creating a DSN via odbc - But do i need one at all?
by:Dan Keeley

Hi,

I'm writing a vb.net project which uses crystal reports to access the
database ( currently msaccess, but could be changed in the future )

I've found articles in this group, saying dont use odbc, use a dsnless
connection. However can that work with embedded crystal reports? If so how?

If not, then how do i get my setup program to install the dsn? The only code
ive found so far for installing a dsn has been for vb, not vb.net, is it all
done in the same way?

Thanks!
Dan


 Reply:
by:Bernie Yaeger

 Hi Dan,

I'm not following you completely, but when you open the Access database in
cr, connect to it via ole db (Jet 4.0 Provider). Then call the report
inside vb .net with
CrystalReportViewer1.ReportSource = "c:\apps\sst.rpt"

Where crystalreportviewer1 is simply the cr report viewer - then launch it
and you're in business.

HTH,

Bernie Yaeger



Posted by Xander Zelders
0 Comments



Getting ASCII Output From Web (using wget)

Found the following interesting discussion in the Newsgroups:

Getting ASCII Output From Web (using wget)
by:cemich@chesapeakebay.net (Remulac)

I am in the process of getting ASCII data down from a server that will
print out the ASCII version of a proprietary format when you click
"get ASCII" on the site. I'm trying to bring it down programattically
so that I get an ASCII file without displaying it in a window.

So far, I've used wget from a DOS batch file, but I'm having problems
when the URL has a "%" anywhere in it. How do I escape this
character? Beyond that, is there a slick way in .NET to do this? As
it stands, I'm just calling wget from the command line.


 Reply:
by:Cor Ligthert

 Hi Remulac,

I think that this is what you are looking for although there is more.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttputilityclassurlencodetopic.asp

The actual methods are on the next pages after the links,

Cor



Posted by Xander Zelders
0 Comments



Treeview highlight node on form load

Found the following interesting discussion in the Newsgroups:

Treeview highlight node on form load
by:mr_carl_gilbert@hotmail.com (Carl Gilbert)

Hi

I have a Treeview component on a form which when loaded selects a node
from the treeview.

The problem is that I can not get the node to remain highlighted.

The app is sucessfully selecting the node as the correct parent node
expands and when I click on the parent, the node that I set on the
load breifly highlights before the parent is highlighted.

Does anyone have any suggestions on how I could highlight the selected
node on load?

Kind regards, Carl Gilbert


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
Are you sure the control's 'HideSelection' property is set to 'False'?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 Reply:
by:mr_carl_gilbert@hotmail.com (Carl Gilbert)

 This fixed the problem thanks.

Regards, Carl



Posted by Xander Zelders
0 Comments



Parsing a flat file to retrieve only a single line.

Found the following interesting discussion in the Newsgroups:

Parsing a flat file to retrieve only a single line.
by:mwazir

Dear all,

I have a requirement while parsing a delimited flat file and I was wondering
if there is a simpler solution that what I have in mind.
Basically I need to pull out a line from the flat file and the information I
am given is the line number and the name of the file. Therefore I have
thought of implementing something like this.

Private Function getLineFromFile(ByVal sFilePath As String, ByVal
lStringNo As Long) As String

Dim oStream As New IO.StreamReader(sFilePath)
Dim strReadLine As String = "", strReturnValue As String = ""
Dim lLine As Long = 0

While (oStream.Peek() > -1)
lLine = lLine + 1
strReadLine = oStream.ReadLine()
If lLine = lStringNo Then
strReturnValue = strReadLine
Exit While
End If
End While

oStream.Close()
oStream = Nothing
Return strReturnValue
End Function

Another factor I am keeping in mind is that the files can have between 50 to
2000 lines. Appreciate any thoughts you may have.

Many thanks

--
Wazir





 Reply:
by:Anonymous

 is there a particular value or information that you're looking for in the file or is it just some text in some random line number?


 Reply:
by:mwazir

 > is there a particular value or information that you're looking for in the
file or is it just some text in some random line number?

Just some text in some random line.



Posted by Xander Zelders
0 Comments



Is there something like this in VB.Net?

Found the following interesting discussion in the Newsgroups:

Is there something like this in VB.Net?
by:Keith Rebello

When reading from a text file in VB6, we could use:

Input #FileNumber, Variable1, Variable2, ...

to read directly into variables. Is there something equivalent in VB.Net?


 Reply:
by:Alex Papadimoulis

 Hi Keith,

In VB.NET you'll want to use FileStreams to read from files. I'm sure we'd
be happy to provide an example if you'd like.

-- Alex Papadimoulis



 Reply:
by:Keith Rebello

 I guess I could use a StreamReader to read each line and then use the
String.Split method to get the individual values from each line and then
assign them to the variables.
Is there a way to directly assign the read values to variables, as you read
each line in the file?



 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
You will have to split thatt up into multiple calls to 'Input', one for
each variable.

--
Herfried K. Wagner [MVP];



Posted by Xander Zelders
0 Comments



Outlook interop not available

Found the following interesting discussion in the Newsgroups:

Outlook interop not available
by:Phil

Hi,

I'm trying to write a simple application in VB.Net 2003 to retrieve
information from a contact item in an arbitrary folder (ie not the default)
in Outlook 2003.

All the sample code I can find tells me to add a reference to the Outlook 11
COM object, which I've done.

It then says that I should include the line
Imports Outlook = Microsoft.Office.Interop.Outlook
However, when I use intellisense it shows that the only option avalable for
Microsoft.Office is .Core.

What am I missing?

Thanks,

Phil Haddock


 Reply:
by:Ken Tucker [MVP]

 Hi,

Not sure what article you used. This works with outlook 2003.

http://support.microsoft.com/default.aspx?scid=kb;en-us;313802

Ken
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004


 Reply:
by:Jay B. Harlow [MVP - Outlook]

 Phil,
In addition to Ken's comment.

For a number of resources on using Outlook from .NET see:
http://www.microeye.com/resources/res_outlookvsnet.htm

It sounds like the PIA was not loaded under Office Setup. Double check
Office/Outlook setup to be certain that your PIAs were selected to be
installed.

Hope this helps
Jay



Posted by Xander Zelders
0 Comments



webpages

Found the following interesting discussion in the Newsgroups:

webpages
by:Anonymous

Can you create webapges with a decent menu and look with VB.net as you can with Frontpage? eg a webapge like this http://www.scottishgypsies.co.uk/ done in VB.net


 Reply:
by:Cor Ligthert

 Hi Andrew,

The site you show is easy to made, that is even possible with a notebook for
someone who knows a little more than avarage about standard HTML.

You can use VS as a very good HTML editior with very good HTML debugging.
(While it has the posibility to use and debug with an IFrame, what would
make your sample site real a piece of cake)

However it has not a real designer as it seems the next version will be.

MS Frontpage has much more designer functions now.

I like very much to do (D)HTML and Javascript editing using VS, because of
the direct Help which is on my side and the background testing on errors.

I hope this helps somehow?

Cor

> Can you create webapges with a decent menu and look with VB.net as you can
with Frontpage? eg a webapge like this http://www.scottishgypsies.co.uk/
done in VB.net



Posted by Xander Zelders
0 Comments



help needed on how to export result to Excel Spreadsheet

Found the following interesting discussion in the Newsgroups:

help needed on how to export result to Excel Spreadsheet
by:keali_lim@-NOSPAM-fastmail.fm

hi,
i have done all the neccessary calculation on .NET and i want to export the result into excel spreadsheet.

May i know how to declare excel so that open my keali.xls workbook and i can export my result in there??......(i try something like : Dim objExcel as excel.application)


---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.


 Reply:
by:Ken Tucker [MVP]

 Hi,

http://support.microsoft.com/default.aspx?scid=kb;en-us;306022

Ken
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004



Posted by Xander Zelders
0 Comments



MSScript control problem...

Found the following interesting discussion in the Newsgroups:

MSScript control problem...
by:user@domain.invalid

I have several vb.net apps that use the MSScript control to provide
basic scripting. On one machine in particular, these apps refuse to
start, stating:

An Unhandled exception of type 'System.IO.FileNotFoundException'
occurred in MyApp.exe
Additional information: File or assembly name AxInterop.MSScriptControl,
or one of its dependencies, was not found.

Although the entire app directory contains everything, including the
script control, the app bombs with this error only on one machine out of
several. How can I check to see what dependencies the MSScript control
needs, and narrow down my search for problems?

-Sam


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
Are you sure the control is properly registered on the computer? It's a
COM component, so run "REGASM.EXE".

--
Herfried K. Wagner [MVP]


 Reply:
by:user@domain.invalid

 Herfried K. Wagner [MVP] wrote:

> Are you sure the control is properly registered on the computer? It's a
> COM component, so run "REGASM.EXE".
>
Actually, I left out a bit of info: The app is stored on a linux server,
although it is "run" from a windows box. The app's entire install was
"moved" from a window box to a linux server, which worked perfectly. The
exe is seen from the windows machine, and run from there. We recently
purchased a new linux server, nearly identical to the first, and when
the app was moved this problem began. If we move it back, it runs fine.
We're at a loss as to why it only fails on the second linux server.
There are no other apps or ocxs or anything on the first linux box.

The app does run fine locally on the windows box as well.

This is quite the mystery.....


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
Just for clarification: You try to run the app on a Windows machine,
but the app is physically placed on a Lin*x machine? You will still
have to run "REGASM" for the Script Control.

--
Herfried K. Wagner [MVP]


 Reply:
by:user@domain.invalid

 
Correct. Hm....I guess I was thinking that the local registration of the
scriptcontrol was enough.

Okay, I successfully registered the first file with
regasm \\linuxserver\Interop.MSScriptControl.dll

and tried the second file with

regasm \\linuxserver\AxInterop.MSScriptControll.dll

but it failed with the error:

RegAsm error: File or assembly name Interop.MSScriptControll, or one of
its dependencies, was not found.

A similiar error to the original problem.....is there a way to list what
these dependencies might be?



Posted by Xander Zelders
1 Comments



how to export result into excel???

Found the following interesting discussion in the Newsgroups:

how to export result into excel???
by:Anonymous

hi,
i have done all the neccessary calculation on .NET (windows form) and i want to export the result into excel spreadsheet.

May i know how to declare excel so that open my keali.xls workbook and i can export my result in there??......(i try something like : Dim objExcel as excel.application)



 Reply:
by:Ken Tucker [MVP]

 Hi,

http://support.microsoft.com/default.aspx?scid=kb;en-us;306022

Ken
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004


 Reply:
by:scorpion53061

 http://www.kjmsolutions.com/datasetarray.htm


 Reply:
by:Ken Tucker [MVP]

 Hi,

I am adding that to my link list

Ken
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004


 Reply:
by:scorpion53061

 Aieee

I am sorry Ken......I did not get your response before I sent mine.

Not everybody prefers my approach so it is good both links are
there.......

Sorry I missed you by the way yesterday.



Posted by Xander Zelders
0 Comments



ADO connection with VB.NET

Found the following interesting discussion in the Newsgroups:

ADO connection with VB.NET
by:Anonymous

I have just read the code to connect to an SQL database using ADO in VB.net. This looks way more complicated then VB6 and it is hard to see how this is better.

In VB.net if I just wanted to connect to an Access database using ADO and do basic operations of navigate,add,update,delete records is it really that complicated as compared to VB6

Can you connect to an Access 97 database?

thanks


 Reply:
by:Cor Ligthert

 Hi Andrew,

Why are you not using ADONET, ADO is so complicated to make connections?

If you are using VS2003, than you start with dragging from the toolbox the
OLEDB adapter, (A wissard starts) and you follow what you have to do. The
only thing I have to add in my opinion is that you have to choose in the
connection property box, the first tab, you choose in there the right Jet
provider and goes on, because the rest is in my opinion easy.

(This is only to learn in future you will probably do it in another way)

Cor


 Reply:
by:Anonymous

 I am getting confused with database connections with ADO.net. It seems you can connect to a database like access using the oledb connection and also using .net framework which is more complicated.
Using .net data source you get the bonus of performance which is what VB.net wants people to move towards eventually.

Just a simple databse like access then connecting through the jet engine (oledb)is the way. What a poorly explained topic databases are on VB.net, ?


 Reply:
by:Cor Ligthert

 Andrew,

Connecting in dotNet using OleDB = AdoNet.

For that you use a connection, however try what I said, it should be maximum
5 minutes to do.

There are also some checks in it and after the wizard.

When the Wizard is done you can do:
Generate datasset by right clicking on the Picture Oledbadatper which
appears below.
(There will as well be a connection picture)

I hope this helps..

Cor


 Reply:
by:Anonymous

 OK thanks



Posted by Xander Zelders
0 Comments



SQLDMO.DLL on machine without SQL Installed ??

Found the following interesting discussion in the Newsgroups:

SQLDMO.DLL on machine without SQL Installed ??
by:soulcode

Hi There,

I was wondering what the process is (if there is one) to get a .NET
application that uses the below code and the SQLDMO.DLL reference to
work on a PC without SQL2000 installed on it (to search for an SQL
database installed on another PC on the same network). I've tried a few
things already and the code below works for my PC (has SQL installed),
but not my other PC (without SQL installed). I've also tried to use the
Microsoft Knowledge Base Article - 258157 article, but no success...

Please help.

*************************************
Dim i As Integer
Dim oNames As SQLDMO.NameList
Dim oSQLApp As SQLDMO.Application

Set oSQLApp = New SQLDMO.Application
Set oNames = oSQLApp.ListAvailableSQLServers()

For i = 1 To oNames.Count
' do something with oNames.Item(i)
Next i
***************************************
Soulcode.

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


 Reply:
by:Earl comcast<.>net>

 Google SQLDMO in these newsgroups. We had this discussion not long ago.

Also check out www.sqldev.net

Essentially YOU have to install DMO on any machine where you make the call.



Posted by Xander Zelders
0 Comments



Control licensing

Found the following interesting discussion in the Newsgroups:

Control licensing
by:Ray Cassick \(Home\)

After countless hours of complete frustration I am asking for someone here
to point me to a (working) example of how to license a class library. All I
want to do is create a design time license for a few component libraries and
am finding out that this seems to be one of the darkest areas of VB.NET that
no one can give a good example of how it works from start to finish.

I understand the basics of how it is supposed to work and it all makes sense
but I have yet to actually see an example that WORKS anywhere. All I seem to
find is tons of message posted by people that seem to be as far to the end
of theirs ropes and I am on the subject.

I even downloaded an example from the gotdotnet web site:

http://windowsforms.net/articles/Licensing.aspx

....and the examples don't work. The host application STILL throws an
exception when trying to use the licensed component at runtime.

Pat of what I cannot believe is that it seems that most of the WORK
(creation of license files and addition of the license to the host project)
needs to be done by hand for components that are non-visual in nature (i.e.:
class libraries). Jeeeze, V1.1 of the framework and we are still doing
things
by hand.

Is there ANY WORKING example of doing this in VB.NET 2003 anywhere? I am not
even trying to build a custom license provider yet. I just want to see the
basic thing work first before I start trying to mess around with encrypting
my lic files and all that.




 Reply:
by:Michael Gray

 
There is a section explaining all this (and more), in "Programming
Microsoft Visual Basic.NET" Version 20003 by Francesco Balena.
Microsoft Press. ISBN 0-7356-2059-8

You won't regret buying it, as it demystifies many other areas where
the on-line documentation is "unhelpfull", to put it mildly.


 Reply:
by:Ray Cassick \(Home\)

 I just ordered it...

If it can explain this it will be my Bible.



Posted by Xander Zelders
0 Comments



Reflection Related Quesitons

Found the following interesting discussion in the Newsgroups:

Reflection Related Quesitons
by:Hayato Iriumi

(1) Can custom attribute be assigned to a class (or other elements) at
runtime? I tried to use MethodInfo to do that, but it doesn't seem to be
possible...

(2) Can I get the name of the method that is currently running? The example
follows...

Sub MyMethod()
Dim strMethodName As String = System.Reflection.Assembly.blahblah...
Console.WriteLine("The name of the method that is currently runnning is
{0}",strMethodName)
End Sub

TIA


 Reply:
by:Mattias Sjögren

 
>(1) Can custom attribute be assigned to a class (or other elements) at
>runtime? I tried to use MethodInfo to do that, but it doesn't seem to be
>possible...

Only to types dynamicly created with Reflection Emit, not existing
compiled code.
>(2) Can I get the name of the method that is currently running?

System.Reflection.MethodBase.GetCurrentMethod().Name

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


 Reply:
by:Hayato Iriumi

 Interesting. Thank you very much for sharing your knowledge!

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!


 Reply:
by:Anonymous

 


----- Hayato Iriumi wrote: -----

>> (1) Can custom attribute be assigned to a class (or other elements) at
>> runtime? I tried to use MethodInfo to do that, but it doesn't seem to be
>> possible...

I'm not really sure I understand what you'd do this for. Could you give a hint as to what you're trying to accomplish here?


>> (2) Can I get the name of the method that is currently running?

Either of these will get you the name of the currently executing method:

new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name;
System.Reflection.MethodInfo.GetCurrentMethod().Name;



 Reply:
by:Hayato Iriumi

 Say, the values I want to asssign to the attribute are stored in
database...

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!



Posted by Xander Zelders
0 Comments



Need to write a program that wakes up every 15 minutes and does something

Found the following interesting discussion in the Newsgroups:

Need to write a program that wakes up every 15 minutes and does something
by: Just Me

Need to write a program that wakes up every 15 minutes and does something.

I guess I could just create a Windows application and schedule it to run
every 15 minutes.

Or I could have a program always in memory that uses a timer to activate it
every 15 minutes.

1) Any suggestions?

2) Any example code if the way to go it to stay in memory?

3) Is 2 above what is called a service?

Thanks




 Reply:
by:spamfurnace

 > 1) Any suggestions?
>
> 2) Any example code if the way to go it to stay in memory?
>
> 3) Is 2 above what is called a service?

1. Create a windows service
2. Check out Windows Service Components in docs.
3. Yes.

Note that strictly speaking a service has no user interface. I assume you
reqiure no user interaction?
Alos note the difference in timers for Windows forms and server timers. Two
different classes that have different benefits/disadvantages. You want
server timers.

The choice of activation method is entirely dependant on what your doing,
how the user is affected/ivloved in the rocess/if there is a user at all. If
there is a user - dont use a windows service.

hth
Richard


 Reply:
by: Just Me

 I found some documentation and now realize it was not a question that can be
answer in a few sentences. After a little study I think I get it OK. If not
I'll be back.

Thanks for the info below!



Posted by Xander Zelders
0 Comments



Adding an object as a node to TreeView

Found the following interesting discussion in the Newsgroups:

Adding an object as a node to TreeView
by:Paul McKenna

Hello

I have a treeview control on my form. The nodes of this tree are populated
with values from an XML file. Is there a way by which I could bind objects
to the tree instead of simple strings? This would make it easier for me to
refer data referenced by each node instead of having to re-read the XML file
each time.

Thank You


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
Have a look at the 'TreeNode''s 'Tag' property.

--
Herfried K. Wagner [MVP]


 Reply:
by:Paul McKenna

 Thank you very much. Exactly what I was looking for.

I have another question and this one is perplexing me!

As mentioned earlier, I am reading data from an XML into a dataset and then
transforming this dataset into the Tree. Something strange happends when I
read data from the XML into the dataset. I would assume that the column
names in the dataset would simply be the same as the tag names in the XML
but instead they are appended with "_Text".

Here is the code:
Dim io_XMLStream As New FileStream(str_Path, IO.FileMode.Open)

Dim xml_XMLReader As New XmlTextReader(io_XMLStream)

ds_XML.ReadXml(xml_XMLReader)

And the column names are populated as "c1_Text". The "_Text" part is
confusing me.. where did it come from? Is there anyway to avoid that?

Thanks in advance


 Reply:
by:Cor Ligthert

 Hi Paul,

You took this probably from the documentation.

> Dim io_XMLStream As New FileStream(str_Path, IO.FileMode.Open)
> Dim xml_XMLReader As New XmlTextReader(io_XMLStream)
> ds_XML.ReadXml(xml_XMLReader)

You can delete the two first rows and just do
ds_XML.ReadXML(strpath)

Your columnnames are
Ds.tables(0).datacolumn(0).columnname.tostring 'first columnname

I hope this helps?

Cor




Posted by Xander Zelders
0 Comments



DateDiff and Javascript .getTime methods

Found the following interesting discussion in the Newsgroups:

DateDiff and Javascript .getTime methods
by:Shane Saunders

I trying to make a sub that works like Javascripts .getTime method. It work
ok, but it does not should the time in it. The last numbers should be the
time, but they are all zeros. Can anyone help me on this. here is the code i
used. From reading i also seen that the getTime time starts on 01/01/1970
12am. I need to have this in Millsecond.

VB.net Code:
Dim days As Long
Dim date1970 As Date = "#1/1/1970 12:00:00 AM#"
Dim datenow As Date = Date.Now
Dim mseconds As Long = 60 * 60 * 24 * 1000

days = DateDiff(DateInterval.DayOfYear, date1970, datenow)
days = days * mseconds
Label1.Text = days

Output:

6/6/2004 10:02:35 AM
1086480000000

JavaScript Code:

var uniquej = new Date();
var uniquei = "?"+uniquej.getTime();

document.write(uniquej)
document.write("<br>")
document.write(uniquei)

Output:
Sun Jun 6 10:00:20 PDT 2004
?1086541220672

The outputs are almost the same, but i need them to the same. Is there a way
to run that javascript code in vb.net and just pass the value back a
variable?

Shane



 Reply:
by:The Grim Reaper

 This should help;

Dim milliseconds As Double
Dim date1970 As New Date(70, 1, 1, 12, 0, 0)
milliseconds = DateTime.Now.Subtract(date1970).TotalMilliseconds()
Label1.Text = milliseconds.ToString

Try putting Option Strict On at the top of your code module - it helps with
getting the right datatypes.
________________________________________
The Grim Reaper


 Reply:
by:Shane Saunders

 The Grim Reaper,

Thank you for your help.
It work good, just had to change few thing. but the work the way i want it
to..
Shane



Posted by Xander Zelders
0 Comments



draging and dropping controls over a panel,form etc.

Found the following interesting discussion in the Newsgroups:

draging and dropping controls over a panel,form etc.
by:Anonymous

I read the drag and drop examples and even so I cannot move a usercontrol from one place over a panel to another place over the same panel. any idea?


 Reply:
by:Ken Tucker [MVP]

 Hi,

Here is an example on how to move a button on a form.

http://www.onteorasoftware.com/downloads/movecontrol.zip

Ken
--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.0.0 - Release Date: 6/2/2004



Posted by Xander Zelders
0 Comments



Inserting 1 bitmap in to another

Found the following interesting discussion in the Newsgroups:

Inserting 1 bitmap in to another
by:Stu

Hi,

What is the quickest (performance wise) way to copy one small bitmap to
certain coordinates of a bigger bitmap? I'm currently doing it by looping
through each pixel....and I get the feeling I've missed something a little
more elegant!

Thanks in advance,

Stew



 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
\\Dim b1 As New Bitmap(...)
Dim b2 As New Bitmap(...)
Dim g As Graphics = Graphics.FromImage(b1)
g.DrawImage(b2, ...)
g.Dispose()
b1.Save(...)
b1.Dispose()
b2.Dispose()
///

--
Herfried K. Wagner [MVP]


 Reply:
by:Mick Doherty

 What's wrong with DrawImage?

\\\\\\\\\Function StampImage(ByVal Source As Image, ByVal Stamp As Image, Coord as
Point) As Image
Dim NewBmp As New Bitmap(Source)
Dim NewGraphics As Graphics = Graphics.FromImage(NewBmp)
NewGraphics.DrawImage(Stamp, Coord )
Return NewBmp
End Function
//////////

--
Mick Doherty
http://homepage.ntlworld.com/mdaudi100/index.html
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.693 / Virus Database: 454 - Release Date: 31/05/2004


 Reply:
by:spamfurnace

 Watch yourself here, though. This knida stuff can become extremely amusing,
and many hours can be wasted tinkering the GDI+ namespace. It really needs
some kind of restricted access/parental gudiance/disclaimer thingy to be
smacked on the front of it.

Terribly addictive stuff that... so be warned.

Richard


 Reply:
by:Andre Nogueira

 And only now you tell me about it... after i've spent so many hours playing
around with it...
I feel betrayed.. :(

Andre Nogueira



Posted by Xander Zelders
0 Comments



Use right-click to select a listbox item

Found the following interesting discussion in the Newsgroups:

Use right-click to select a listbox item
by:Anonymous

I have a context menu tied to a list box. When I right-click on an item, I'd like that item to be selected before the context menu invokes, similar to how Outlook Express works when right-clicking on mail items. I've figured out how to trap the right-click in the _MouseDown event, but can't figure out how to set the listbox's selected item to the item under the mouse pointer.

Thanks,

Billy


 Reply:
by:Anonymous

 Found it with a little more digging in the docs...

Private Sub lbNames_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lbNames.MouseDown
If e.Button = MouseButtons.Right Then
Dim pt As Point
pt.X = e.X
pt.Y = e.Y
lbNames.SelectedIndex = lbNames.IndexFromPoint(pt)
End If
End Sub



Posted by Xander Zelders
3 Comments



Efficacy of User Interface Design

Found the following interesting discussion in the Newsgroups:

Efficacy of User Interface Design
by:zlst

Many technological innovations rely upon User Interface Design to elevate
their technical complexity to a usable product. Technology alone may not win
user acceptance and subsequent marketability. The User Experience, or how
the user experiences the end product, is the key to acceptance. And that is
where User Interface Design enters the design process. While product
engineers focus on the technology, usability specialists focus on the user
interface. For greatest efficiency and cost effectiveness, this working
relationship should be maintained from the start of a project to its
rollout.

When applied to computer software, User Interface Design is also known as
Human-Computer Interface or HCI. While people often think of Interface
Design in terms of computers, it also refers to many products where the user
interacts with controls or displays. Military aircraft, vehicles, airports,
audio equipment, and computer peripherals, are a few products that
extensively apply User Interface Design.

Optimized User Interface Design requires a systematic approach to the design
process. But, to ensure optimum performance, Usability Testing is required.
This empirical testing permits na?ve users to provide data about what does
work as anticipated and what does not work. Only after the resulting repairs
are made can a product be deemed to have a user optimized interface.

The importance of good User Interface Design can be the difference between
product acceptance and rejection in the marketplace. If end-users feel it is
not easy to learn, not easy to use, or too cumbersome, an otherwise
excellent product could fail. Good User Interface Design can make a product
easy to understand and use, which results in greater user acceptance.

Follow is some resources about UI Design:

HelloUI
http://www.qwerks.com/product.asp?ProductID=6873

http://www.uidesign.net
http://www.uiweb.com
http://www.uiforum.com

others

Education In HCI And HCI Curriculum
http://www.ipo.tue.nl/ifip-wg13.1/

HCI And The Web
http://www.ironclad.net.au/lists/web-critique-theory/links.html

New Directions In HCI Education, Research and Practice
http://www.sei.cmu.edu/community/hci/directions/

Lecture Topics In HCI
http://pages.cpsc.ucalgary.ca/~saul/hci_topics/

HCI And Artificial Intelligence
http://www.academon.com/lib/paper/7950.html

What Is User Experience Design
http://www-3.ibm.com/ibm/easy/eou_ext.nsf/Publish/10

HCI In Brazil
http://www-di.inf.puc-rio.br/~clarisse/ifip/

A Personal Dictionary Of HCI
http://jupiter.informatik.umu.se/~mjson/hcipd/main.html

User Interface Engineering
http://world.std.com/~uieweb/

W3C The User Interface Domain
http://www.w3.org/UI/

User Interface Software Tools
http://www-2.cs.cmu.edu/afs/cs.cmu.edu/user/bam/www/toolnames.html

Microsoft User Interface Group
http://research.microsoft.com/ui/

User Interface
http://msdn.microsoft.com

User Interface: Introduction
http://cne.gmu.edu/itcore/userinterface/

The Science Of User Interface
http://maddog.weblogs.com/stories/storyReader$174

Group For User Interface Research (GUIR)
http://guir.berkeley.edu/

GUI Gallery
http://toastytech.com/guis/

User Interface Design For Programmers
http://www.joelonsoftware.com/uibook/chapters/fog0000000057.html

Graphical User Interface Timeline
http://toastytech.com/guis/guitimeline.html

Yahoo Directory: User Interface
http://dir.yahoo.com/Science/Computer_Science/User_Interface/

GLUI User Interface Library Version2.1
http://gd.tuwien.ac.at/hci/glui/

Creating A User Interface (AWT Only)
http://java.sun.com/docs/books/tutorial/ui/

UIST''02 User Interface Software & Technology
http://www.acm.org/uist/

User Interface Programming
http://home.online.no/~pethesse/

UI Designs
http://www.uidesigns.com/

User Interface Graphics
http://www.kare.com/

GLADE GTK+ User Interface Builder
http://www.kare.com/

User Interface Research (UIR)@PARC
http://www2.parc.com/istl/projects/uir/

Designing The User Interface: Strategies For Effective Human-Computer
Interaction 3/e (Book) 1997
http://www.awprofessional.com

Understanding UI
http://www.mackido.com/Interface/

Ten Usability Heuristics
http://www.useit.com/papers/heuristic/heuristic_list.html

User Interface Design
http://cfg.cit.cornell.edu/cfg/design/contents.html

Task-Centered User Interface Design
http://www.hcibib.org/tcuid/

User Interface Design Tips
http://www.ambysoft.com/userInterfaceDesign.html

User Interface Strategies (UIS)
http://www.cs.umd.edu/projects/uis/

User Interface Pattern Language For UI Design
http://c2.com/ppr/ui.html

Graphical User Interface
http://www.webopedia.com/TERM/G/Graphical_User_Interface_GUI.html

A Summary Of Principles For User Interface Design
http://www.sylvantech.com/~talin/projects/ui_design.html

User Interface Design Page
http://www.chesco.com/~cmarion/Design/UIDesign.html

The Voice User Interface Company
http://www.wrolandi.com/

A User Interface Framework For Text Searches
http://www.dlib.org/dlib/january97/retrieval/01shneiderman.html

SunWeb: User Interface Design For SUN Microsystem''s Internal Web
http://archive.ncsa.uiuc.edu/SDG/IT94/Proceedings/HCI/nielsen/sunweb.html

User Interface Management Systems (UIMS)

http://kogs-www.informatik.uni-hamburg.de/~moeller/uims-clim/clim-intro.html

User Interface Design And Usability
http://www.isii.com/ui_design.html

How To Attach A User Interface To A Jini Service
http://www.javaworld.com/javaworld/jw-10-1999/jw-10-jiniology.html

The Rise Of Graphical User Interface (GUI)
http://www.rit.edu/~easi/itd/itdv02n4/article3.html

Web Services User Interface (WSUI) Initiative
http://wsui.org/

User Interface Projects
http://projects.netlabs.org/?category_id=11

Experiences - A Pattern Language For User Interface Design
http://www.maplefish.com/todd/papers/experiences/Experiences.html

User Interface Design For Programmers
http://static.userland.com/gems/joel/uibookcomplete.htm

GNOME User Interface Improvement Project
http://developer.gnome.org/gnome-ui/

User Interface Stability
http://philip.greenspun.com/wtr/stable-user-interface.html

Principles Of Educational Multimedia User Interface Design
http://wearables.gatech.edu/papers/larry.html

Willow Technical Report: User Interface
http://www.washington.edu/willow/interface.html

Java Technology: Java 2 User Interface
http://www-106.ibm.com/developerworks/library/j-j2int/

An Introduction To The High Level User Interface APIs
http://wireless.java.sun.com/midp/ttips/uiapi/

Pen Input
http://www.csd.uwo.ca/courses/CS179/lect10/sld043.htm

Pen Input For Your PC
http://www.byte.com/art/9401/sec13/art4.htm

Human Computer Interaction (Journal)
http://www2.parc.com/istl/projects/HCI/

HCI Bibliography: Human Computer Interaction Resources
http://liinwww.ira.uka.de/bibliography/Misc/HCI/
http://www.hcibib.org/

HCI Webliography
http://www.hcibib.org/hci-sites/

HCI Resources On The Net
http://www.ida.liu.se/labs/aslab/groups/um/hci/

HCI Index
http://is.twi.tudelft.nl/hci/
http://www.hci.uu.se/
http://degraaff.org/hci/

HCI Links
http://www.carleton.ca/hotlab/Individual_pages/hci_links.html

HCI Resources
http://www.usabilityfirst.com/MOCHI/resources.html

British HCI Group
http://www.bcs-hci.org.uk/

HCI Lab.
http://www.cs.umd.edu/hcil/
http://hci.usask.ca/index.xml
http://hci.ucsd.edu/lab/
http://psychology.wichita.edu/hci/
http://hci.yonsei.ac.kr/

HCI At Stanford
http://hci.stanford.edu/

CMU HCI Institute (HCII)
http://www.hcii.cs.cmu.edu/

HCI Group At Cornell
http://www.hci.cornell.edu/

HCI At Virginia Tech
http://pixel.cs.vt.edu/~rreaux/hci/

HCI At NSU Online Learning Environment
http://www.scis.nova.edu/nova/hci/top.html

HCI At USC
http://www.usc.edu/dept/cs/hci.htm

HCI Research
http://csce.unl.edu/~scotth/CHI-research.html

HCI At Tufts
http://www.cs.tufts.edu/~jacob/hci/

HCI At RSC
http://hci.rsc.rockwell.com/

HCI Research Center
http://www.hud.ac.uk/schools/comp+maths/centres/hci/HCIcentre.html

HCI Research At Tampere
http://www.uta.fi/~kjr/HCI/HCI.html

HCI At The University Of Tokyo
http://www.sanpo.t.u-tokyo.ac.jp/ut-chi.html

HCI At OCLC
http://www.oclc.org/usability/about/

Yahoo Directory: HCI

http://dir.yahoo.com/Science/Computer_Science/Human_Computer_Interaction__HCI_/
Usernomics User Interface Design
http://www.usernomics.com/hci.html

HCI Training Custom e-Learning Solutions
http://www.hcitrains.com/

HCIRN - HCI Resource Network
http://www.hcirn.com/

HCI Group Online
http://www.dcs.napier.ac.uk/hci/

HCI International 2003
http://hcii2003.ics.forth.gr/

HCI 2003 Designing For Society
http://www.bcs-hci.org.uk/hci2003/

Links To HCI Resources
http://www.ifip-hci.org/

Interaction Design: Beyond Human Computer Interaction (Book)
http://www.id-book.com/

Just How Far Beyond HCI Is Interaction Design ?
http://www.boxesandarrows.com

Human Computer Interaction And Your Site
http://www.webmasterbase.com/article/606

HCI Design Home Page
http://hcidesign.com/

Human Computer Interaction 2/e (Book) 1998
http://www.hcibook.com/

Ergoworld HCI & Usability
http://www.interface-analysis.com/ergoworld/hci.htm

The Center For HCI Design
http://www-hcid.soi.city.ac.uk/

Human Computer Interface Design
http://www.engr.sjsu.edu/~knapp/hci.html

HCI Links & Resources
http://www.brint.com/HCI.htm

PERQ/HCI Research
http://www.perqhciresearch.com/

HCI Space
http://www.tau-web.de/hci/space/

HCI From FLODOC
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?HCI

Hand Gestures In HCI
http://www.cs.sfu.ca

Designing The User Interface
http://www.awl.com/DTUI/

HCI And System Development Group
http://www.idi.ntnu.no/grupper/hci/

HCI Techniques
http://www.chiplace.org/techniques/index.jsp

IBM Research HCI
http://www.research.ibm.com/compsci/hci/

A Brief History Of HCI Technology
http://www-2.cs.cmu.edu/~amulet/papers/uihistory.tr.html

Explaining The Science Of HCI To The General Public
http://www.usabilitynews.com/news/article731.asp

HCI Education
http://www.comp.lancs.ac.uk/computing/users/dixa/hci-education/

User Interface Fun
http://www.hci-fun.org.uk/




 Reply:
by:meh

 Thanks for the links and info........Was there a question associated with
this?
meh

http://archive.ncsa.uiuc.edu/SDG/IT94/Proceedings/HCI/nielsen/sunweb.html

http://kogs-www.informatik.uni-hamburg.de/~moeller/uims-clim/clim-intro.html

http://dir.yahoo.com/Science/Computer_Science/Human_Computer_Interaction__HCI_/



 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
I think it's sort of spam. Is there any reason to quote the whole stuff?

;-)

--
Herfried K. Wagner [MVP]


 Reply:
by:Beeeeeves

 What's the question/point?

http://archive.ncsa.uiuc.edu/SDG/IT94/Proceedings/HCI/nielsen/sunweb.html

http://kogs-www.informatik.uni-hamburg.de/~moeller/uims-clim/clim-intro.html

http://dir.yahoo.com/Science/Computer_Science/Human_Computer_Interaction__HCI_/



 Reply:
by:Steven H

 On Sun, 6 Jun 2004 18:07:57 +0100, Beeeeeves wrote:

> What's the question/point?

the morons have been spamming these lists for the past few days

--
-------------------------------------------
Steven H, 3rd Year B.I.T. Otago Polytechnic

..net Geek



Posted by Xander Zelders
1 Comments



Reading RAW Disc Sectors

Found the following interesting discussion in the Newsgroups:

Reading RAW Disc Sectors
by:Chris Shikenjanski

I am wondering if there is any way with a .NET language
(preferably VB .NET) to read RAW sectors from a disc such
as a CD-ROM. Any help would be greatly appreciated.


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 
Untested: P/invoke on 'DeviceIOControl'.

--
Herfried K. Wagner [MVP];


 Reply:
by:Richard L Rosenheim

 I'm not sure how they are doing it, but PowerQuest (now part of Symantec) is
apparently doing it in their V2i Protector backup problem.

My understanding is that the program is (a) a .Net program, and (b) does a
sector backup.

Richard Rosenheim


 Reply:
by:spamfurnace

 Sniff, sniff, man this thread stinks of potential piracy and copyright
violation.
Hee Hee.



Posted by Xander Zelders
0 Comments



tom.ITextRange Find Reguler Expresssion does not work

Found the following interesting discussion in the Newsgroups:

tom.ITextRange Find Reguler Expresssion does not work
by: Just Me

Using
FindText = aRange.FindTextStart(aFindString, aCount, aFlags)

aCount=236 which sounds right for Story

If aFindString="the" and aFlags=0 the word "the" is found.

However, if aFindString="t.*" and aFlags=8 the word "the" is not found

Does the RichTextBox really support Regular Expressions?

Thanks for any info




 Reply:
by:craigv_@online.microsoft.com (Craig Vick [MSFT])

 I'm not sure what RichTextBox you're using. The .Net one and the VB6 one
don't support regular expressions. Neither has a FindTextStart method
either.

Craig VB.Net Team
--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).


 Reply:
by: Just Me

 Your right. I should have asked if the ITextDocument interface on the DLL
the RichTextBox is built on supports regular expressions (what version of
the underlying control is used?).

Is there any problem using the tom interface with a RichTextBox handle?
Seems to work Ok.

Also, why are there no events shown in the IDE for DragDrop.

Thanks a lot



Posted by Xander Zelders
0 Comments



VB and unicode

Found the following interesting discussion in the Newsgroups:

VB and unicode
by:FE-FR

Hi,

I would like to know if I can display unicode characters with VB6. For
example with a Label or textbox control.

If it is not possible directly, are there anu workaround ? APIs, ...

Thanks for your help

FE


 Reply:
by:Cor Ligthert

 Hi FE,

I do not know it that is possible, however maybe they know it in a VB 6
newsgroup, there are a lot. This is VB.net a language newsgroup. that
language can be used with upgraded VB6 code, however with that is all said
about it.

I think you have a better change on an answer in

microsoft.public.dotnet.vb*

I hope you find your answer there.

Cor


 Reply:
by:Sven Groot

 
I think he has a better change of an answer in a newsgroup whose name
*doesn't* contain dotnet. ^_^

--
Sven Groot

http://unforgiven.bloghorn.com



 Reply:
by:Cor Ligthert

 Right,

microsof