tag:blogger.com,1999:blog-204377852009-02-21T09:44:08.290+01:00VB .NET blogXanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.comBlogger702125tag:blogger.com,1999:blog-20437785.post-1138611196300845662006-01-30T09:53:00.026+01:002008-12-30T22:06:12.878+01:00Q: For Each loopsFound the following interesting discussion in the Newsgroups: Q: For Each loopsby:Geoff Jones Hi
Suppose I have a For Each loop, for example,
For Each x As DataRow In drMyData
' Do stuff - calculation 1
' Do more stuff - calculation 2
' and even more stuff - calculation 3
Next
If after completing calculation 1, I discover that there is no point doing
calculations 2 and 3, how do I jump back toXanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138611159126159882006-01-30T09:52:00.001+01:002006-01-30T09:52:39.126+01:00How to find a list of SQL Servers?Found the following interesting discussion in the Newsgroups: Finding a list of SQL Serversby:Craig G without using SQLDMO
is there another way, i've used the SQLDMO way but have had a few issues
with it.
is there another way?
Cheers,
Craig
Reply:by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])
P/invoke, a VB6 sample that needs to be translated before using it can
be found here:
<URLXanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138611123641241132006-01-30T09:52:00.000+01:002006-01-30T09:52:03.643+01:00How to find whether an Image is Color or b/w?Found the following interesting discussion in the Newsgroups: How to find whether an Image is Color or b/wby:Chellapa For my ImageProcessing Application i need to find whether
an Image is Color or B/W through code for GrayScale
automation purpose, Iam using vb.net and photoshop for
developing the application.
Image Format is PNG
Can any one help in this regard.
Thanks,
Chellapandian.S
XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138611090679769042006-01-30T09:51:00.001+01:002006-01-30T09:51:30.680+01:00Find Missing DataFound the following interesting discussion in the Newsgroups: Find Missing Databy:Justin Emlay I'm hopping someone can help me out on a payroll project I need to
implement.
To start we are dealing with payroll periods. So we are dealing with an
exact 10 days (Monday - Friday, 2 weeks).
I have a dataset as follows (1 week to keep it short):
Employee 1 - Date 1
Employee 1 - Date 2
Employee 1 - XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138611062347606822006-01-30T09:51:00.000+01:002006-01-30T09:51:02.346+01:00Design TutorialsFound the following interesting discussion in the Newsgroups: Design Tutorialsby:AnonymousI need a couple free tutorials on application design,
I am trying to build a project but i really lack in the design category and its is
affecting my production.
thanks for the help
WStoryeII
Reply:by:Ken Tucker [MVP] Hi,
http://www.microsoft.com/resources/practices/default.mspx
Ken
Reply:by:XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138611028462945812006-01-30T09:50:00.000+01:002006-01-30T09:50:28.463+01:00Dateformat on databound textboxes?Found the following interesting discussion in the Newsgroups: Dateformat on databound textboxes?by:Graham Blandford Hi all,
Can anyone tell me how I go about setting a custom date format (or any other
format for that matter) to a textbox that has a databinding?
In VB6 I would do something like 'set text1.format = myformat', but that
isn;t a format property in VB.NET.
Any help would be XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610997058611902006-01-30T09:49:00.001+01:002006-01-30T09:49:57.060+01:00Moveable ToolbarsFound the following interesting discussion in the Newsgroups: Moveable Toolbarsby:VJ I am looking to implement moveable toolbars like in Word, or Visual
Studio... any pointers or articles would great..
Thanks
VJ
Reply:by:Cor Ligthert Hi VJ,
I made this sample for John Crouse, however the only thing in my opinion
what you have to change basicly are toolbars instead of labels.
(You can open a XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610961473531922006-01-30T09:49:00.000+01:002006-01-30T09:49:21.473+01:00Help with hiding LinkButton in DataListFound the following interesting discussion in the Newsgroups: Help with hiding LinkButton in DataListby:News Hi,
I need help with datalist and linkbutton.
I need a LinkButton to be visible in datalist only on the condition when
datafield "is_measure_customchecklist" in a db table set to true.
Here is the code (in parts):
<asp:DataList id="dtl1"
runat="server"
DataKeyField="program_id"
XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610939732780252006-01-30T09:48:00.001+01:002006-01-30T09:48:59.733+01:00Project converted from VB6 to VB.Net gets subclassed WndProc -- why?Found the following interesting discussion in the Newsgroups: Project converted from VB6 to VB.Net gets subclassed WndProc -- why?by:Rob Richardson Greetings!
I have a VB.Net 2003 project that was originally written in VB6, converted
to VB.Net 2002, and then converted to VB.Net 2003. I am trying to handle a
form's Resize event. I put a breakpoint in it and saw that that event got
fired four XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610907793955052006-01-30T09:48:00.000+01:002006-01-30T09:48:27.793+01:00.Net says I'm not Online, but I am!Found the following interesting discussion in the Newsgroups: .Net says I'm not Online, but I am!by:Selden McCabe While at a client's site today, I suggested looking at one of the .Net
newsgroups. When I pulled up the .Net start page, and clicked "Online
Resources" it reported that we were not connected to the Internet.
But we were!
Does anyone have any idea why this was happening, and what toXanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610854549245002006-01-30T09:47:00.000+01:002006-01-30T09:47:34.550+01:00Freeware/shareware Windows controlsFound the following interesting discussion in the Newsgroups: Freeware/shareware Windows controlsby:Richard L Rosenheim I'm experimenting with .Net programming and is wondering what free (or
low-cost) UI controls are available for non-commercial use.
As I'm just playing around with code and concepts at the moment, I'm not
really ready to go out and start purchasing commercial libraries at XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610808576983412006-01-30T09:46:00.001+01:002006-01-30T09:46:48.576+01:00Combobox in datagrid?Found the following interesting discussion in the Newsgroups: Combobox in datagrid?by:John Doe Now i know how to manually add a combobox to a datagrid,
but how would i handle the recordset below?
ID | FirstName | LastName | Job
--------------------------------
1 |Joe | Smith | janitor
1 |Joe | Smith | cashier
2 |Bob | Anderson | cook
I want to bind the above XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610777581653832006-01-30T09:46:00.000+01:002006-01-30T09:46:17.583+01:00To parenthesize or not... Bug in VB.Net?Found the following interesting discussion in the Newsgroups: To parenthesize or not... Bug in VB.Net?by:AnonymousCall me a purist or picky but...
I've found 2 instances where VB.Net considers parenthesis optional. Consider the following property, sub, and function in VB.Net:
Public Property TestProperty() As Integer
Get
Return 0
End Get
Set(ByVal Value As Integer)
XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610735046923622006-01-30T09:45:00.000+01:002006-01-30T09:45:35.046+01:00How to change the Color of a Toolbar?Found the following interesting discussion in the Newsgroups: Changing the Color of a Toolbarby:Charles A. Lackman Hello,
I am using the Toolbar from inside VS.NET and am looking for a way to change
it's background color. When I look it up on Microsoft's Web Site I see that
it is overridden ,but, I am very unsure how to accomplish this. Any
suggestions will be greatly appreciaed.
Thanks,
XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610678448367522006-01-30T09:44:00.000+01:002006-01-30T09:44:38.450+01:00How to pass Objects as type System.Object?Found the following interesting discussion in the Newsgroups: Passing Objects as type System.Objectby:Stephen Travis I'm trying to ReDim a child object after passing the parent object as System.Object and it throws a System.InvalidCastException:
Cast from type 'Object()' to type 'ChildType()' is not valid. If I pass the parent object as its type, the ReDim succeeds. How can I
ReDim a child objectXanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610228107339052006-01-30T09:37:00.000+01:002006-01-30T09:37:08.106+01:00How to create a Username/Login Page?Found the following interesting discussion in the Newsgroups: Creating a Username/Login Pageby:Erik T. Nomad Hey...I'd like to link a login page (e-mail address, password) to an access
database on the server whereby users can save items in a "wish list" and
retrieve them later -- even e-mail the wish list to others. This threatens
to be a pretty big project, but can anyone point me in the right XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138610158091648612006-01-30T09:35:00.000+01:002006-01-30T09:35:58.093+01:00Suggestions to increase the performance of searching my array?Found the following interesting discussion in the Newsgroups: Suggestions to increase the performance of searching my array?by:AnonymousI wonder if anyone has suggestions for reducing the amount of time it would take to search my array using the function that I have written. I want to find a position in the array of an item that matches on all three variables. Suggestions?
Public Shared XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138609998453632532006-01-30T09:33:00.000+01:002006-01-30T09:33:18.453+01:00Where did my Dataset Go?Found the following interesting discussion in the Newsgroups: Where did my Dataset Go?by:Wayne Wengert I have a VB App (VSNET 2003) in which, during form load, I create a dataset
(ds1) and then populate a datagrid by binding to the dataset. That works
fine. The form has a button which, when clicked, initiates an export
process. When the button click event opens, the dataset is "Nothing". The
XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138609951500811652006-01-30T09:32:00.000+01:002006-01-30T09:32:31.500+01:00Password Filter DLLFound the following interesting discussion in the Newsgroups: Password Filter DLLby:Andreas Hecker Hello,
i want to write a password filter dll for windows 2003 server. I found an
example in msdn
http://support.microsoft.com/default.aspx?scid=kb;en-us;151082 wich is
written in c++. I am not able to understand c++ in a way to port this onto
..net framework. Can anybody help me to find out how XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138609913928458522006-01-30T09:31:00.001+01:002006-01-30T09:31:53.926+01:00An application framework for VB.NETFound the following interesting discussion in the Newsgroups: An application framework for VB.NETby:alantolan@users.com (SionnachRoe)All,
I was wondering if there is anything akin to the MFC App/Doc/View
framework available for VB.NET, either as part of .NET, as a
commercial library or as opensource.
Background
==========
We are moving from VB6 to VB.NET and are planning to write a number of
XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138609864561414842006-01-30T09:31:00.000+01:002006-01-30T09:31:05.973+01:00'System.Net.WebException' - Strange ErrorFound the following interesting discussion in the Newsgroups: 'System.Net.WebException' - Strange Errorby:A User Very strange - this code is copy and paste from the net and works on 2 of
my 3 development machines - but of course not the machine I need to run it
on.
I've seen similar posts, but no solutions that work for me. Is it a problem
with my proxy settings on this 1 machine? I have allXanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138274568279051812006-01-26T12:22:00.001+01:002006-01-26T12:22:48.280+01:00Dataset Tablenames <- SQLHelperFound the following interesting discussion in the Newsgroups: Dataset Tablenames <- SQLHelperby:Lucas Tam I'm not sure if this is a problem with Microsoft's Application Data Blocks,
but I am using a query like this:
USE DATABASENAME;SELECT * FROM SOMETABLE
The tablename property of my datasets are not being set - this causes a
problem with CrystalReports.
Is there a way to auto-set the XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138274522513036492006-01-26T12:22:00.000+01:002006-01-26T12:22:02.513+01:00Add handlers to textboxes in a datagridFound the following interesting discussion in the Newsgroups: add handlers to textboxes in a datagridby:Josh Golden sorry for so many posts recently
i am loading a datagrid from a datatable. the shape of the datatable is not
known at design time. i want to dynamically add event handlers to the
datagrid textboxes. it would be really easy if i were using a
DataGridTableStyle at design time but XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138274486846849392006-01-26T12:21:00.001+01:002006-01-26T12:21:26.846+01:00Datagrid (windows forms)Found the following interesting discussion in the Newsgroups: Datagrid (windows forms)by:Anonymousis there like a BeforeColumnEdit() or BeforeRowEdit() event in the datagrid.
i want to disable a command button when a row in the grid is dirty. (i.e. a column is being currently edited) and enable it after the Changed() or Validated event fires
i tried the RowChanging(), ColumnChanging() events. XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0tag:blogger.com,1999:blog-20437785.post-1138274463815072952006-01-26T12:21:00.000+01:002006-01-26T12:21:03.816+01:00Inheritance problem with custom controlFound the following interesting discussion in the Newsgroups: Inheritance problem with custom controlby:Fred Flintstone This is driving me crazy. I've put together a perfect, easy example of
the problem. What I'm doing is creating a custom control, prepopulated
with 4 items when dropped on a form:
- Create a new Control Library project.
- Inherit System.Windows.Forms.Combobox
- In New(), add XanderZehttp://www.blogger.com/profile/11484871454554231807noreply@blogger.com0