all groups > vb.net > may 2005 > threads for monday may 23
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 31
'New' not behaving as exprected. Advice needed urgently.
Posted by Hylton at 5/23/2005 10:34:01 PM
Hi
Long Post - Please read to end to understand my question.
I am writing a telnet server in VB.net
(code samples lower down)
I connect two hyperterm sessions to the code. (2 telnet sessions.)
The state object created when the socket connects as such
Public Shared Sub AcceptCallb... more >>
Permission Sets, Attributes
Posted by Mythran at 5/23/2005 4:24:32 PM
I have 3 projects in a solution; Project1, Project2, and Project3. All 3
projects are given a strong-name using the same snk file.
What I need is to have Project3 not be callable from any assembly exception
Project2. I can use StrongNameIdentityPermissionAttribute to keep
assemblies that ... more >>
dumb question?
Posted by Paul at 5/23/2005 4:24:01 PM
SystemInformation contains forms-relevant information, but I also see other,
totally unrelated stuff like UserDomainName and UserName. Isn't it rather
poor design to require projects to include a reference to Windows.Forms.dll
just to get this information? Perhaps there is another area I can get ... more >>
VB-101: Passing Arrays ByVal vs ByRef
Posted by John Pass at 5/23/2005 4:02:03 PM
Hi,
In the attached example, I do understand that the references are not changed
if an array is passed by Val. What I do not understand is the result of line
99 (If one can find this by line number) which is the last line of the
following sub routine:
' procedure modifies elements of arra... more >>
String Array and Listbox...
Posted by Linda Jose at 5/23/2005 3:44:36 PM
I have a string array. How to load the data from string array to the list
box?
I am using VB.Net and .NetFramework 1.1.
Thanks,
Jose
... more >>
datgrid help
Posted by Richard Fagen at 5/23/2005 12:59:12 PM
Hi,
Is there a simple way to read the current value in a datagrid's cell?
I know how to use
Grid.CurrentCell.RowNumber
Grid.CurrentCell.ColumnNumber
but these give me the co-ordinates of the cell. I'd like to know about
the contents of the cell, especially the current values. (type, wi... more >>
Making Datagrid Display Table data.
Posted by Michael at 5/23/2005 12:50:19 PM
Hi Everyone,
I've been working on a convertion project and have several Datagrids that
once filled with data, no data is displayed until I click on the + sign in
the grid, then the table name. How can I make the datagrid default to display
the data and not be un-expaned. Thanks.
Michael
... more >>
Writing to text file
Posted by Yunus's Group at 5/23/2005 12:36:14 PM
Hello,
I have a need to write to a TEXT file which has the columns of data
separated by a tab. I want to add another column as the last column in
the file and add values to all the lines of data in the text file for
that column.
For example: Here is the sample data
EMP_ID EMP_NAME
1 ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ado.net data access error help
Posted by Michael at 5/23/2005 12:32:08 PM
Hi Everyone,
Please help me on this one. I have the following function:
Public Sub SearchFor(ByRef mType As Module1.SearchForType, ByRef mValue As
String)
On Error GoTo Err_Handler
Dim Proc As String
Dim conStr as string = "Integrated Security=SSPI;Persist Security
Info=False;Initial Cat... more >>
VB .Net test
Posted by AJM at 5/23/2005 12:20:28 PM
Can someone give me (direct me to) a small set of questions a non technical
manager can ask a prospective employee to ensure they are an expert in VB
..Net as they say they are?
Thanks
Tony
PS I would need the answers also! :)
... more >>
Assembly Versions
Posted by Joe Griffith at 5/23/2005 9:55:41 AM
In VS 2003 you can remove the version number from AssemblyInfo.vb file,
include it in a new SolutionInfo.vb file, and then link the
SolutionInfo.vb file into each assembly. This lets you syncronize the
version number of all assemblies in a solution.
I can't seem to find a way to do this with ... more >>
Check for New Records?
Posted by B-Dog at 5/23/2005 9:55:19 AM
What is the best way to check for new records in the database. I have a
form in a multi-user environment connected to an access database but I need
to update the information onscreen as it is inserted or at a regular
interval. Should I just put a timer and check every so often or is there a
way... more >>
Fuzzy math!
Posted by schiefaw NO[at]SPAM computer.org at 5/23/2005 8:12:43 AM
Hi,
I am having a slight problem with some code. I perform some additions
and subtractions on some 2 digit decimals, multiply by -1.0 and wind up
with a number with 12 digits of precision.
? (83538.18 + 0.0 + 0.0 - 40000.0 - 0.0) * -1.0
-43538.179999999993
I have replaced all the varia... more >>
streamwriter
Posted by stringy at 5/23/2005 7:09:12 AM
Why could it be that i am able to use StreamWriter from a
windows application but not from a web application?
I am getting an unauthorizedaccessexception and the
exception message is "Access to the path... is denied".
the code i'm using is very straightforward:
using System.IO;
....... more >>
Windows Service in VB
Posted by SimpTheChimp at 5/23/2005 6:55:10 AM
I am going to write (my first) Windows Service. What I want is this service
to run automatically when the computer/server is booted.... But also, to
display an icon in the system tray whenever any user logs onto the computer
(to display status, allow preference setting for the service, etc).
... more >>
How do you select a specific printer from the PrintPreviewDialog?
Posted by Darrell Wesley at 5/23/2005 6:46:06 AM
Is there anyway to hook the PrintDialog to the printer icon on the
PrintPreviewDialog?
I know that you can print a document using the PrintDialog but it does not
allow previewing and the PrintPreview dialog does not allow you to select a
printer - is there a good and simple way to get aroun... more >>
Help using Addressof operator
Posted by owais at 5/23/2005 6:39:11 AM
I have one vb6 application in which it uses one variable
Private m_wndprcNext
and uses in
SetWindowLong hWndCur, GWL_WNDPROC, m_wndprcNex
one other calling of method is in same clas
Sub SubClass(hwnd&
m_wndprcNext = SetWindowLong(hwnd, GWL_WNDPROC, AddressOf CtlProc
End Su
when i c... more >>
Forcing a datagrid row to commit
Posted by pmcguire at 5/23/2005 4:59:19 AM
How do I force the Commit event to fire on a datagrid?
--
Pat... more >>
How to trigger the keydown event in datagrid control ?
Posted by John Huang at 5/23/2005 12:37:01 AM
I would like to use datagrid's keydown event to capture the "Ctrl+D" when
users press this key. But it did not work. What did I miss? (I have already
set the form keypreview to true)
Private Sub grdInCategory_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Ha... more >>
Maximized window cannot be minimized
Posted by Kai Zhang at 5/23/2005 12:00:00 AM
In my application, I used
SetForegroundWindow hwnd
to bring the background window to front of desktop. It works fine in most of
the case. However, if the targeted background window is minimized, after
executing SetForegroundWindow hwnd to maximize this window, this window
cannot be minim... more >>
Code Obsfuscation
Posted by Alex Glass at 5/23/2005 12:00:00 AM
I'm concerned a commercial application I've completed could be stolen by
deobsfuscation. However it's not clear to me what information is gained
when my .net executable is deobsfuscated (decompiled?). Any insight on the
subject would be greatly appreciated.
-Alex
... more >>
Dependencies when building a setup project
Posted by Jack Russell at 5/23/2005 12:00:00 AM
When I started my current project I used some .com controls. I have now
removed all these (or I thought that I had) and replaced them with their
..net equivalents.
However when I build a setup project it still detects the old .com dlls
and adds them in. Where are they coming from??
Thank... more >>
Changing DataGrid Column headings
Posted by Mac via DotNetMonster.com at 5/23/2005 12:00:00 AM
I am attempting to change the header text on all the columns in my datagrid
once it was been populated from a dataset. I have tried to implement some
code from the following MSDN document but what I get is all my columns
having the same values and header text as the last column I added to
DataGr... more >>
VB Comparison validator
Posted by superkhb at 5/23/2005 12:00:00 AM
In Visual Basic can the Comparison validator be set to compare the control
to nore than 1 value and what is the syntax. Eg. I want only "Tom" "Dick"
or "Harry" entered in a textbox. TIA... more >>
fill dropdown list thru dataset
Posted by K R Lal at 5/23/2005 12:00:00 AM
Hi,
Any idea how to fill a dropdownlist thru dataset
I done like this
ddLst1.DataSource = myDataSet
ddLst1.DataMember = myDataSet.Tables(0).Columns(1).Caption
ddLst1.DataValueField = myDataSet.Tables(0).Columns(0).Caption
but it is not working ; my dropdown list showing blanck
pleas... more >>
Problem with loop in VB.NET
Posted by David at 5/23/2005 12:00:00 AM
I am wanting to step through a series of commands to send via the serial
port
to a target device. The program sets a 100mS ReplyTimer. The timer routine
sets the ProcessedRX upon timeout. If data arrives, the timer is reset for
another
50mS. This continues until there are no more characters w... more >>
|