|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual Basic .NETmicrosoft.public.dotnet.languages.vb
Ben -
27 May 2006 11:13 PM - 3 messages
I have this data I want to send over the network to the server. It is working fine except I don't know how to break up the buffer on the receiving side. On the client I am sending "hostname<BREAK>data<EOF>" The server ...
Carlos Villaseñor M. -
27 May 2006 9:31 PM - 3 messages
Hi everybody! I need to make a benchmark executing a DLL's functions series in a "for" cicle, but I need to get the initial y final time and then get the difference to make a benchmark. I Tried with "Time of date, Now()", but I ...
Hugh Janus -
27 May 2006 5:51 PM - 4 messages
Hi, I have a datagrid that is not showing a vertical scrollbar even though it has more rows than displayed. I cannot find the property to set this, so after googling, i found this link: [link] ...
graphicsxp -
27 May 2006 2:11 PM - 4 messages
Hi, I have to update a text field of a SQL table. For that I retrieve the records in a dataset and I loop through the rows of the dataset. The field is a very long text string that basically contains the source ...
Jeroen -
27 May 2006 9:13 AM - 8 messages
Hi, I need to create a small app that will detect if a virusscanner is installed and if it's up-to-date. Just like the Windows Security Center does. This will be used for remote monitoring using a special app that calls scripts or ...
Charlie Brookhart -
27 May 2006 6:12 AM - 4 messages
I have created a program that opens a file and counts words, characters, sentences, etc. I have not used the open file dialog control found in the VB ..NET 2003 toolbox. I instead have used Open.ShowDialog(). What I want to do ...
Devlei -
27 May 2006 5:33 AM - 3 messages
I have a file extension that is associated to my application. Opening a file with that extension starts my application OK, but how do I get it to start with that selected file open? With thanks Dave ...
Zicovn -
27 May 2006 4:56 AM - 7 messages
Hi, I want to call a function int* TestCall(int ref1,int &ref2,int n) in <MyDll.dll> file.That was written in VC++6.0. How can i call this function in VB. Please help me! ...
Ben -
26 May 2006 9:48 PM - 3 messages
I need to send data from a client to a server. In the server code I have: s = ServerSocket.Accept() If (s.Connected = False) Then MsgBox("Unable to connect", , "Server Error") Exit Sub ...
Terry Olsen -
26 May 2006 9:09 PM - 2 messages
I'm trying to use the CDBURN.EXE from the SDK. I start the process and redirect the output. I want to be able to get the output continuously so I can update the GUI. But it seems to "spit out" the StandardOutput only ...
Brahm -
26 May 2006 8:33 PM - 4 messages
hey, another question guys.. is there any way to get module name ? E.g: bas_serial_comm.vb Daniel ...
tzs -
26 May 2006 8:28 PM - 2 messages
I tried to follow the tutorial in the Visio 2003 SDK which implements an COM-AddIn for Visio 2003 in VB.Net. I used the VB Express (2005) version. I could make the Template Wizard work and the MS example code compiles without ...
Brahm -
26 May 2006 7:52 PM - 9 messages
Hey Guys! is there anyway to get in runtime current function or sub name ? Daniel ...
Amjad -
26 May 2006 7:48 PM - 4 messages
I want my TCP client to be able to to tell if there is a TCP Server running at the specified IP address and port number without creating exceptions, because this code will be put in an infinite loop that will keep checking to ...
James MA -
26 May 2006 7:47 PM - 7 messages
I'm now writing a small program to communicate a web server to simulate a web client. I use te httpwebrequest to talk with the server, and it works find for "POST" method, however, when i test other link using "GET" method, i ...
Bob -
26 May 2006 5:55 PM - 3 messages
This is the snippet of code Dim myConnString As String = "Integrated Security=SSPI;Packet Size=4096;Data Source=MyServer;" & _ "Initial Catalog=MyDatabase; " & _ "Persist Security Info=False;" & _ "Workstation ID=MyWS" Dim SQL As String = "Insert Into Mytable (MyField) " & _ ...
sam.m.gardiner -
26 May 2006 4:56 PM - 8 messages
I'm working with VB.NET events and I want a way to disconnect all the handlers of an event. I want to do this in the object that is the source of the event. This is slightly tricky in VB.Net as the eventing ...
TechN00b -
26 May 2006 4:31 PM - 10 messages
I'm trying to write a quick commandline app that takes a string from the commandline and returns a formatted md5 hash. Unfortunately the code won't comple and returns an error of "No accessible 'Main' method with an ...
hartley_aaron -
26 May 2006 4:31 PM - 6 messages
Hi, CurrencyManger has a method called AddNew which well create a new record in the data that it is bound to (ie a new datarow in a table). The new record has null values for all of its elements. What I would ...
Rich -
26 May 2006 4:04 PM - 4 messages
Hello, If I want to update data displayed in a datagrideview/datagridview cell, how can I determine what cell I am updating? I am looking at the click event below, for example. Can I get information from the sender object or the ...
Jerry Spence1 -
26 May 2006 3:09 PM - 5 messages
How do I convert "192.168.0.200" (as type string) to MyIP (as type IPAddress)? -Jerry ...
Scott Lemen -
26 May 2006 2:19 PM - 2 messages
Hi, I built a COM object in VB .NET 2003 but can't find a way for the COM object to determine its executing location. The COM object requires some configuration and the COM object must find the configuration file, with will ...
PJ6 -
26 May 2006 2:17 PM - 6 messages
I really thought they'd rewrite that buggy combo box when they released 2005. But no. I'm looking at the same piece of crap with a slightly different wrapper around it. Do they plan on getting rid of these COM ...
jcrouse -
26 May 2006 2:14 PM - 2 messages
I am looping throught the items in a checked list box. If it helps, all of the items are checked. If I string of text matches a certain criteria I would like to change it's text color to red. I know this is ...
Mr. Novice -
26 May 2006 2:09 PM - 3 messages
A co-worker and I are collaborating on a vb.net app that automates some of the processes our team uses. We wrote preferences for the application that are stored in the registry. Problem that the preferences are not stored ...
Lou Civitella -
26 May 2006 1:27 PM - 2 messages
I have found code that Recycles the Application Pool but it was written in VBScript can anyone convert this for me to VB.Net? Thanks! 'Appendix B: Application Pool Recycle script - Save as Recycleap.vbs 'By Default Recycle All App Pools ...
Lew Burrus -
26 May 2006 1:09 PM - 2 messages
I am relatively new to advanced concepts in OOP, though I am fairly comfortable working in .Net. Have recently taken a 1.1 project into VS2005, and came across a show-stopper of an error. When I create a variable of ...
Christopher Lusardi -
26 May 2006 12:30 PM - 2 messages
How do I determine the last time a file was changed? Thanks, Christopher Lusardi ...
Paul Remblance -
26 May 2006 12:25 PM - 4 messages
I have just converted a project from VB 2003 to VB 2005 and the LockWindowUpdate no longer works! Friend Declare Function LockWindowUpdate Lib "user32.dll" (ByVal hWndLock As Long) As Boolean LockWindowUpdate(Me.Handle.ToInt32) ...
Andy Baker -
26 May 2006 11:30 AM - 6 messages
Our VB.NET 2003 application requires several processes to run overnight. I have written a program to perform these processes with a simple user interface to allow the user to switch various options on/off, and using the code from VB.NET programmer's cookbook (NotifyIcon) have it running in the ...
Helen Trim -
26 May 2006 9:04 AM - 2 messages
A few weeks ago, a kind person gave me a link to a page to download an intelligent combo box. I have lost the link. Could the same person, or another kind person, tell me again. ...
Helen Trim -
26 May 2006 8:57 AM - 6 messages
I have scheduled programs that run overnight. One of them leaves a window open and this stops other users opening the program. It is a third-party application. Can I write a vb .NET program to add to the schedule to close it? What ...
Christopher Lusardi -
26 May 2006 8:16 AM - 2 messages
How can I prevent multible people, who use my program at the exact same time, from overwritting textfiles? E.G.: Two users start the same program and one deletes something but the other saves his data and undoes the delete that was done! ...
Karel Kral -
26 May 2006 8:12 AM - 2 messages
Hello, I need to implement a login form before my application starts and the main form shows. Without Application framework (AF) is this simple. In Sub Main I create and execute login form, then (if login is successful) show and start ...
guy -
26 May 2006 8:05 AM - 3 messages
ehnot really a vb.net question but... i have just started using sqlserver 2005 in my current contract and task one was to clone a table - so i generated a script (easy) and then executed it - "stored procedure Tablename could not be found" ! rerun the script and it ...
Rubén Cuenca -
26 May 2006 7:40 AM - 4 messages
Hy, I need to open files by clicking a open button in a form. Files would be in any format and I want to open them with system's asociated aplication. Thanks for your atention. ...
ljh -
26 May 2006 5:44 AM - 5 messages
OK.....I'm new to this whole Visual Studio .Net 2005 thing (and .Net in general). I have installed Visual Studio Pro 2005 and thought that a version of SQL Server 2005 came with it (developer edition?). But, when I try and attach ...
ravikkancharla -
26 May 2006 3:10 AM - 3 messages
Hi, I dont have any default images to select for toolbar buttons. How can i add standard images? I am very new to building a Form. Can someone please help??? Ravi ...
Mike Johnson -
26 May 2006 12:52 AM - 5 messages
I'm using VS Basic.net 2003 How can I change the foreground color of the item being added to a listbox? ...
anonymowho -
25 May 2006 10:35 PM - 2 messages
I am fairly new to VB.net. I was wondering if there is any classes already defined within the .net framework that will let me move some of my files dynamically to an FTP server. I want my .net application to keep checking a particular folder on a Windows ...
Terry -
25 May 2006 10:26 PM - 10 messages
I am converting (attempting) some vb6 code that makes vast use of interfaces. One of the major uses is to be able to split out Read-only access to an obect. Let me give you a simple (contrived) example: ...
Nick -
25 May 2006 10:12 PM - 11 messages
Hi there, I'm having great difficulty obtaining all of the document data for a framed HTML document. Once the documentcomplete event has fired for the last time I am analysing the webbrowsers document property. Unfortunately in a framed HTML ...
creator_bob -
25 May 2006 10:04 PM - 2 messages
How do I detect if a text box had its text cut short? When I dynamically create text boxes, any with incomplete text I would like to add its text to a tool-tip. ...
Bill Nguyen -
25 May 2006 9:12 PM - 3 messages
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 ...
gmou -
25 May 2006 8:44 PM - 8 messages
Dear group, I am building a translator from C++ into VB (and into C#). At the moment, I have a hard time figuring out the equivalent of a 'for' loop in VB. Given C++ code: for( int i=0; test_fct(i); increment_fct(i) ) ...
Brahm -
25 May 2006 8:41 PM - 3 messages
Guys, is there anything like mztools to vb 2005 ? Daniel ...
Brahm -
25 May 2006 8:38 PM - 7 messages
Hey Guys! I am moving from vb6 to vb2005 I was using: on error go lbl_error: code.. code.. exit sub or function lbl_error: .code code ...
Rich -
25 May 2006 7:59 PM - 5 messages
Hello, I have a child form in an Mdi Parent form. I have 5 menu buttons on the Parent that I use to show the child form. Originally, in the Parent form on load event I had this line of code ...
MikeL -
25 May 2006 7:12 PM - 4 messages
What is the syntax for declaring both <EventClass> and <Guid> attributes on a class? The following causes an error in the class declaration: Imports System.Runtime.InteropServices Imports System.EnterpriseServices <Guid("0EA77155-29EA-4f1b-870C-B6D7287E65EC")> _ ...
Ravi Shankar -
25 May 2006 5:37 PM - 7 messages
Hello, I have written a service using VB.Net which is basically a asynch socket listener. I have been able to install it successfully. Using the Service Control Manager I am able to start & stop the service successfully. Once ...
Strah -
25 May 2006 4:06 PM - 5 messages
Is there a way to catch the event of terminating the application from the the processes tab in task manager? I have created windows app, and if a user termintates the app in the task manager, I'd like to be notified. I tried few combinations of Close, Closing, ...
sh -
25 May 2006 3:53 PM - 4 messages
I'm relatively new to VB.NET, although I've been a VB programmer for over 10 years. I'm looking for a controls suite (something like Infragistics or ComponentOne). However, I've been burned before with products that have poor documentation and I don't want to get burned again. ...
Francillard -
25 May 2006 3:47 PM - 4 messages
I´m trying to find out the way to rezise a continer when mi form it´s maximised whitout losing the size relation betwen them. if there any body that can help me about i'l be apreciated. thnks ...
cj -
25 May 2006 3:36 PM - 5 messages
I'm using VB2003 running on Windows 2000 5.00.2195 Service Pack 4 and Windows XP Pro Version 2002 Service Pack 2 PCs. I understand the Windows API offers a way for the program to reboot the pc w/o asking me any questions. Just shut it down and restart it. Can ...
Justin -
25 May 2006 3:18 PM - 8 messages
Is there any way to prevent VB.net to give default value to a variable (changing settings what not...)? For example Dim test As Integer test = test + 1 the statement "test = test + 1" should give me an error since variable test ...
Dave Moran -
25 May 2006 3:15 PM - 6 messages
This may be a trivial question, but it's stumping me. Public Class A End Class Public Class B Inherits A Public Sub New B(ByRef a as A) 'I want this class to reference 'a' and not copy it. ...
Amjad -
25 May 2006 3:00 PM - 2 messages
Hello, I have a main Windows Form and a Module class in a Solution. I'd like to know if a Timer.Tick event for example get raised in the Module when I'm running the Windows Form? The same thing can be asked when I'm using the SerialPort control in the ...
pamelafluente -
25 May 2006 2:26 PM - 6 messages
A quick question, I have a string with a date in european format, e.g. "30/4/2006". What is the FASTEST way to produce the corresponding string in USA format "4/30/2006" and asian format "2006/4/30" ? ...
Christopher Lusardi -
25 May 2006 2:21 PM - 2 messages
After running my application for a while, how can I restart it as it I just clicked on it on my desktop to run it? Thank, Christopher Lusardi ...
Mr. Murad Jamal -
25 May 2006 1:52 PM - 3 messages
Dear guys, I have 7 .wav files in C:\ directory [named: 1.wav, 2.wav, ..., 7.wav], I'd play them all by clicking on "cmdStart" button on a Visual Basic 2005- Windows Application Form. I thought I should use this segment of code to get this thing done: ...
Jerry Spence1 -
25 May 2006 1:12 PM - 3 messages
I am trying to get a jpg image as follows: Dim Client As System.Net.WebClient = New System.Net.WebClient Client.DownloadFile("http://root:<password>@192.168.0.99/cgi-bin/video.jpg", MyFilename) However I understand that IE no longer supports this 'in-line' presentation ...
Christopher Lusardi -
25 May 2006 12:46 PM - 4 messages
If I want to copy one file to another how do I do that? I want to do this even if the second file already exists. Thanks, Christopher Lusardi ...
rgreen -
25 May 2006 12:39 PM - 3 messages
I'm trying to automate word from my VB.NET app. I have a document I want to use as a template (actually its an invoice). I've got placegholder text in the document like this {{address}} I'm using find and replce to populate my invoice with text from my ...
Christopher Lusardi -
25 May 2006 12:11 PM - 4 messages
I know how to rename a file! WIth VB, how do I delete a file etc? Thanks, Christopher Lusardi ...
TCook -
25 May 2006 10:26 AM - 2 messages
Hey Everyone, Using the following in VB, one can launch a screensaver in a window on a form: Shell "sspipes.scr /p " & CStr(Picture1.hWnd) Once launched, how can the screensaver be terminated programmatically? Thanks & Regards, TC ...
HKSHK -
25 May 2006 10:10 AM - 2 messages
Hi folks, I hope that anyone can give me a tip about this problem. I need to monitor the content of an array (boolean variables). The best thing would be if I was able to create an event that's being triggered ...
TC -
25 May 2006 3:24 AM - 4 messages
I'm using Visual Basic 2005 Express. When I use the command Debug.WriteLine("Testing"), nothing appears on the output window. I searched the newsgroups and found this problem reported twice, but in both cases the solution seemed to apply to Visual Studio, and not ...
Jose -
25 May 2006 2:21 AM - 3 messages
How obtain the current record in the datagrid? The idea is doubleclick and show another form with this current recor of my datagrid. Thanks a lot ...
Bill Nguyen -
24 May 2006 11:58 PM - 2 messages
created a CrystalReport10 msi file but can't include it in the prerequisite list using ClickOnce publish. Thanks Bill ...
Greg Larsen -
24 May 2006 11:32 PM - 3 messages
I have a string that contains both the filename and the directory. Something like "c:\temp\test.txt". I need a process that will take this string and return only the file portion "text.txt". How might I do this. Kept in mind ...
YYZ -
24 May 2006 8:15 PM - 3 messages
Hi guys. When I receive an XML string via the net (HttpWebResponse), I can't load it into an Xml.XmlDocument object. However, if I take that exact same string of XML and load it up in another program, it works ...
Jose -
24 May 2006 8:06 PM - 3 messages
I have a combobox with two possible values: ONE TWO when i was pushed my save button save all values of my forms but this value ONE or TWO don't my code is: ComboBox3.DataBindings.Add("SelectedValue", dset, "tabla.status") ...
vul -
24 May 2006 7:27 PM - 5 messages
I start the application with Application.Run(New MDIMain) in Sub Main. MDIMain is the mdi form which loads and then calls Login form. I'm using Application.Exit to terminate my VB 2005 application on Login screen if user clicks on Cancel button. ...
Christopher Lusardi -
24 May 2006 6:59 PM - 3 messages
How do I rename a file on the C disk? Thanks, Christopher Lusardi ...
Charlie Brown -
24 May 2006 6:19 PM - 2 messages
I am using the code below to loop through a dataset for reporting stats. The problem I have is when I modify a row of data, it counts that row 3 times the next time i run the loop. I believe it has ...
Pascal -
24 May 2006 6:06 PM - 5 messages
bonjour does somebody know how to keep the alignement of letters like in the notepad of windows ? I notice that's different between notepad and a richtextbox.... don't know why and how to keep it like in notepad... (if man types 6 letters and return and 6 more letters. the last i of the ...
James Minns -
24 May 2006 5:43 PM - 8 messages
Hi, I'm porting some legacy software to .Net; its a communications driver that speaks to the outside world via DDE. Since MS dropped DDE support in VB after version 6, is there some workaround? Maybe a couple of classes, one to embed in the form to be the "link source" ...
Rich -
24 May 2006 5:29 PM - 3 messages
Hello, Following an example at [link] (by Cor Lightert and Ken Tucker) on binding a dataRelation to a Datagridview for sqlClient, I was able to view rows in datagridview2 that corresponded to a selected row in ...
Rob -
24 May 2006 5:22 PM - 4 messages
Any idease on how to fix ? The Code in C# public void Load(string FileName) { LineToDraw l; try { this.Clear(true); StreamReader sr = new StreamReader(FileName); string line; ...
Greg Larsen -
24 May 2006 5:00 PM - 2 messages
Does anyone know how I can get the Alternate Name for a file using VB? You know that short file names that are displayed when you issue the "DIR /X" DOS command. I can get the long file name using System.IO.FileInfo class. Only ...
kentk -
24 May 2006 4:01 PM - 2 messages
Is there a difference in how SQL Server 7 and SQL 2000 processes SQL passed from a program by an ADO command object. Reason I ask is I rewrote a couple applications a couple years ago were the SQL statements were inline. I ...
news.microsoft.com -
24 May 2006 4:00 PM - 5 messages
Hi, I am sorry if it has been discuss before I searched and could not find. I want to create object from variable. I have name of Crystal Report in Table and I want to create object from variable any idea or clue ...
Christopher Lusardi -
24 May 2006 3:30 PM - 3 messages
Is there any simple way to do this? Thanks, Christopher Lusardi ...
Tlink -
24 May 2006 2:11 PM - 2 messages
I need to open and close ports within vb.net, is this possible? and if so a example or reference would be greatly appreciated. Thanks in advance ...
Kyjan -
24 May 2006 1:20 PM - 4 messages
Greetings to all! I chose to post this here because I'm trying to convert a project that was written back in the day in VB6 and I have a question about syntax that I've never seen before. There are multiple forms. One form A, it access something on form B by ...
Smokey Grindle -
24 May 2006 12:36 PM - 8 messages
Say I have the following piece of code Dim dtPerson As New DataTable Dim cmd As New SqlClient.SqlCommand("sp_test", database) dtPerson.Load(cmd.ExecuteReader) cmd.dispose() which instanciates the command object, uses it then destroys it, now if i ...
Pieter -
24 May 2006 12:13 PM - 5 messages
Hi, I recently started using Indexed Views in my SQL Server 2000 (Enterprise Edition), so I need "SET ARITHABORT ON" when doing an insert or update on one of the concerend tables. I was wondering if it would be 'better' to set the ARITHABORT ON for the ...
trevor.niemack@za.syspro.com -
24 May 2006 11:49 AM - 4 messages
I want to write a web service and then to use this to interacte with a web page that then sends stuff to a DB. I have written a webservice before but to interact with a specific app. I need to understand the logic of writting a webservice and how to use ...
TCook -
24 May 2006 10:26 AM - 12 messages
Hey All, I was wondering if anyone has done or knows how to use a screen saver within a VB app (i.e. display a running screen saver on a form or child window like the 'Preview' functionality in the Control Panel)? ...
JJ -
24 May 2006 10:19 AM - 3 messages
Hi All. Apologies if this posting is not appropriate to this particular list. I know that may of you however will have done this, and I have had great advice in the past from you guys, so I hope you don't mind me asking... ...
Nikos Tsoupros -
24 May 2006 9:53 AM - 2 messages
i use vb and i have a problem with encoding in vb.net chrw(204) returns the char I in vb6 the function chrw(204) returns the char I also in vb6 ascw(chrw(204)) returns 73 why?????????????????? ...
Charles Law -
24 May 2006 9:38 AM - 10 messages
Hi chaps I realise that this is a .NET group, but please don't shoot me down quite yet. I looked in the vb classic groups and there seems to be so little activity there that I was not hopeful of a prompt response, and I figure ...
kayrogage -
24 May 2006 9:20 AM - 3 messages
I have an XML document that I am looping through to generate a word document. I loop through each element in the xml document and type it out in the word document, as I type out each element of text I apply ...
Dave Harry -
24 May 2006 5:13 AM - 6 messages
Pardon the crosspost, didn't know where to put this one. I upgraded a project from VB6 to dotNET 2005. It compiles and runs ok on a local disk, but if I put the EXE on a mapped network drive it just apologises for the invonvenience of not running. ...
Terry Olsen -
24 May 2006 4:43 AM - 4 messages
How can I find all CD/DVD drives on a system? And how can I tell if they are RW's? Thanks. ...
c_shah -
24 May 2006 1:17 AM - 3 messages
Scenario: I have to update my SQL server table from an ORACLE database to keep my SQL table in sync with ORACLE. I have one data table that is populated form ORACLE and other one is populating from SQL server (Both data tables are part of the same ...
Dav Tan -
23 May 2006 10:56 PM - 3 messages
Hi, When I try to build my solution, in the output window, it shows: "Performing main compilation..." and then it just hang. But if I compile a smaller solution, it works fine. Any idea of what causes this? dt ...
Rich -
23 May 2006 10:38 PM - 8 messages
Hello, I am pulling master data from one master table and detail data from two detail tables. The rows from the master data are displayed in textboxes on my form which are bound to the data with databinding. The data from the 2 ...
Craig Lucas -
23 May 2006 10:27 PM - 2 messages
I havent seen anyway to transfer the data over to sql server in a graceful way. I have to generate sql statements dynamically or loop through each record and call a stored procedure. Is there a more efficient/bulk way of ...
Coleen -
23 May 2006 10:05 PM - 9 messages
Yes, I know why would I want to create a back button when there is one on the browser? Because that's what the users want! they want a "Previous" button that they can click from any web page in our application that will do ...
|
|||||||||||||||||||||||