Custom Sorting according to Array of priority

849 byte By hyperspectre at 2007-11-20 10:38:19
Hi All,Here is an analogy of my problemI have an array of type "WeatherRecord" which consists of Date as Date and WeatherCondition as String.What I want to do is sort by date, then by weather condition.Date is easy enough, but building it so that it sorts by date, then if result of the compare is 0,...

Should be a poll - VB Question

435 byte By dglienna at 2007-11-20 10:38:23
OK. Found this quite by accident. Had a Public var named StrBuff()Public strBuff() as String''Form Load()Sub SomeSub()dim tem as string * 33000''' Build tem > 16K characters' strbuff = tem ' < ---- tem holds a stringMsgbox len(strbuff)Try it! Guess the...

pay service?

127 byte By jagguy at 2007-11-20 10:38:26
is there a pay service for vb.net help?<br/>I am finding learning VB.net just too slow and google is not speeding this up.

Menu question

695 byte By Dark Potato at 2007-11-20 10:38:33
I saw this little program http://portableapps.com/ and I would like to be able to do something similar but I need some help. I would like to know how to display applications like this, with their names on the right hand side of them, including their icon which would be on their left in a nice, scrol...

Serious question! How to create addins for your own application?

874 byte By Trualg at 2007-11-20 10:38:41
Hi!Im a member of the site iPodWizard and im working on a visual theme editor that is to support adding iPod models by creating addins (all with the same class-structure and same classnames) and the problem is, that i dont want to have the main executable recompiled everytime, and all iPod users doe...

[RESOLVED] [2003] Reorder Listview rows

456 byte By HanneSThEGreaT at 2007-11-20 10:38:48
Hello guys. I'm not in the mood for this "update" which is now all of a sudden needed in one of my programs. I guess people will never be satisfied with everything.Anyways, How can I reorder the items in a listview, like they want "Move Up" "Move down".I've been dabbing around with this...

VS 2005 referncing files?

411 byte By High_D at 2007-11-20 10:38:51
My solution has three projects associated with it, a service and two forms. I've got a DB class that is used in all three.How do I setup the solution/projects so the forms just refernce that class? I did Add existing Item, but it just made a copy in that projects directory and I keep having t...

[2003] Retrieving Namespace? of shortcut

1670 byte By Nebulus at 2007-11-20 10:39:02
[1/6 issues remaining] Use shortcut's name instead of shortcut target nameWell, here's the deal: I'm setting an open file dialog box to default to the users desktop, and retrieve the file path of the shortcut. I'd also like to retrieve the name of the shortcut, not the name of th...

Manually load Microsoft.Office.Interop.Excel.dll

311 byte By caperover2002 at 2007-11-20 10:39:10
Hi, All,My .Net assemlly, which depends on Microsoft.Office.Interop.Excel.dll, is not working. I want to test if Excel can load the right version of this supporting dll. Is there any way to load Microsoft.Office.Interop.Excel.dll through VBA code just like LoadLibrary()?Thanks,Mingyang...

Project Preparation.

1621 byte By ashkumar at 2007-11-20 10:39:21
Hi,I've a Project (I thnink it is a big project for me), and I don't want to be fall in wrong way, so I decided to ask this question here.First I'm besceibing the project.(1) It is a Database Project and it is for a big trust which have 6 Divisions at same Building.(2) Project must ma...

How to sort month field

409 byte By mimivahid at 2007-11-20 10:39:25
Dear All..,Month field contain various month names like 'April,May June'. I have to sort these months in Descending order. I wrote a query. "select from <table> order by <trdatemonth> desc ". But it sorts the month in Alphebetical order (MAy,June.April) instead of (June,May,Ap...

[RESOLVED] Drag and Drop

332 byte By NotepadGuru at 2007-11-20 10:39:39
Hai friendshow do i detect the drop event of an image in external applications? i.e. the user drags the image from my vb application and drops any ware on the screen where on the Desktop or Task bar or in system tray.i just need to track the drop even and not requir the point where he drops.Thank Yo...

Trapping Windows Messages?

594 byte By Markus W. at 2007-11-20 10:39:42
I am writing an application for a USB digital camera. The SDK for the camera is a driver DLL. This DLL can be used in VB to control the camera.When a new image is available, the camera driver sends a Windows messages to the application. The message is defined in the VB interface module for the DLL:P...

Pls help Me..Urgent

789 byte By mimivahid at 2007-11-20 10:39:43
Dear All,I am a programmer in VB 6.O.. My project is on stuck due to lack of Logic. pls provide suitable solution for below mentioned problem..the module contain many variables like FHRA, MD, PD, IHRA, LHRA. HRAADJ, AHRA, ARRHRA..etc... all variables has specific values. these varibles are used in e...

Works in Dev enviorment but not in compile ??? AHHHH

521 byte By roughan at 2007-11-20 10:39:51
Hi i have a Dll returning an error message and the main code should track that error and msgbox the error it works perfectly in the code (dev enviorment) but when i compile it completly ignores the error here is some of my code If Not ObBkg.bkg_save("") Then err.Raise 200,...

Create Variable at runtime

131 byte By mimivahid at 2007-11-20 10:39:53
Hai All,<br/>Can i create Variable at runtime and store the values<br/>Its Urgent<br/>Regards<br/>Abdul Vahid.A

vb6 checking for ram hacks

447 byte By Gamer4 at 2007-11-20 10:40:00
I'm working on a vb6 program to check an .exe file to make sure it has not been edited.I did this by doing a crc32 check on it and if its ok it launches the .exe.If its not it will notify an admin and not launch.My question is how can I do this same check once the program has been launched to m...

Updating spreadsheet that has formulas in cells

3002 byte By WelshWarrior at 2007-11-20 10:40:04
HiI am trying to save to a spreadsheet that has formulas in 2 of the columns. they are basic formulas (just adding and subtracting some other cells). The Spreadsheet is displayed in a DataGridView and what data is shown depends on the user's selection.Problem is, before I added the formulas, th...

VB Code to calculate the BDS statistic

371 byte By Lucas_London at 2007-11-20 10:40:06
Hi, does anyone have or know where I can get hold of vb code/algorithm to calculate the Brock, Dechert Scheinkman (BDS) Test to measure the independence of a series? Matlab code ( http://fmwww.bc.edu/repec/bocode/b/bdssig.m) and C++ code is available on the net but I use neither of these platforms (...

How to resize the same?

355 byte By mark103 at 2007-11-20 10:40:12
Hi guys,I would like you to help me out today because I couldn't be able to find a good control to resize my form and the image. It have to be the same size of the image, not like making it go better. The picture got to be the same size like this:Hope it possible to resize the image on the same...

[RESOLVED] Form DropShadow Effect...

1792 byte By tim8w at 2007-11-20 10:40:16
I found the code at PlanetSourceCode: Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams Get Const CS_DROPSHADOW = &H20000 Dim cp As CreateParams = MyBase.CreateParams cp.ClassStyle = cp.ClassStyle Or CS_DROPSHADOW...

user type not defined help please

2946 byte By monsieur_jj at 2007-11-20 10:40:33
Hi all,This is the whole of my code, courtesy of Shawn Hall, my issue is FileSystemObject and TextStream are not defined. Whats wrong with my code? are there any other reference should I check?Thanks,Jj'// ========================================================Option Explicit'[Constants]C...

Calculation Problem

425 byte By mimivahid at 2007-11-20 10:40:47
Dear All,I have to do Calculation. For Examplesmb = "+"A = 12b = 10c = A & smb & bmsgBox c.Here i want to calculate A+B. the value of smb may be change next time to * or / or - like that..So i stored this in a varibale. here I have to perform the addition based on '+' symbol stored in t...

[RESOLVED] How to change the mouse pointer

250 byte By NotepadGuru at 2007-11-20 10:40:49
Hai friend.<br/>i am using OLEDrag and Drop. i just want to change the mouse pointer to my custom pointer when the OLEStartDrag() event fires. then i just want to restore the original when the event OLECompleteDrag() fires.<br/>Please help.

[RESOLVED] Lock the main form when an about form is shown

991 byte By GarethD.Norris at 2007-11-20 10:40:54
Hi all,I have two forms, CFT_Main (The main form that does everything) and CFT_About (A form that just shows information about the application, version etc). I am trying to lock the CFT_Main form when the CFT_About form is shown so that they act as one application. The CFT_About form needs to sit on...

BindingNavigator change notification.

560 byte By satanorz at 2007-11-20 10:40:58
Hi all another time!, i'm using vb net 2005 and i have this scenario.DatasetBindingSourceBindingNavigatorIt's all linked, the problem is that i'm making a custom BindingNavigator that must have control over if saving is needed or not. To do this i need to know if the user has made cha...

decompile to get code?

391 byte By JACKWEBS at 2007-11-20 10:41:04
I have an application that seems to have some hardcoded references to a SQL server. Therefore, we are unable to move the application and SQL server to upgraded Windows versions.So,1/ Is there a way to decompile all the code and read through it?2/ Is there another way to change the IP addresses it is...

Sending Newsletter Automatically

568 byte By g1m0v0n5 at 2007-11-20 10:41:19
Hai,I had created one Program to send Mail with Attachments using Vb.net and Ms Access.I had used the database to send the mails to mailids which are stored in the database in a single click.It is now working properly.Now the another option I have to add is sending Newletter to that mail ids. The Ne...

Converting vb6 to vb.net - openfiledialog question

3234 byte By LisaM at 2007-11-20 10:41:23
Ok so this is day 2 my first programming job. What I have done is to convert a vb6 program to vb.net... no problem. Today I was asked to "add a db pointer" to one of the forms to make sure that the db I am working with is not the live one the company used...merely a copy on my hard drive. That was e...

How to call java class in VB program

646 byte By smita_meena at 2007-11-20 10:41:26
HiI am new to java and I have some knowledge of VB. I am working on a code which is written in VB. For doing a task I borrowed a code in java from another project. They are jar files and .java files. SO it is possible to resuse these java files in the VB code.I was trying to write a main program in...

Serial Port Monitor/MSCOMM Parsing?

569 byte By bheller at 2007-11-20 10:41:28
I am new to programming.I am using my vb application as a serial port monitor using the MSCOMM port. When reading from my device I am getting a line like:BATTERY(s)12312I am not sure why i am receiving "" rather than just whitespaces....

Suppress details if one of two conditions is met

489 byte By Pete_uk at 2007-11-20 10:41:31
HiI'm using Crystal Reports 8.5 and would like to suppress the details section using the following formula[CnPrProp_1.CnPrProp_1_Date_Asked} <= DateTime (2007,07,31,00,00,00) OR{CnPrProp_1.CnPrProp_1_Date_Funded} <= DateTime (2007,07,31,00,00,00)Currently only records that meet the first...

Decimal Data Type in Visual Basic - Overflow error

575 byte By tharas at 2007-11-20 10:41:46
Hai all,I have the following VB code which produces the error Runtime Error '6'Overflow while executingPrivate Sub Command1_Click() 'Variables supposed to store decimal values Dim x As Variant Dim y As Variant 'Assigning decimal values to variables x = CDec(2147...

ASP.net/CR11 crystalreportviewer not ignoring warning msgs

401 byte By RGirish at 2007-11-20 10:41:47
Dear All,We recently migrated our VB6/CR10 application to ASP .net/CR11. Crystal Report in design mode ignore Sybase sql warning messages abd show the report but crystal report viewer is not doing that. Does anybody know the solution so that crystalreportviewer also ignores the warning messages? W...

getting handle of child windows

347 byte By Klaudioz at 2007-11-20 10:41:59
Hi. this is my first post and my english isn't very good. sorrymy problem is: i get the handle of particular windows getting your name. but this window have a chat which i need get your handle for my programthis chat is a Internet Explorer_Server. i know this thanks WinIDhow can i get it ??. th...

load xml into crystal reports

232 byte By Imback at 2007-11-20 10:42:02
Hi,<br/>I am new to crystal reports, I just download the software, and I wanted to know how do I load an xml file to a new "standard report".<br/>What are the steps to configure CR XML ODBC drive in CR8<br/>Thank you.

Sockets with Winsock control DLL Problem [URGENT]

767 byte By Tomdarkness at 2007-11-20 10:42:04
Hello,I am not a VB.Net expert.I want a simple Winsock program to send and receive data, so I decided to use the DLL located: http://www.codeproject.com/vb/net/winsockdotnet.aspIt works great but as soon as I am finished connecting and my client disconnects, no-one else (Not even the original client...

Weird DataGridView saving problem!

4910 byte By WelshWarrior at 2007-11-20 10:42:15
I have a program that displays rows (Schhol Class Groups) from a spreadsheet based on which user (teacher) is logging into the program. The user can then add/remove student's penalty points from the fields using 2 buttons. The user can then update the rows obtained from the spreadsheet using an...

Regarding Word Application in VB 6.0

642 byte By kamit at 2007-11-20 10:42:37
Hi, I'm using VB 6.0 application in which one of my module deals with printing of reports which are in RTF formats. I'm able to populate all tha data with proper formats. The RTF templates in which the data populates are in WORD97. So when i only open that template file and save it in...

Select doesnt work. Mysql

1326 byte By fonx at 2007-11-20 10:43:08
Hello I'm doing an app in VB.Net 2005 using the .net connector. For the moment it connects but I can't execute a SELECT, the dataset returns empty, count = 0. This is the code I use:Private Sub BBaseDatos_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BBaseDatos....

Add a custom control to a DataGridView

5712 byte By JackStephen at 2007-11-20 10:43:09
Hello everyone.I've made a new control, it's a ComboBox with CheckBoxes that i named CheckedComboBox, but the problem is that I need this control on a DataGridView.So I've tried to make a new DataGridViewColumn but the problem is that I cant access to the proprieties of my CheckedComb...

Detecting a crash

346 byte By 1druid1 at 2007-11-20 10:43:21
Hi AllI have a program that controls a com port collection system, unfortuantly this Com program is a little buggy and crashes every so often.. Is there anyway for me to create a small App in VB.net that monitors this program and notifies me by mail when it has crashed? Any help is appreciatedCheers...

PC single bit output swith?

768 byte By ahwang at 2007-11-20 10:43:23
I am an electrical engineer and am usually working with microprocessors with GPIO that can output single bits to be used as a simple on/off switch. Now I need to do that with a PC in VB6 and was wondering if there was an established method to do this?The computer I need to work on only has USB conn...

[RESOLVED] How to change the height of a form while the app is running

893 byte By GarethD.Norris at 2007-11-20 10:43:26
Hi Guys,I am trying to change the height of my form during the Form_Load() sub so that only certain controls are available when the form first loads. The form would then resize when a optionbox was checked to provide further options (I know i can hide each of the the controls but there are a lot so...

Excel automation problem.

1082 byte By Alsvha at 2007-11-20 10:43:30
Greetings all.I've made a service which creates an Excel workbook automatically using the Excel COM object.I have however got a problem that when I try to enter a formula containing the sheet names to sum across all sheets that the service crashes with a "Exception from HRESULT: 0x800A03EC" err...

CR11 and ASP.NET (VS2003)

587 byte By RGirish at 2007-11-20 10:43:44
Hi there,While running the report on the web we expect full error message to be displayed but instead whenever report fails CrystalReportViewer always say Failed to retrieve data from the database. Details: [Database Vendor Code: 17001 ] Failed to retrieve data from the databaseWhen I run this repor...

how to convert string to byte

510 byte By jayhunters14 at 2007-11-20 10:43:51
hi everyone!i communicate with a data logger that sends 34 bytes of data through the serial port. i receive it as a string from mscomm.input. i need to slice up the string per byte and store each byte to a variable array of bytes.can anyone help me regarding this?thanks.dim inbuff as stringSelect C...

winsock wont close

670 byte By venom999 at 2007-11-20 10:43:58
my program is communicating with other computers, running the same program, to transfer data back and forth. i have a problem tho where i can only use the feature one time, after which any subsequent uses generates an error "the address is already in use".i close the winsock connection after each se...

Calculate the computation time

389 byte By imname at 2007-11-20 10:44:05
I would like to calculate the computation time for my program.But it seems not function.What's wrong with my code?Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Enabled = True *****my program Debug....

How to View All frames in a form

205 byte By mimivahid at 2007-11-20 10:44:20
Dear All,<br/>A single VB form contain Many grids. How can i view all frames one by one with out resizing other frames. Have any Key combination is thr..?<br/>Pls reply<br/>Regadrs<br/>Vahid