Topics
-
- 1 reply
- 964 views
Hello, I am looking to populate a form with buttons based on the results from a db query.. So lets say, the db query returns: Red, Green, Blue, Purple I would want vb to create 4 buttons, space them 20 pixels appart, and make the name of the button to correspond to the db query. So the result would be : (Red) (Green)(Blue) (Purple) (the form only has room for 3 button wide). thanks for any pointers! Lee
Last reply by trend, -
- 2 replies
- 6k views
I am trying to get the google API to give me more than 10 results back from a search. I keep getting this error: An unhandled exception of type 'System.IndexOutOfRangeException' occurred in VB Google Web APIs.exe Additional information: Index was outside the bounds of the array. and it highlights: TextBox1.Text = TextBox1.Text & vbNewLine & objResults.resultElements(shtCount).URL Here is my code: 'Option Strict On Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeCompon…
Last reply by trend, -
Hi, I am working on mailer utility in an asp.net project. I used cdo's to do the same. Client wants me to send the mail through the exchange server. That is the mail being send is using the smtp server. I just want to know how do i send it to the exchange server instead of smtp server. Also is there a way to build a mass mailer. I have seen aspNET mail tool. Since the client is not agreeing upon the third party tool i want to build it on my own Thanks in advance Yashasvi
Last reply by yraykar, -
-
- Administrators
- 3 replies
- 968 views
All I'd like to do is create a hash of a password String to store/lookup in my users table of my database, but everything I'm reading so far makes it look a lot more complicated than it should be. Is there a simple (6 or less lines of code max) way to hash a String or is ASP.NET really that cumbersome that you need like 10+ lines of code for such a simple task?
Last reply by fizzled, -
-
- 1 reply
- 699 views
Hi, I've created a dataform in vs.net connecting to an access db. Being new to vb.net I have got stuck and need help! The first dataform I created worked fine, however, I re-created it (a new project) and it won't work - I keep getting "syntax error in insert to statement". I only have one table and all of the fields are text. Every time I update with new records or changes it throws the error. I have recreated the project seveal times with new databases and I keep getting the same error. Can anyone help please? Also, I would like two of the fields to be comboboxes, however, I can't work out how to change this during the config. Ideas? Thanks for a…
Last reply by SonicBoomAu, -
-
- *Gurus*
- 1 reply
- 1k views
If I developed a chinese application, I should use Unicode as database datatype right? What if I save my chinese characters into normal fields (varchar for example). What problem will I face? Second, How can I save my chinese characters into database? can I mix it in SQL statement? or the only way is use DataSet to insert field by field? TQ
Last reply by Derek Stone, -
-
- 0 replies
- 1.1k views
hello, I'm developing in app. that send mails the any users and I'm working whit the CDO object, the send it's OK, but my problem is that I want control the number the mails sending, mails losing, mails processing, etc please somebody help me.. PD: sorry for my English level, I'am Peruvian .. :rolleyes:
Last reply by devfree, -
- 0 replies
- 5.7k views
I have a MDI application with one window as a web browser and the other as a text editor. When I copy text over , it stores the URL. Is there a way that when I click on the URL later, it will take me to the webpage, but with the text that was highlighted previously that was copied, remaining highlighted. So if a webpage contains the text "hello world" and i copied it over and i go back to it, the hello world should still be highlighted? If possible using different colours for different highlighted text but thats an optional extra I found the following bits of code of google groups but I coulndt understand how to use them: mshtml.IHTMLDocument2 HTMLDocument; …
Last reply by srd1984, -
-
- Leaders
- 2 replies
- 840 views
i was wondering how you make a button the default button on a form, using visual basic .net. In visual basic 6 the command button had a property called default but i cannot find any such property in .net. You help would be greatly appreciated. Thankyou
Last reply by bjay55, -
-
-
- Moderators
- 1 reply
- 1.3k views
hi every one.. can i connect a server made with windows application in .net to the internet without making a web page or use asp...and how.. thx __________________
Last reply by Robby, -
-
-
- Administrators
- Leaders
- *Experts*
- 8 replies
- 2.2k views
... a dateTimePicker object? It's always white and I can only change the colors of the board that opens once I press it... Grrrrr
Last reply by EFileTahi-A, -
-
-
- Leaders
- 4 replies
- 765 views
I have a Dynamic listbox that I am creating, it's going to be a sort of popup list that you can select from and filters as you're typing. It all works pretty well, except that it's always in the back and a .BringtoFront doesn't seem to do ANYTHING. Anyone have a clue what I'm doing wrong? 'add the dropdown list lstDropDown = New ListBox With lstDropDown .Top = txtDisplayTextBox.Top + txtDisplayTextBox.Height .Left = txtDisplayTextBox.Left .Height = 95 .Width = txtDisplayTextBox.Width .Visible = True .BringToFront() End With frmParent.Controls.Add(lstDropDown)
Last reply by samsmithnz, -
-
-
- Leaders
- 4 replies
- 885 views
I have 2 project folders, project A has many sub folders with many *.vb files, i want these folders to be available to project B without rebuilding the folder and file structure. I want changes made from eather project A or B to apply to both projects. can someone help?
Last reply by mskeel, -
-
-
- Leaders
- *Experts*
- Administrators
- 7 replies
- 1k views
Can anyone give me an example of how to rewrite the section of code, proper .NET format. For this string conversion. If Trim(TextBox1.Text) <> "" Then ttext = Replace(ttext, "<patientname>", StrConv(TextBox1.Text, VbStrConv.ProperCase)) If Trim(TextBox2.Text) <> "" Then ttext = Replace(ttext, "<patientssn>", TextBox2.Text) If Trim(TextBox5.Text) <> "" Then ttext = Replace(ttext, "<treatingdoctor>", StrConv(TextBox5.Text, VbStrConv.ProperCase))
Last reply by DiverDan, -
-
- 1 reply
- 806 views
I've been wondering some sites who uses asp.net have just one single page like main.aspx, that's it, and they use query strings like ?page=about my question is, how do u implement this in asp.net and how does it work in general, like is it just one .aspx file ur dealing with and u populate the page based on what the query string is? :S... like is this a feasible way of implementing i mean what about static contents which remain the same at times, for example the about page or contact page. Wouldn't you have a big switch/case statement? select case page case "about" 'dynamically load contents.. end select is that how it works? please give me some …
Last reply by kahlua001, -
-
- *Experts*
- 7 replies
- 1.3k views
I am creating an anticheat program for a game. now the game should exit if someone trys to load the file opengl32.dll but since windows has that file standard running in need to check if its running if its running check the size of the file and close the game if the size is not equal to the windows opengl32.dll. any ideas how to find the dll's that are running on your system
Last reply by Ontani, -
-
-
- Administrators
- 4 replies
- 639 views
I'm thinking of working with 2-3 libraries (.dlls). One for data, one for logic and then the application which displays. Now if I need to pass a class type with a specific interface from Data to Logic to Display, does it just matter that the signitures match up, or are the names fully needed. I'm not sure if in the Data library if I'd use a local interface or reach across to the application, which really reduces its portability and makes it dependant on the other library to run. They'll probobly have the same name, but be declared in three different places (and namespaces) but all have the same signitures (say FirstName(), LastName(), MiddleName() just for an …
Last reply by Denaes, -
-
- 1 reply
- 2.1k views
Hi everyone...Im trying to use the OWC on my ASP.NET pages, but i can seem to get it working. I follow an example of a page, step by step, but the graphic doesn't appear...the code is this ChartSpace1 = New OWC.ChartSpace() ChartSpace1.Charts.Add(0) ChartSpace1.Charts(0).SeriesCollection.Add(0) ChartSpace1.Charts(0).SeriesCollection(0).Type = OWC.ChartChartTypeEnum.chChartTypeScatterMarkers ChartSpace1.Charts(0).SeriesCollection(0).SetData(OWC.ChartDimensionsEnum.chDimSeriesNames, CType(OWC10.ChartSpecialDataSourcesEnum.chDataLiteral, Int32), aN) ChartSpace1.Charts(0).SetData(OWC.ChartDimensionsEnum.chDimXValues, OWC.ChartSpecialDataSourcesEnum.chDataLiteral, aX) …
Last reply by pavr1, -
- 0 replies
- 597 views
if you need to create a ComboBox user control from scratch, what do you need to do? i am curious to see how the drop-down ListBox is rander. i want to put a CheckedListBox instead of ListBox. is there a way to inherit from the ListControl? (because ComboBox and ListBox are both derived from that) i was reading an example user control called BetterComboBox. it sets the location of the drop-down ListBox by the function SetWindowPos inside the overrided function WinProc for message WM_CTLCOLORLISTBOX (0x0134). so this drop-down ListBox is a window created and controled by ComboBox? thankx.
Last reply by alanchinese, -
-
- Leaders
- 1 reply
- 589 views
Hi all, Normally I use VB just trying to write something in C# at the moment (not that this is the problem) I was creating a user control for a 'log entry' (basically a panel with labels in and a picture box) this then displays a summery of information on a 'log' and the picture box shows an image that helps denote the status. My question is if I was to include all the 6 icons I have made (that cover all my status permutations) in my control and then create an array of these new controls in an application� (The idea being that I then just have to change my status property of the control and it would display the appropriate icon and the correct text etc.) Wo…
Last reply by snarfblam, -
-
Who's Online 0 Members, 0 Anonymous, 82 Guests (See full list)
- There are no registered users currently online