|
If you don't want to use the Color Dialog or 3rd party controls, you're going to have to custom draw this, possibly using GDI+. How this is done will depend heavily on how you want it to look. I suggest doing to research on Code Project and/or other sites, searching for "Color Picker".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi,
in some C#-Project a some comments included to describe the code better
the commands are
<Summary>
<Param>
<Return>
and so on
my question, is it posible to use it in VB .NET too?
Copyrights © 2003 by Paebbels.net
|
|
|
|
|
|
will this feature be part of Visual Basic 8.0? i read of many new featuren but this was not on the list (it was shortened by the author)
i think it's a discrimination of VB programers against C# programers ^^
there are 2 ways for C# Code:
- in-code comments like this XML-tags
or
- a link in the project-file to an external xml-documentation-file
but both failed with the VB Compiler
- syntax error
- the xml-files was not included
Copyrights © 2003 by Paebbels.net
|
|
|
|
|
Paebbels wrote:
will this feature be part of Visual Basic 8.0?
Yes (see How to: Create XML Documentation for Visual Basic[^]).
i think it's a discrimination of VB programers against C# programers
No, it's not. They're simply two different products and the teams making them prioritize features differently.
Best regards
Dennis
|
|
|
|
|
oh thanks,
I read this way of documentation in a C# Project with that style:
///<Summary>
///the text
///</Summary>
and I tryed this also in VB .NET with ' but not '''
...my mistake ...
Copyrights © 2004 by Paebbels.net
|
|
|
|
|
hi,
i'm from germany and so i dont know the right translation für
"Verweise" into englich (Buttontext of the english Visual Studio version)
- link
- refernez
- imports
- ...
i hope you know what i mean...
why is it impossible to set an "link" to an windows application (i.e. .exe-Project) to use this namespace?
in COM it was possible to refer to an ActiveX-EXE-Server, an exe-Project which provides several classes ...
Copyrights © 2003 by Paebbels.net
|
|
|
|
|
Paebbels wrote:
i'm from germany and so i dont know the right translation für
"Verweise" into englich (Buttontext of the english Visual Studio version)
What you mean is "reference".
why is it impossible to set an "link" to an windows application (i.e. .exe-Project) to use this namespace? in COM it was possible to refer to an ActiveX-EXE-Server, an exe-Project which provides several classes ...
Well, I also read your question about remoting (I didn't answer because I don't have any experience with it yet) and after that question of yours I guess you're mixing up some concepts. More precisely I think you should make yourself clear what the differences between Win32, COM and .NET are and how interoperability between these three technologies is achieved. Just have a look at these links to get started:
Windows API Start Page[^]
The Component Object Model: A Technical Overview[^]
What Is .NET?[^]
Introduction to COM Interop[^]
Best regards
Dennis
P.S. I'm from Germany myself so feel free to contact me in German. However if you want to do so I suggest you write to me via e-mail because I think it's impolite to use a foreign language in an english speaking newsgroup.
|
|
|
|
|
Hi All,
I've created an aspx page with a few textboxes and a button to send. Behind this button is the code:
Dim mailt As New MailMessage()
mailt.To = "myemail@gmail.com"
mailt.From = "testemail@hotmail.com"
mailt.Subject = "Subject"
mailt.Body = "Testbody"
mailt.BodyFormat = MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "smtp.mydomain.be"
System.Web.Mail.SmtpMail.Send(mailt)
The problem is this works but takes very long and I must delete the <..... INHERITS="mydomain.testmail"%>
otherwise I got the message error 503 the mailserver needs authorization.
What can I do or do I wrong?
Thx!
Peter alias SPYATNOON
|
|
|
|
|
Is it possible to put text next to icon.
I know if i change style and specify icon I can put icon on the command button
but when specifying caption automatically it goes to next line.
Shin
|
|
|
|
|
here's te deal i have a form that has 2 buttons on it.
i need to call the buttons click event from a different form in order to run the event i would just put the code into the form_load event but the form has a duel purpose so i can't do this.
so in VB.NET, how do we call the click event form a different form
i have tried the performclick() and this doesn't seem to work .
here is a sample of code
<br />
Private Sub EnterBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles EnterBtn.Click<br />
' these next 2 lines remove the unwanted characters from the<br />
' beginning and end of the card value in this case, the card <br />
' values are 4 numbers delimited with a ; at the beginning<br />
' and a ? at the end<br />
txtPassID.Text = txtPassID.Text.Remove(0, 1)<br />
txtPassID.Text = txtPassID.Text.Remove(4, 1)<br />
'**********************************************************************<br />
CIfrm.txtPassIdSearch.Text = txtPassID.Text<br />
CIfrm.SearchIDBtn.PerformClick()<-- not performing as it should <br />
CIfrm.ShowDialog(Me)<br />
Me.Close()<br />
End Sub<br />
i have to different searches being performed depending on what form the user uses.
any help would be great
Help is great only if you ask correctly
|
|
|
|
|
You need to make the event handler method for the button click on Form2 public and within it check what control it is handling:
Public Sub Search(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click<br />
<br />
If sender.GetType Is GetType(Form1) Then<br />
MsgBox("Button Called By Form 1")<br />
ElseIf sender Is GetType(Button) Then<br />
MsgBox("Button Called By Button")<br />
End If<br />
<br />
End Sub
Then from the other form you can call this method in the load handler:
<br />
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
<br />
Dim form1Instance As New Form1 'Only if you don't have another instance<br />
form1Instance.Search(sender, e)<br />
<br />
End Sub<br />
Hope this helps, although maybe you want to rethink your design a bit though and have a another class that performs the search that each form could access independently:
<br />
Public Class Search<br />
<br />
Public Shared Sub DoSearch(ByVal sender As Object, ByVal e As EventArgs)<br />
<br />
If sender.GetType Is GetType(Form1) Then<br />
MsgBox("Button Called By Form 1")<br />
ElseIf sender Is GetType(Button) Then<br />
MsgBox("Button Called By Button")<br />
End If<br />
<br />
End Sub<br />
<br />
End Class<br />
You could then call this from anywhere without even creating an instance of the Search class using:
<br />
Public Sub Search(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click<br />
<br />
Search.DoSearch(sender, e)<br />
<br />
End Sub<br />
Cheers
Tom
|
|
|
|
|
hi
i'm trying to make my own version of the widows notepad. in the normal widows notepad there is an option to find and replace text. i have used the find form as a dialog box to input text tat has to be found. but i cant access the text of the richtextbox of the main window in the coding of the find form. please help me with this problem
Pranav Bhatnagar
|
|
|
|
|
Try specifying the parent form's name:
frmMainWindow.rtbTextEd.Text
Pablo.ar
|
|
|
|
|
Hi All,
I have a bit of an issue. My issue is, I have several Oracle tables which have the same type of data, however these tables are under different schema users. Now I would normally do this in Oracle and set grants privs on those objects, however I can't do that. What I have to do is combine those tables using vb.net. Now for my question how do I that?
Do I set up the datatables and then put those datatables into a dataset? How do I this programmatically??
Any help would be appreciate it.
Thanks,
|
|
|
|
|
hey,
i am trying to assign values to my combo box items. I thought that as you add an item to a combo box you could also just add a value.
I am having great trouble doing this.
i have a datatable with a 'name' and 'id' column. i want the combo box to display the name but when it is selected to get the id.
i currently have the following code
cmboConnections.DisplayMember = "name"
For i = 0 To connectionTable.Rows.Count - 1
If Not connectionTable.Rows(i).Item("name") Is Nothing Then
cmboConnections.Items.Add(connectionTable.Rows(i).Item("name"))
cmboConnections.ValueMember = connectionTable.Rows(i).Item("ID")
End If
Next
I am unable to find any property wher you can just combobox.SelectedItem.Value or combobox.Item(X).Value. Is there any way to set a value of a item in a combo box?
Thanks for your help
Chris
|
|
|
|
|
I am now using a datatable
cmboConnections.DataSource = connectionTable
cmboConnections.DisplayMember = "name"
cmboConnections.ValueMember = "ID"
Which populates my combobox but i have no way of retrieving the Valuemember from the selectedIndexchanged event.
Does anyone no how to get the ValueMember from a selected item?
I have tried using the SelectedIndexChanged Event but the combobox.SelectedValue is a datarow and cannot be converted to string apparently?
Any suggestions this is quite urgent
Thanks for your help
Chris
|
|
|
|
|
Hai
I am creating the colomnheaders in the run time but by default the backcolor is grey can i change the backcolor of the colomn header programitically
Thanku
kala
|
|
|
|
|
how to deploy msde and vb.net application on client side pc through .net setup
|
|
|
|
|
There are lots of articles around the 'Net that describe this. You can search CodepOroject Articles for "bootstrap" and find a few projects that deal with this. You can also try searching GotDotNet.com for the same thing.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have Prepared DATA.XML using Dataset. This data set Contain All the Tables Data of my database. This xml is Too bulky like 100 MB. I will transfer this XML at Different Place.
Now my Problem is When I am Trying to Load this XML in Dataset Again It Take too much Time and it does my CPU 100% utilization and it take all memory.
how can i handle with this problem.
one other thing that Can i Load XML node by Node not whole xml in VB.Net.
Atul Patel
Aftek infosys Ltd.
Pune,India.
|
|
|
|
|
The problem your having is your using XML as a large database, which it is extremely poor at. Your data really belongs in an actual database, like SQL Server, and not a very large text file.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
SCENARIO (New project started using ASP.net 2.0):
At this point, I am simply trying to open a connection to a datastore.
Application settings: <default web="" site="">\AAC
Physical path of database file:
C:\Inetpub\wwwroot\www\AAC\data\dbStore.mdb
Script running from file in /gallery directory
C:\Inetpub\wwwroot\www\AAC\gallery\aStore.aspx
...
Dim mPath As String = Server.MapPath("\data\dbStore.mdb")
...
returns error:
'C:\Inetpub\wwwroot\data\dbStore.mdb' is a physical path, but a virtual path was expected.
What am I doing wrong? Am I missing some configuration in the web.config file?
I never had that sort of problem with ASP.net 1.1
Any help appreciated,
pyb
|
|
|
|
|
Your question really belongs in the ASP.NET Forum, regardless of the language it's written in.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm kinda new to using VB.net i use to use an older version of Visual Basic and I'm kinda learning things all over again. I am trying to put together something that will be able to add to and search a database. I admit i haven't done many things with databases i know how to create them and to add to them in Access but that's about it. The database I want to search is in the Microsoft Access format. I have tried reading books for VB.net but to no avail. Hoping someone on here would be able to point me in the right direction to getting what i want done.
Fibman
|
|
|
|