all groups > vb.net > april 2005 > threads for wednesday april 13
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 LostFocus does not seem right
Posted by Paul at 4/13/2005 10:32:44 PM
I have a datagrid tied to a data adapter. Everything works great,
EXCEPT, the LostFocus event only fires when I click on a specific cell
within the DataGrid. If I set focus on another control, the LostFocus
event does not fire. This is causing problems because I am checking
for HasChanged on ... more >>
Access parent form (protected friend/friend) variable in child form
Posted by Chad at 4/13/2005 10:05:59 PM
Hey everyone,
Ok, I am very security consious with my application(s). I am currently
working on an application in which I want to create several "global"
variables available ONLY to my application, some will contain string values,
some will contain data sets. How can I do this (code or ... more >>
No one Find Directory created by me...
Posted by Husam at 4/13/2005 9:43:01 PM
Hi Every Body:
I create this directory by using create Directory method:
Directory.CreateDirectory("C:\windows98\windowsdll\win32app\direction")
if I want to hide this directory I will do the follwoing:
Dim diMyDir As New DirectoryInfo("C:\windows98\windowsdll\win32app\direction")
diMy... more >>
Enumerator vs ForNext vs ForEach
Posted by rawCoder at 4/13/2005 9:38:55 PM
Hi,
Which is better in terms of performance.
Iterating over Enumerator
ForNext loop (using indexer)
ForEach loop
Thanx
rawCoder
... more >>
Regex. Split or Split
Posted by lgbjr at 4/13/2005 9:25:10 PM
Hi All,
I'm trying to split a string on every character. The string happens to be a
representation of a hex number. So, my regex expression is ([A-F,0-9]).
Seems simple, but for some reason, I'm not getting the results I expect.
Dim SA as string()
Dim S as string
S="FBE"
SA=RegularExp... more >>
Dependency Error: The dependency <dll> in project <project> cannot be coppied to the run directory becuase it would conflict with dependency <dll>
Posted by Jay A. Moritz at 4/13/2005 8:52:02 PM
Error: The dependency '<my dll>' in project '<my project>' cannot be copied
to the run directory because it would conflict with dependency '<my dll>'.
I am getting a dependency error building my application that was using some
other namespaces that I had built and incorrectly referenced to ... more >>
Only 2 Days left to get REALbasic 5.5 for FREE!
Posted by Jim Hubbard at 4/13/2005 8:30:28 PM
Just so you don't miss the deadline!
Get it here......http://www.realbasic.com/vb6/index.php?id=GVVDPQFY .
Jim Hubbard
... more >>
Parsing strings to objects (techniques)
Posted by Cesar Ronchese at 4/13/2005 7:58:24 PM
Hi All.
I need to parse a command-line string and transform results in some objects.
For sample:
myapp.exe /param1="textwith""quotes" /param2=other text /param3=123
...will become:
objParam("param1").Value = "textwith""quotes"
objParam("param2").Value = "other text"
objParam("param3").... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Printing panel/pictureBox in VB.Net
Posted by EggHead at 4/13/2005 7:32:19 PM
Hi all,
I have a form that has a panel. Inside the panel is a bunch of objects -
picturebox, panel and so on. I want to be able to print what is in the panel
to a printer. I can not use the capture screen routine because some of the
objects are not visible. They are placed beyond the panel ... more >>
FileSystemWatcher - setup a sequence of calls (one file after another)?
Posted by Olaf Rabbachin at 4/13/2005 6:51:41 PM
Hi folks,
I have an application with a separate thread that copies files between
directories. In the GUI-thread, I have a FileSystemWatcher running that
monitors the target-directory the second thread copies the files into and
processes those files. However, some files will take longer than ot... more >>
Category does not exist?
Posted by yxq at 4/13/2005 6:50:26 PM
System.InvalidOperationException: Category does not exist.
at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine,
String category, String counter)
at System.Diagnostics.PerformanceCounter.Initialize()
at System.Diagnostics.PerformanceCounter.NextSample()
at Syste... more >>
Working between forms
Posted by Jeffrey Spoon at 4/13/2005 5:13:08 PM
Hello I have two forms which have components on them. On Screen1 I have
a component which I want to update from Screen2. However, if I simply
call the component from Screen2 it can't find it. If I create a new
instance of Screen1 in Screen2 and then call the component using a
reference... more >>
Richtextbox
Posted by Peter at 4/13/2005 4:37:14 PM
Hi.
I have RichTextBox. There is some text.
For example cursor is in the middle of that text.
And now I would like to add some new text on the position of cursor.
Somethink like when I press CTRL+V (paste).
I try use Richtextbox.Paste, but he always get text to end.
Thanks for answers.
... more >>
How to Publish a Project to Production Server
Posted by A P at 4/13/2005 4:29:58 PM
Hi!
I have installed VB.Net 2003 on my computer and develop a simple web
application. I want to publish the project that I made to our production
server. How can I publish a web application?
regards,
Me
... more >>
Can't open a VB Form anymore...
Posted by craig.kelly at 4/13/2005 4:01:17 PM
I've been trying all the Express versions of J#, C# and VB.NET and suddenly
I can't open a VB Form anymore. The message is "There is no editor
available for (formX.vb) Make sure the application for the file type (.vb)
is installed." I've uninstalled everything including the .NET framework 1... more >>
How do you call a child objects method from the parent
Posted by jw56578 NO[at]SPAM gmail.com at 4/13/2005 3:58:20 PM
Is it possible to call a method from a parent object, but have the
childs overriden method called instead of the base method?
I want several children objects to all call a certain method when they
are initialized, but they all have different implementations of that
method.
thanks
... more >>
Is there anyway to tell when code is executing at compile time?
Posted by Don at 4/13/2005 3:19:26 PM
Is there any way to check, in code, whether that code is being executed
because of a compile as opposed to being executed because someone is just
running the program?
- Don
... more >>
API calls in DotNet
Posted by Bob at 4/13/2005 2:35:30 PM
Declare Auto Function BitBlt Lib "GDI32.DLL" ...
Just wondering, I'm forced to use API calls once in a while and thought, it
would be pretty easy for MS to either 1. expand the Framwork to natively
include most of the features available in them or 2. provide simple wrappers
so that users don't... more >>
Panel-height greater Int16.MaxValue?
Posted by Olaf Rabbachin at 4/13/2005 2:31:42 PM
Hi folks,
I'm have a user-control that imitates a thumbnail-listview. Within, I have
a panel (pnlOuter) that represents the viewable area and another panel
(pnlInner) which represents the list as a whole with a scrollbar that'll
enable the user to change the viewable area.
Hence, pnlInner wil... more >>
update ui with delegate
Posted by norm at 4/13/2005 2:20:12 PM
HELP
I have component that need to update the UI.
The component raises an event on the main form which update the UI.
Every time I execute the event I get an error that state the controls must
be on the same thread
I think I need to use delegate to update the UI.
I have created a delegate... more >>
Stepping into a referenced assembly
Posted by Steve Long at 4/13/2005 2:14:47 PM
Hello,
can anybody tell me what the trick is to getting VB.NET 2003 to step into
the code of an assembly that I have referenced in my project?
For instance, I have these two assemblies, both written by me in VB.NET
2003, and both referenced in my project. I have some code that looks like
the fo... more >>
self executable
Posted by Frank Ashley at 4/13/2005 2:05:16 PM
Has anybody got any ideas on how to create a self executable in vb.net?
Thanks
Frank
... more >>
How to capture events fired from objects in collection
Posted by moondaddy at 4/13/2005 1:23:57 PM
I have a class (myClass) that used to reference a business class (myObj)
using With Events so when myObj raised the event TestEvent, myClass received
it like this
Private Sub myObj_TestEvent (ByVal someVal As String) Handles
myObj.TestEvent
End Sub
Now I created a bindable list class ... more >>
.Net DLL only accepts ByteArray(1 to 32)
Posted by Benjamin Lukner at 4/13/2005 12:47:59 PM
Hi!
I'm using a .Net DLL that's referenced in my project.
The strange thing is that the DLL vendor uses byte arrays of 32 bytes
length to read and write data that have a lower bound of 1!
The only way I've found to create such an array is
Dim aData As System.Array = _
System.Array.Creat... more >>
Data Relation question
Posted by Gary Paris at 4/13/2005 12:46:28 PM
I have two datasets. The first dataset is a selection of Contact
information with a field from a Codes table and a field from a Staff table.
When I run the Query, everything is OK. Dataset gets filled and I display
data in the Datagrid. Life is good.
I then want to fill another dataset w... more >>
Retrieving Child Rows
Posted by Glenn T. Kitchen at 4/13/2005 12:01:13 PM
Dear Group,
I'm having problems retrieving the child rows of a parent row. The parent
table is Users and the child table is Addresses. I used the Schema to
create a DataRelation between the Primary Key of the parent table and a Long
Integer field of the child table. I allowed default (whic... more >>
Convert .doc to .xml
Posted by Jody at 4/13/2005 11:51:12 AM
I have been tasked with making a Help Desk reference
software. What I'm thinking is converting all the
Word .doc's to well-formed XML that I can use XSLT on and
display in a WebControl, or can access directly from any
webbrowser if they wish to go to that extreme.
The major issue I can't g... more >>
Conversion from VB6 to VB.NET Architectural Question
Posted by Viet at 4/13/2005 11:50:28 AM
I have an architectural issue that I have been working on for quite awhile
now and I would like another person's point of view. This issue involves the
conversion of a VB6 app to VB.NET.
In this VB6 app, the original programmer used 5 timers to periodically scan
a document, process it, and dis... more >>
Datagrid - right click select and context menu
Posted by skOOb33 at 4/13/2005 11:12:36 AM
I have a context menu for a datagrid that shows up fine. I am wanting
to set it to where when a user right clicks anywhere on the grid, it
will select the row the mouse is over (if it's over one), and then
display the context menu. Any help is appreciated.
thanks
... more >>
animation in menubar like in IE
Posted by Brian Henry at 4/13/2005 11:11:26 AM
Does anyone know of a way to create a "busy" flag like IE and OE have in
their menu bar on the right side? I'd like to put something in one in my app
so the user can tell when it is busy processing or something like that..
thanks!
... more >>
currentDomain.UnhandledException
Posted by garbage400 NO[at]SPAM hotmail.com at 4/13/2005 10:58:20 AM
I have copied this directly from the MSDN example into a Console
application. MyHandler does not run. Running compiled Release brings
up the JIT. What am I missing?
Module Module1
Sub Main()
Dim currentDomain As AppDomain = AppDomain.CurrentDomain
AddHandler currentDoma... more >>
Listview size
Posted by J L at 4/13/2005 10:47:50 AM
When I fill a listview, I resize the columns to fit the data. I need
to know if the data will fit vertically or if there will be a vertical
scroll bar. I need to know this so I can allow for it on the overall
size of the listview.
My question therefore is, how can I tell if the items I have ad... more >>
Async Delegate question
Posted by Viet at 4/13/2005 10:40:08 AM
Can I use Async delegates to do infinite polling in vb.net?
... more >>
How to pass class as parameter?
Posted by Brett at 4/13/2005 10:30:43 AM
I have several classes that create arrays of data and have certain
properties. Call them A thru D classes, which means there are four. I can
call certain methods in each class and get back an array of data. All four
classes are the same except for the number of elements in their arrays and ... more >>
USB port
Posted by Gustavo Ciccone at 4/13/2005 9:15:50 AM
Is it possible work with USB port directly with VB.NET ?
... more >>
Saving the contents of a picturebox
Posted by Daniel at 4/13/2005 9:15:21 AM
Hi all,
Is it possible to output the contents of a panel as a graphic file?
--
Daniel
MCSE, MCP+I, MCP in Windows 2000/NT
--------------------------------------
remove the 2nd madrid from my mail address to contact me.
... more >>
How are you handling EUL agreement?
Posted by Brett at 4/13/2005 8:57:09 AM
Say I want my installation to popup a user agreement, after they select yes,
the install continues. Otherwise, it aborts. I don't think VS.NET offers
this. How else can it be done?
Also, does any one know of any good installers that don't cost a few hundred
dollars?
Thanks,
Brett
... more >>
Performance question
Posted by Shane Story at 4/13/2005 8:38:50 AM
My colleague was trying to do performance testing on function calls in
assembly verses calls to external assemblies (dll's). He said, he made a
function in VB.NET inside of a DLL project, and compiled it.
The function does nothing, and returns a boolean. He opened a separated
Windows Forms pr... more >>
|