all groups > vb.net > april 2006 > threads for thursday april 27
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
Datagrid, binded columns and unbinded columns
Posted by Ohad Weiss at 4/27/2006 11:08:57 PM
Hi all
I need to know weather it is possible to add a column to a datagrig that
based on a dataset, which is not in the dataset (like a description of a
code that appear in the datagrid).
here is the code I use to present data in the datagrid:
Code:
Private Sub FillDataGrid(ByRef dsD... more >>
Invoking apps within VB
Posted by Al_C at 4/27/2006 10:54:57 PM
Hi,
We have a few apps that we would like to invoke from withing our program.
Suggestions? Should I create a seperate thrread to run the app in.
The idea is to call excel for example from within our vb.exe
Thanks in advance,
Al
... more >>
At a loss figuring out if an IP is on LAN or INET
Posted by Terry Olsen at 4/27/2006 10:03:07 PM
I'm writing an app that communicates with computers both inside and outside
my router. So I need to determine by the remote host's IP address if I need
to send them my LAN IP or my Internet IP. Someone suggested AND'ing the IP
and my Subnet Mask but I come up with this:
My IP: 192.168.0.14... more >>
scope and object assignment
Posted by James at 4/27/2006 9:54:50 PM
Hi.
I just had success doing something that I thought should fail.
Well maybe I did. I'm not sure.
In short, I assigned a locally declared object to a module level object
and the module level object retained the values of the local even after
the local went out of scope.
I was expectin... more >>
Function call problem
Posted by ataanis NO[at]SPAM gmail.com at 4/27/2006 9:23:47 PM
Hey everyone
I'm writing this simple function call from a sub , but for some reason
when I click the file to open, it freezes, can anybody tell me what's
the deal?
Thanks
Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem2.Click
... more >>
Enumerating Network connections
Posted by Vijayakumar at 4/27/2006 9:11:19 PM
Hi all,
How can I enumerate network and dial-up connections using vb.net? I need to
display the network and dial-up connections in a combo box and to display
its details while selecting the same.
Vijayakumar
... more >>
DWORDS ? LONG? - I need to create constants for the following
Posted by Jeremie Legault at 4/27/2006 8:38:01 PM
Hi Everyone,
I am creating an application to interface with Terminal Services but as you
will learn I am a beginner. I have learned how to connect to the API to use
the functions available. One of the functions I would like to use is the
following:
BOOL WTSWaitSystemEvent(
HANDLE hSer... more >>
Need help to read text file?
Posted by at 4/27/2006 7:43:14 PM
I need to read a text file line by line (one line at a time),
what are my options?
Thanks
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
I am trying to convert a C# file to VB.NET - need help
Posted by Learner at 4/27/2006 6:33:03 PM
Hello,
Here is the code snippet I got strucked at.
I am unable to convert the below line of code to its equavalent vb.net
code. could some one please help me with this?
[DataObjectMethod(DataObjectMethodType.Select, true)]
static public List<RoleData> GetRoles()
{
... more >>
Textbox, how to detect enter "key" event.
Posted by Boki at 4/27/2006 6:22:13 PM
Hi All,
Could you please advice that how to detect the enter "key" event....
due to I don't want another button to do "Go" function.....
Best regards,
Boki.
... more >>
Different encoding? ( problem on Chinese encoding on textbox ... )
Posted by Boki at 4/27/2006 6:16:37 PM
Hi All,
Here is the code:
Shell("D:\Program Files\Mozilla Firefox\firefox.exe
http://tw.dictionary.yahoo.com/search?ei=UTF-8&p=" & TextBox1.Text)
If I type English word in TextBox1, I can get correct result, but if I
type Chinese, the result is wrong. It seems that they use diff... more >>
Full Screen Forms
Posted by Jon Vaughan at 4/27/2006 3:51:31 PM
Im writting an app that uses full screen forms ( borderless ) and I find
that when I go from one form to another the contents of the forms are
getting render together , as in you can see part of screen 1 on screen 2 for
a short period. The time that springs to mind is when I hide form 2 which ... more >>
Can't open a project by iteself? Solution opens every time!
Posted by cmay at 4/27/2006 2:25:23 PM
I have a big solution filled with a bunch of projects.
I add a project to the solution (not adding any references mind you).
Now, if I close down everything and try to just open that single
project, just the vbproj file, not anything to do with the solution, it
ends up loading the entire sol... more >>
update form background color
Posted by HankC at 4/27/2006 2:07:07 PM
I have a vb.net app that serves our four campuses. A student logs in to
start the app.
Based on their login domain, I wish display the campus color and image
on the form.
I cannot find any sort of me.backgoundcolor attribute however...
Can someone help me dynamically chage the backgroun... more >>
DLL does not load Dynamically
Posted by RSS at 4/27/2006 1:20:28 PM
Hi everyone,
I have an app that uses some DLL's that are shared across couple =
applications. There are reasons existing that prevent me from putting =
them in to the GAC.
Each of these app's at some point in time loads a DLL dynamically in =
this fashion:
=20
System.Reflection.Assembly ... more >>
SQL Server Express Advanced and SSIS
Posted by vbnetdev at 4/27/2006 1:11:12 PM
Anyone with this set of client tools, are you able to create SSIS packages
(and at least save them locally if not to SQL Server) when importing data to
a remote database and be able to execute them?
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http:/... more >>
WMI - Executing a method to read registry - Going Crazy!
Posted by Bmack500 at 4/27/2006 12:23:22 PM
Hello, and thanks in advance. I have the below code which keeps
returning "1" as the result. It's never successful, and I don't know
what I'm doing wrong. I know that when I get to objManagementClass &
objManagmeentBaseObject, the VB debugger says "can't read value" on all
lines. Bu tI can read ... more >>
Stepping between .Net IDE into a VB6 dll call
Posted by scl at 4/27/2006 11:57:15 AM
I have an application with a .Net front end that makes calls into a series
of VB6 dll's via COm InterOpt. Although everything works quite well, the
main issue that I have is regarding the overall debugging workflow.
Ideally, I would like to configure my IDE's such that when I am stepping
th... more >>
is this possible...
Posted by mattie at 4/27/2006 11:09:01 AM
hey all,
can you code against the event log, for instance if an entry for a specific
user shows up can i popup a message box notifying me that?
thanks,
mj... more >>
Format Function
Posted by Lee at 4/27/2006 10:38:02 AM
In VB6 you could use the format function to format strings using the @ and !
symbols. for example format("LEE", "!@@@@@@@@") would left align the string
"LEE" to the number of spaces allowed in the repeatings @'s. Has this
functionality disappeared in the format function for .NET, if so where ... more >>
General Design Question - Class Name
Posted by Mythran at 4/27/2006 10:33:25 AM
I'm in need of some suggestions. Currently, we have a class that is named
StringValidator. It has methods such as ValidateMaxLength,
ValidateMinLength, IsNumber, IsMatch, ValidateNumeric, ValidateInteger, etc.
There is custom validation for each method (such as IsNumber compared to
IsNumer... more >>
FileSystemWatcher any experts here?
Posted by DWalker at 4/27/2006 10:32:27 AM
I need to monitor a folder to see when a file that is being FTP'ed into the
folder is finished.
I have looked at the doc for the FileSystemWatcher and the Created event.
It's not clear from the doc whether that event is fired when the file is
first created (sounds like it is), but I need... more >>
Redirect question
Posted by AZNewsh at 4/27/2006 10:25:02 AM
I am sure this is a simple question but I am drawing a blank:
When developing on localhost if I do the following everything is fine:
HttpContext.Current.Response.Redirect("../this_folder/that_folder/apage.aspx")
Takes me to: http://localhost/this_folder/that_folder/apage.aspx
However on ... more >>
simple combo question
Posted by Tim at 4/27/2006 10:06:50 AM
it must be tempting to say FTFM, but believe me I have.
I have a combobox.
I set Co.ValueMember = "field1"
and Co.DisplayMember = "field2"
and then load some data this way
Co.DataSource = DS.Tables(1)
so far so good, I now have a combo filled with data.
Now all I need to do i... more >>
Upgrading to VS 2005 compatibility with 2003
Posted by BK at 4/27/2006 9:38:25 AM
If I upgrade a PC from VS 2003 to VS 2005, can I run either of them or
will I only be able to use VS 2005?
I have a project that was started in VS 2003 that is about to go into
production. I am reluctant to make the switch for this project just
yet though. I would like to be able to run VS 2... more >>
Save RTF to SQL Server 2000
Posted by Kevin L at 4/27/2006 8:52:20 AM
I have a RTF control in my application. Is there a way to save formatted
text from this control to SQL Server and retrieve it while preserving the
format of the text?
Thank you
... more >>
ImageList - Memory-Issue in vs2005
Posted by Michael Maes at 4/27/2006 8:20:01 AM
Hi,
We have been using ImageLists in our Projects extensively.
Many forms have two ILs with nearly 900 bmp's each.
They are configured: 32Bit, Fuchsia, 16x16 (and one 24x24).
In VS2003 there was no issue with this.
Upgrading to VS2005 however makes it impossible to open those forms in
De... more >>
Measuring the degree of sortedness of an array...
Posted by almurph NO[at]SPAM altavista.com at 4/27/2006 8:16:55 AM
Hi,
How do you measure the degree of sorted/unsortedness of an array in
VB.NET? Are there any well known algorithms out there for doing this?
Any help/assistance/code-samples/suggestions much appreictaed.
Al.
... more >>
Detecting microphone
Posted by Jordi Rico at 4/27/2006 8:13:41 AM
Hi,
I've been searching everywhere and can't find any way to do this...
What I want to do is simple:
In my app, the user can speek to the micro, and then some kind of event
must rise.
No voice recognizition, just detecting a sound coming from the micro...
If there's no answer in .net, th... more >>
Strange error - help needed
Posted by ^MisterJingo^ at 4/27/2006 7:32:16 AM
I am getting the following error:
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified ca... more >>
Downloaded code fails to compile
Posted by BBM at 4/27/2006 7:15:01 AM
Hi everyone,
This is probably a truly stupid question, but here goes.
I'm trying to use the VB version of an application framework. I'm sure it
works. I've been using the C# version for about 2 years.
The errors that I get when I compile are as if inheritance has stopped
working or as... more >>
VB (5or6) does something wierd with image data
Posted by geronimi at 4/27/2006 7:14:39 AM
Vb stores an image (bitmap/jpg) in a SQL2000 image field. For some
reason it doubles the size by adding 00 for each byte. But sometimes it
doesn't add 00 (0000.0000) but 01 or 20 or ?? and also the byte that
should be transferd is changed...
So SQLImageData = Imagebyte + 00
and sometimes
SQLIm... more >>
What happened with module variables?
Posted by juan at 4/27/2006 6:49:02 AM
I have a web project of Visual Basic 2005. I want to create a variable for
all the project (in a module, like in Visual Basic 2003). But I think I must
create them in another element diferent than a module. Is it true?
Regards, John.
... more >>
How to detect removeable drive insertion
Posted by Steve Marshall at 4/27/2006 2:58:06 AM
Hi All,
Apologies if this has come up before, but how can I set up something
that will notify me when a removeable drive (like a USB drive or
CompactFlash card) is inserted into its slot? Ideally I would like
some sort of event that would call my code when it happens. The
FileSystemWatcher ... more >>
how to fill listview without image
Posted by mrmagoo at 4/27/2006 12:59:34 AM
I'm trying to fill a listview with data. I'm using the example from the help
file, but how do I modify this to avoid using images? I want the exact same
layout but without images. This procedure seems so dependent on the image
being the "anchor" of each row that I don't understand how to modify i... more >>
|