all groups > vb.net > june 2005
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 Translation C#? to VB
Posted by Scott Gunn at 6/30/2005 9:36:39 PM
Hello all
I'm trying to use the scrollwindowex api however I have the same problem as
this guy had. There is an answer here in the reply. I just need some help
converting it to VB.Net
>Thanks Peter, it works. I have another question for you. What does the
>clip rectangle passed on the 5th... more >>
Change Value of Existing Element
Posted by Lee at 6/30/2005 9:01:13 PM
I have an xml Structure:
<?xml version="1.0" encoding="utf-16"?>
<Request>
<Operations>
<Command>
<OpType>login</OpType>
<Params>
<UserName>leebo</UserName>
<Password>leebo</Password>
</Params>
</Command>
</Operations>
</Request>
I'm t... more >>
How to use Windows Explorere's Thmbnails and/or Filmstrip "app"
Posted by Jerry H. at 6/30/2005 6:49:40 PM
Windows Explorer in XP has some handy image browsing features that I'd
like to incorporate into my own app. I'm referring to the "View" menu
option that let's you selecte between Filmstrip, Thumbnail, List, and
Details, among other modes.
I'd guess that the Filmstrip and Thumbnail mode is act... more >>
How To? import vb net forms ???
Posted by GerryLowry1(905)825-9582{AbilityBusinessComputerServices) at 6/30/2005 6:23:06 PM
In Microsoft Access, importing and exporting forms from one .mdb to another is very, very easy to
do.
VB.NET seems to be quite difficult, probably because I am doing something wrong.
Steps to recreate (Visual Studio 2003)
----------------------------------------
Create VB Project ... more >>
how pass data between forms
Posted by tcloud at 6/30/2005 3:05:03 PM
part of my application has a "Notepad" similar function with a separate
"Find" form.
-- how do I keep the Find form open yet have it pass data back to the Main
form to do repetitive searches -- llike Notepad ??
I've tried both "Show()" (which doesn't work) and "ShowDialog() (which works
fin... more >>
MessageBox coming up with blank message and blank buttons.
Posted by Mike L at 6/30/2005 2:21:04 PM
MessageBox coming up with blank message and blank buttons. The title and
icon show up, and the buttons work, if I click the first blank button,
returns Yes. Why is the message blank and the buttons are blank?
Private Sub cmdAddPrivileges_Click(ByVal sender As System.Object, ByVal
e As... more >>
INI or XML
Posted by Daniel at 6/30/2005 12:27:28 PM
Hi Group,
I need to store some app settings. I always used an INI file in VB6
using WritePrivateProfileString but I have read that XML is now the way
to do it with .NET
Any suggestions as which to use? I don't need to store anything
complicated so I just want the simplest solution!
... more >>
Developing in .Net 2.0
Posted by Nitin at 6/30/2005 12:00:44 PM
Hi,
Should I start coding in .net 2.0 beta and give final release of the
softwares on .Net 2.0 Beta. Its releasing on 17th Nov.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to convert this code from C# to VB.NET?
Posted by Chris at 6/30/2005 11:36:34 AM
When I run this code in VB.NET, it hangs on the GeneratePerlinTexture call.
I think it is because I am not calling it correctly.
The C# code that works:
[DllImport("PerlinDLL.dll")]
static extern unsafe void GeneratePerlinTexture(void *ARGB32_pixels, int w,
int h);
....later...
Bitm... more >>
Panel like Visual Studio .NET
Posted by André Nobre at 6/30/2005 11:20:41 AM
Hi all...
i need to create a component like "Solution Explorer" or "Properties" from
Visual Studio .NET. It´ll stay "closed" and when the cursor roll over this
component it opens. It must have some buttons, textbox, etc inside.
Anyone can tell any reference to do this? I really don´t know how ... more >>
Intellisense question
Posted by news.microsoft.com at 6/30/2005 10:55:46 AM
How can I create a method and attach a description to it so that if someone
instantiates my object and references the object.method a description of the
method shows up.... just like the vb methods do?
I have tried things like
imports system.componentmodel
<Description("My description")> ... more >>
Manipulating XML data - using a DataSet
Posted by Scott M. Lyon at 6/30/2005 9:06:43 AM
Part of an application I'm working on needs to manipulate some XML data (in
an XML file), by reading the data into a DataSet using the MyDataSet.ReadXML
method, and then using MyDataSet.WriteXML to update the XML file itself.
However, now I want to take advantage of the Primary Key function... more >>
System.Web.Mail.Smtp namespace
Posted by marcmc at 6/30/2005 7:48:04 AM
Trying to send an eMail frommy vb.net App.
Is there anybody out there that has successfully done this?
I am having major problems and need a step by step guide into the world of
system.web and IIS. The reading I have done(alot) has been pretty useless in
helping me understand the various bits ... more >>
reference dependency warnings during build
Posted by marfi95 NO[at]SPAM yahoo.com at 6/30/2005 7:21:48 AM
In the project I'm working on, I have a reference to another project of
mine that is the base class objects for my system. The problem I have
is that when I build my project, it compiles, but I get following
warning:
Warning: The dependency 'Intface1, Version=1.0.2006.32652,
Culture=neutral'... more >>
Radio Button in Group Boxes
Posted by Helen Trim at 6/30/2005 4:17:03 AM
Is there a group box property that tells you which radio button was clicked?
--
Helen... more >>
manged alternative to get the complete text from each open window
Posted by gabe at 6/30/2005 3:34:01 AM
i have a solution to gather the text in each window that is open, but would
rather use only managed code rather than unmanaged code my current solution
relies on. The purpose is to get the text in each open window
even/especially for child windows in other non managed mdi apps - if excel
ha... more >>
user control and events
Posted by Sam at 6/30/2005 2:21:39 AM
Hi,
I've got a user control with a method called Collapse. I would like
that when this method is called (it's only called inside the user
control, never by the client), an event can be caught.
So my client form can catch an event such as OnCollapse.
HOw can I do that ? Syntax ?
Thx
... more >>
Adding desktop shortcuts and start program entries
Posted by Jack Russell at 6/30/2005 12:00:00 AM
Can anyone tell me if there is a .net way of doing these things.
I have VB6 code but assume there is a new way.
Thanks... more >>
is there way to send email throught outlook express without mapi controls ?
Posted by roni at 6/30/2005 12:00:00 AM
i dont like to use ocx controlx.
is there new dll for vb.net that do the job ? or newer code, to send email
throught outlook express.
... more >>
Crystal reports SQL Server connection problem.
Posted by Marcos Beccar Varela at 6/30/2005 12:00:00 AM
Hello, does anyone knows how to make a SQL Server connection from a string
not using the "wizard"? I have various reports and I need to make a
connection that when the parameters are changed in that string, all
connections in reports change too.
Thank you and sorry for my english!
... more >>
Case conversion
Posted by John at 6/30/2005 12:00:00 AM
Hi
How can one change a textbox's content to mixed case (first letter of each
word cap, rest small) in vb.net?
Thanks
Regards
... more >>
"printf" style string method?
Posted by Robin Tucker at 6/30/2005 12:00:00 AM
Given the need to (possibly) alter the position of various elements in a
string due to localisation, is it possible to build a string using a
"printf" style function, such that the source string can also contain the
position of the elements to follow? Eg. :
printf ( "Your database is... more >>
ApplicationDomains
Posted by Jody L. Whitlock at 6/29/2005 10:58:54 PM
Can someone assist me in this quest? I've been trying in vein for some
time now to figure out how to use AppDomains as a way of making a
plugin architecture. Basically, here's my plan:
1) Load main assembly
2) Create new appdomain to "discover" all plugins and report them back
to the main a... more >>
Imports being lost
Posted by Earl at 6/29/2005 9:50:51 PM
Continue to be troubled by referencing issues in this one app. My app
references several external .DLL files that I created. Sometimes when I open
the solution, I get Build errors that "Namespace or type ... for the Imports
cannot be found". Yet if I close without save and re-open, the referen... more >>
File loading
Posted by Dennis Jackson at 6/29/2005 9:00:06 PM
i want to load an external file from my console app. How can i do this?
Dennis
... more >>
How to use OCX?
Posted by Terry Olsen at 6/29/2005 8:12:27 PM
I have an OCX that I used in VB6 (there is no .NET version of it). There
was an INI file with it. I right-clicked the INI file and chose "Install"
and rebooted. I then created a new VB project and added a reference to the
OCX. I tried to create an instance of the OCX via "dim MyOCX as new
... more >>
Calculating Time in VB .Net
Posted by Brian at 6/29/2005 8:09:02 PM
I'm learning to program with VB .Net. I'm trying to write a program that
will calculate jogging time. I have Text boxes for Distance1, Distance2,
Speed1, Speed2, Time1, Time2, and Total Time. For example, say I run 2 miles
at 8mph (7:30 minute miles) and 1 mile at 7.5mph (8 minute miles). ... more >>
WebBrowser control error
Posted by Shane Story at 6/29/2005 7:55:50 PM
I am trying to add the Microsoft Web Browseractive X control to a vb.net
form.
I always get an error on the EndInit line.
Parts of the errors says:
"Unknown error"
"First Chance exception"
I tried putting it in a user control but this failed also.
Anyone have a solution?
Or is... more >>
Directinput
Posted by Steve at 6/29/2005 6:59:11 PM
does anyone know where i can find an example of directinput for a joystick
on VB.NET. all the examples i can find apply to vb 6.0.
Thanks
Steve
... more >>
Deployment question
Posted by Bryan Dickerson at 6/29/2005 4:19:15 PM
I have a Class Library that I have exposed as a COM component for use in a
VB6 program. In the VB6 references, the pointer is to a TLB file. Should
this be the file that I deploy to a user's machine? Does it need to be
registered as a normal COM DLL? It's not ready for prime-time, yet, so ... more >>
How to link to a dll in vb.net
Posted by Chris at 6/29/2005 4:08:29 PM
I have a DLL that I would like to use in VB.NET but I am not sure how to
link to it. It is called PerlinDLL.dll and is a dll that spits out a bitmap
of a fractal image.(link:
http://www.stanford.edu/~jjshed/perlin/index.html ) I do have the code that
I believe allows a C# program hook to it... more >>
Checking to see if a database exists...
Posted by RSH at 6/29/2005 3:08:10 PM
I'm creating databases programatically in .Net and I want to verify that the
database doesn't exist before creating it. i found the SQL code:
IF NOT EXISTS(SELECT * FROM <databasename>)
But when I run the code against a known database, even in SQL Management
Studio I get a "Incorrect syntax... more >>
"Selecting" from a data table
Posted by Ron L at 6/29/2005 2:43:36 PM
I have a data table that lists a series of items in my database. In my user
form, I want the user to be able to filter by a number of criteria (e.g.
location, contract, date modified, etc). Other than modified date, all my
filters are selected via combo boxes. I would like to have the combo... more >>
Check if Stored Procedure already exists in Access Database?
Posted by Carl Fenley at 6/29/2005 12:44:49 PM
I am successfully adding stored procedures to an Access database. However,
I need to be able to check if the stored procedure of the same name already
exists.
Is there a way to do this other than waiting for the OleDbException caused
when adding one that already exists?
Here is the code... more >>
Control (prgressbar) not visible
Posted by JR at 6/29/2005 12:01:55 PM
Hi,
i use a progressbar in my program but it isn't visible the possition is
10;40 (almost exact under the menu). The property visible is true. it is
there in design-mode but not in Run-mode.
in runmode I can change its propertys max min value whitout an error.
i already tryd to dock it ... more >>
Run Dynamic Code
Posted by Manuel at 6/29/2005 11:57:21 AM
I'm using Visual Basic 2005, is there a way to run dynamic code?
Ex:
Dim strToRun as String =""
strToRun &= "dim s as string = ""Hello World!""" & vbcrlf
strToRun &= "Messagebox.Show(s)"
[SomeClass].Execute(strToRun)
... more >>
Dir Function just stopped working!
Posted by bidalah NO[at]SPAM yahoo.com at 6/29/2005 11:57:11 AM
Hi,
Following is a simple version of my now non-working code:
hihi = Dir("c:\burn2\*.*", FileAttribute.Normal)
Do While Len(hihi) > 0
hoho = hehe
hihi = Dir()
Loop
All I am looking to do is perform certain functions on each file in a
dire... more >>
Strangest damn error - database at fault?
Posted by Neo Geshel at 6/29/2005 11:23:36 AM
I am working with an Access database, and every now and again I get an
error that forces me to shut down and restart the www service. The
timing is random, and can occur when I am editing, entering or viewing
data. I have Googled this error message, but have gotten nowhere.
The error is:
... more >>
TreeView Question
Posted by Boni at 6/29/2005 10:15:40 AM
Dear all,
is it possible to implement a tree node so that double click on the tree
node does some operation and double click on "+" of this tree node only
expands tree without doing this operation. Unfortunately I only know
GetNodeAT(x,y), which don't differentiate "+" from the node.
Tha... more >>
OpenFileDialog
Posted by marcmc at 6/29/2005 9:41:02 AM
I can't get the following msdn code below to actually open the .txt file i
select
It seems
Return DlgOpenFile.OpenFile()
or
Return New FileStream(Path, System.IO.FileMode.Open, _
System.IO.FileAccess.ReadWrite)
don't actually do anything.
Please help as I ... more >>
Finding the Column Name
Posted by Thomas Beyerlein at 6/29/2005 9:17:03 AM
Hello, I am looking it for a way of getting the column name, from a
datagrid when the user clicks on one of the cells. I can get the value
and the row Number and column Number, but can not seem to find the event
that will give me the column name that was selected.
Thanks
Tom
*** Sent v... more >>
2 different numbers.....
Posted by Supra at 6/29/2005 9:09:54 AM
how do i get 2 different number in same row? using random
example:
4 2
5 6
7 4
1 7
9 8
3 3 <===== i want different number but not same as opposite
8 5
6 8
2 1
in my code:
Dim Nine_numbers(9) as short
Dim nm, mm As Integer, nine(9), nineA(9) As Object, innn, mm... more >>
persistent data source (light footprint, secure, supports sql query engine)
Posted by Jesse Aufiero at 6/29/2005 9:08:54 AM
I am creating a vb.net app that displays historical financial data in
various ways (grids, charts, etc.). This data is sensitive and should only
be accessible through the vb.net application. The vb.net application must
also be able to issue sql select stmnts against the persistant data sourc... more >>
total playtime
Posted by Samuel at 6/29/2005 8:45:01 AM
hi!
how can i get the total playtime of any audio format (especially mp3s)?
... more >>
CRC checksum algorithm
Posted by ValK at 6/29/2005 7:41:03 AM
Hello,
I’m working with handheld device that communicates with windows service thru
the serial port.
Transaction between device and my application looks like this:
Handshaking:
Device sends ENQ
Service responds DLE 0
Device sends DLESOH4168840000SR01L01DLEETX4á
As you see at ... more >>
Closing event
Posted by N! Xau at 6/29/2005 7:30:44 AM
Hi,
I want to avoid an user closes the form clicking on the upper right
side "X" button.
So, for the Closing event, I set:
e.cancel = true
The problem is, this way the user can't even close the form using the
appropriate button Exit (a button built on the form).
How can I link a click on ... more >>
Array of Value/Ref type
Posted by wg at 6/29/2005 6:23:24 AM
I am attempting to create an array of value types but seem to be haveing a
problem referencing it.
I have created a class
Public Class Tags
Private _Name As String
Private _Address As String
Public Sub New(ByVal Name As String, ByVal Address As String)
_Name = Name
... more >>
Colori dinamici
Posted by N! Xau at 6/29/2005 4:18:10 AM
Ciao,
e' possibile modificare il colore della proprieta' Text di un bottone a
runtime?
grazie
... more >>
Versions
Posted by Peter Waugh at 6/29/2005 3:35:03 AM
Hi,
A quick question (not a programmer)
The verisons for VB are (in decending order)
VB 2005
VB .NET 2003
VB .NET 2002
VB 6.0
VB 5.0
Thank you in advance
Peter
... more >>
Load class library at runtime
Posted by Nikolay Petrov at 6/29/2005 1:04:17 AM
Can I load a class library at runtime?
Plugins, etc?
... more >>
|