-
- WildCard Search problem
by kangalert
- 3 Replies
- Last post
by BrightAngel
- I have a textbox and the value will be use as wildcard search in SQL query.
For example:
The field name in database SerialNo datatype is varchar
when i do searching i will always convert the SerialNo to numeric.
example
SerialNo = 000650344340
Select * from table where Convert(numeric,SerialNo) = '" & textBox &"'
inside my program i key in %005655%
How can
-
- Problem with Singleton Code
by Chuck Cobb
- 11 Replies
- Last post
by Dick Donny
- I have a class that is invoked in multiple ways, but no matter how it is invoked, I only want one instance to exist at any one time. The class looks like this:
[code langauage="VB"]
Imports System.Threading
Public Class SingletonClass
Private Shared _mu As New Mutex
Private Shared _instance As SingletonClass
Public Share
-
- SelectedIndexChanged
by xswzaq
- 11 Replies
- Last post
by Angel_LL
- I really really need help. I am working on the project that have 3 list box. I want to perform search so that users easily access data they want. In my listbox1, users will choose his/her choice, then the listbox2 (blank before user enter choice in listbox1) will automaticly pop up a list. For example, if I selected QA in listbox1, only catagories (item in QA) should show in listbox 2 (not all), a
-
- Complex Processing In the Webbrowser control
by ReneeC
- 9 Replies
- Last post
by ReneeC
-
I'm working on system that has a complex browser based in the WebBrowser control and I've found somepages that it cannot process in ways that I do not understand.
www.vanishingpointgame.com is a page that it cannot process and that why I am using that page to test on. I have taken the most simple test case in a form. It has a designer created groupbox with a dynamically created w
-
- VB .net Framwork
by chewy51
- 1 Replies
- Last post
by Andreas Johansson
- I have just finished writing an application in VB 2008. It is a small application but cosumes about 11mb on startup. After testing on a few machines I quickly noticed the framework version is going to be a problem. I can only get the application to work with version 2.0 of the framwork. Sub versions of 2.0, 3.0 and 1.1 all do not work. Am I doing something wrong shouldnt the framework be forwar
-
- Call GET_APPCOMMAND_LPARAM Macro?
by eclere
- 2 Replies
- Last post
by eclere
- Hello,
i've found this article in the MSDN:
http://msdn2.microsoft.com/en-us/library/ms646275.aspx
But i dont find any way to call the GET_APPCOMMAND_LPARAM macro.
Can anybody tell me how does this works
Best Regards
Thorsten
-
- Getting Data From Dynamic Controls
by ChristianBG
- 7 Replies
- Last post
by Silversoth
- How can i go about getting data that is stored in dynamically created control such as radio button or text box
Just to give some background..
I read records from a database and decide what controls to show radio, check, or text box. I create them accordingly. Now when the user presses next or finish how do i go about getting the values or text stored in those controls
-
- Create calculated column programmatically
by Manolis
- 1 Replies
- Last post
by Bruno Yu - MSFT
- Hi and a happy new year,
I encounter a serious problem with creating a named calculated colunm programmatically to the table of a DSV of an analysis database. I would like to create this named calculated column by means of VB but any help in C# is acceptable.
I can created this column in Microsoft Visual studio design but I need to be created programmatically now.
Thanks in advance
Bes
-
- Image On Mouseover (Repost because nobody replied to the origional)
by Chris &quot&am
- 10 Replies
- Last post
by GRK
- How do I get an imgae to display & follow the mouse by having my mouse over another image
-
- Stuctured Storage in a Email file ?
by suis
- 4 Replies
- Last post
by Riquel Dong ¨C MSFT
- Hi Everybody, I have a big dought about the email inbox, for example if i open up a perticular email from my out look, i can see withing the same email some one can write some thing from the email body area,and the same time he can attached some different file type eg: can attache .zip files,.doc file,.xls file ,.jpeg file etc... now my biggest question is how what is the stucutured storage file s
-
- Referencing Text on another form
by compucv621
- 14 Replies
- Last post
by compucv621
- How can I make a reference to a textbox on one form to another so that it's text will show up in a textbox on my other form. Example: on Form1 I have textbox1 with information typed in, and on form two, i have textbox2, where i need that information to appear. I just need the reference from that form so I can use it on my other form.
Thanks
-
- how to execute comands in runtime saved from outside?
by Brunosdd
- 4 Replies
- Last post
by Brunosdd
- hi, i want add functions to my app in runtime and now i want to know how can i execute functions like this: anyform.show anyform.caption = value that i want anymenu_Click the ideia is creat a menu in runtime and load functions that is listed in a db that i have created in runtime to, them the program will execute that functions there is anyway to do that thanks for your help Bruno
-
- Pinvoke trouble
by Coach24
- 1 Replies
- Last post
by jo0ls
- I think this is the correct forum for this - if not please advise. Anyway...
This VB6 declaration works:
Public Declare Function CLX_OpenReader Lib "WinPlex.dll" (ByVal portNum As Long, ByVal ReaderType As Long, ByVal Baud As Long) As Long
In attempting to convert it to vb.net (2005), I am getting a pinvokestackimabalance exception with this declaration:
Public
-
- ComboBox within GroupBox
by geoff_1707
- 3 Replies
- Last post
by DigBoy2000
- Outline
I have a form with many GroupBoxes on it
Each GroupBox contains a ComboBox
There are 2 ComboBoxes on the form not within any GroupBox
When I run the following the 2 ComboBoxes NOT in a GroupBox update but none of the ComboBoxes within GroupBoxes updates
What am I missing
For Each ctl As Control In Me .Controls
If TypeOf (ctl) Is Windows.
-
- Making a window appear at the mouse
by Asday
- 6 Replies
- Last post
by Asday
- But I want the bottom-right hand corner to appear at the mouse popint. How would I do this
-
- Threading
by JMKL1234
- 2 Replies
- Last post
by JMKL1234
- I have a vb.net windows application which opens and reads files for records to store in a database. It has a system.threading.timer running that does the following every 5 seconds:
Goes to a sql server database and loads the next file record that has a status indicating it needs processing. It updates the status of the record to indicate it is ready to be processed and then it queues a thread f
-
- DatePicker Blues.. Wont set BS field automatically
by SiN!
- 2 Replies
- Last post
by Kiavash
- Hi,
I'm using a DatePicker bound to my binding source date field.
It seems to work fine. Loads data, saves data... Except in one situation:
When I AddNew, I want the field to default to today. I do this by the line
Me.dtpMyDate.Text = Today
Also tried
Me.dtpMyDate.Value = Today
This changes the value on screen, but my binding source value remains Null.
The Null
-
- Drawing Performance
by Steph G
- 1 Replies
- Last post
by DMan1
- I have a tabbed form with several buttons, boxes, etc. When I switch between tabs, the redraw is almost instantaneous. However, If I set a background image to my form (one for each tab) switching between tabs causes the redraw to slow down considerably. You can actually see the drawing order for each button, checkbox etc. It is painfully slow.
I am currently using a 780x704 bitmap, and the redr
-
- Error Login failed for user ''. The user is not associated with a trusted SQL Server connection.
by ACCOUNTINGONLINE.US
- 4 Replies
- Last post
by ACCOUNTINGONLINE.US
- I used to connect fine until I upgraded from visual basic studio standard to vs professional
how can I be able to connect back to my database; I checked the connection string and the server explorer, they connect fine when i click to test ; but wen I try to run the program i get the above error
Code:
Public Class ProductDB
Public Shared Function GetProducts() As
-
- Help with visual basic trivia game
by Maimed
- 3 Replies
- Last post
by Spidermans_DarkSide - MSP, VSI
- hello, I am doing an educational trivia game for a school project and it is due in 3 weeks. Now the poblem is it will just not work. The coding and logic all looks right but when the program starts i get no errors but the first question that should be displayed does not show up and things like the close command button i have placed in do not show up. It is really getting to me as i have looked thr
-
- VB Get value from another form
by Bailworth
- 1 Replies
- Last post
by Bailworth
- I am new to VB and am struggling a bit. I am using VB 2005 Express and have created a backgroundWorker to copy some large files and it is working fine, however, I need to pass a value in to the BackgroundWorker or get it to read a value in Form1 that I have open.
My Form (AcademyLauncherSyncroTool) has a combo box, the value chosen in the combo box forms part of a drive path that I am using in
-
- Storing and retrieving pictures in SQL Server 2005 using VB Program
by RRichards
- 4 Replies
- Last post
by cybertaz69
- I am trying to store jpeg images in my server that will be used in a windows based program now and a web program later. I have found a few examples, but each seems to have been done using VB.net and SQL Server 2000. I have gotten one to run without errors, but it does not produce any results. This is Article 308042 from March 29, 2007, Revision 4.2.
I have used that code to generate the followi
-
- textbox border color
by AuliyaIkhsan
- 6 Replies
- Last post
by rkimble
- how to change the textbox border color for example i have textbox1 and textbox2 i want textbox1 border color = black and textbox2 border color = blue how to do that maybe without draw a rectangle
-
- Overriden property gets value reset on runtime
by nogChoco
- 4 Replies
- Last post
by nogChoco
- I'm overriding the .BackgroundImage property in a class that inherits from Label . Problem : whatever I set as BackgroundImage during designtime, gets reset to Nothing on runtime. How can I make it keep that propertyvalue into runtime Do I need to override the .CreateParams, or is it done via a tag (like the 'ComponentModel.Browsable' tag in the example below), or some other way I'm assuming it'
-
- Need help in generics
by senthilkr
- 4 Replies
- Last post
by senthilkr
- how to use generic property..i get error in this code
Public Class Col( Of T)
Private t As T //i get error in this line as"'t' has the same name as a type parameter."
Public Property Val() As T
Get
Return t
End Get
Set ( ByVal value As T)
t = value
End Set
End Property
End Class