|
hi.. i'd like to get all the emails from an additional mailbox in outlook (not my personal account). how can i possibly do that without using POP3? i tried outlook automation but populating all the emails is very slow.. it takes up to 10 mins to load 2000+ emails. how can i possibly do that? pls help me.. i'm stucked on this project..
|
|
|
|
|
Where can I find a vb.net example on how to make an IE Explorer Bar? I saw some stuff on MSDN but I have no idea how to start something like that.
~(mm)8>
|
|
|
|
|
u can make it by using creating menus
u can add " file edit favorites tools help" in menu bar
then u can add ur own custom controls for button like
"back forward etc"
|
|
|
|
|
I can't find a VB.NET example, but there is a C# example here[^] on CP. This could be converted to VB.NET with some work...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I'm trying to read the Windows Registry and have been successful up to the point where I have to get a value other than type string. I know the key or at least I think the key is to use GetType(). I've looked at the GetType() under help but can not see an example on how to use it to determine if a Registry Value Name is what type. Here is a snippet of what I have been using to get the regvaluename of type string:
Dim RegKey As RegistryKey
Dim SubKey As String
Dim RegValueName As String
Dim RegValueData As String
RegKey = Registry.LocalMachine.OpenSubKey(SubKey, False)
RegValueData = RegKey.GetValue(RegValueName)
Now I understand that the problem is with "RegValueData" and its type but how do I change the code around so that this will work with data other than type "string"
Thanx in advance for any help/guidance into the right direction.
-Mark-
|
|
|
|
|
object RegValueData = RegKey.GetValue ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
GetType will return the type of the returned value, not the Registry Type. GetType can't tell that the value you read is REG_SZ or REG_BINARY. The Registry calss is a bit limited as it does conversions to standard types for you ( ) that in some cases are completely useless. The registry type that is stored is "interpreted" based of the value type information that is passed in
Note: When setting a value, the way in which the value being
passed is stored in the registry is interpreted. There is no way to control
whether the information being passed is stored as an sz, or an expanded_sz
string, and therefore, all string values are interpreted as standard sz
values.
Microsoft insist on doing this to make the Registry easier to handle, but IMHO, you get less control over exactly what REG type it used for some values.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello everybody. I have the following problem. I can connect to a database with a datagrid and display all records. But when i go to delete one it doesn't do it.
Code for populating datagrid
Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db1.mdb"
Dim myConnection As OleDbConnection = New OleDbConnection
myConnection.ConnectionString = connString
Dim da As OleDbDataAdapter = New OleDbDataAdapter("Select * from tblDevices", myConnection)
Dim ds As DataSet = New DataSet
da.Fill(ds, "tblDevices")
Dim dv As DataView = ds.Tables("tblDevices").DefaultView
DataGrid1.DataSource = dv
code for deleting
Dim connString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db1.mdb"
Dim myConnection As OleDbConnection = New OleDbConnection
Dim cmd As OleDbCommand
myConnection.ConnectionString = connString
myConnection.Open()
Dim mySelectText As String = "Select * from tblDevices"
Dim myDataAdapter As New OleDbDataAdapter(mySelectText, myConnection)
myDataAdapter.DeleteCommand = New OleDbCommand("DELETE FROM tblDevices WHERE Item= '" & tempDevice & "' AND Booked= '" & txtBookedBy.Text & "' AND Date= '" & txtDate.Text & "' AND Time= '" & txtTime.Text & " '", myDataAdapter.SelectCommand.Connection)
myConnection.Close()
What am i doing wrong?
Still trying to find the way
|
|
|
|
|
use "ExecuteNonquery" method
try to use this logic for deletion
dim objcommand as oledbcommand=new oledbcommand()
objcommand.commandtext="delete ------(ur code)"
myconnection.open()
objcommand.executenonquery()
objcommand.close()
|
|
|
|
|
Hello everybody. Does any one knows how we can use S.M.A.R.T. technology with vb.net? I am trying to write a small program to monitor my HDD temperature. I know that there are programs out there but it would be cool if i could write one for myself. Any help will be much appreciated. Thank you.
Still trying to find the way
|
|
|
|
|
Hello,
I have several forms where the country drop down is required. Instead of calling to load the country in each form, can someone show me a quick way of just calling it as a class from any form in order for the country code to not be redundant.
Thanks prog newbie.
|
|
|
|
|
dropDown.DataSource = Helpers.GetCountryList ? Of course, you need to write the Helper class as well.
Or just create a control. This site probably has one.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Can someone tell me how to hide applications from the task list on win NT/XP using visual basic 6.0 not visual c++?, coz i was reading certain info. bout hidding applications but the code was in c++ and need it in visual basic 6.0, i really need someone´s help please.
Lamah
|
|
|
|
|
You're going to have to show us what you're talking about, because, in general, there is no way to do that in NT/XP. What's the link you were looking at?
Under Windows 95/98/Me, this was possible using RegisterServiceProcess, but this function is not supported under NT/2000/XP/2003.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i m telling u concept of vb.net. hope this will work
in vb.net there is an event called form_activated
in this form write me.hide
ur application will not be visible
hope this will work
|
|
|
|
|
Oh yes it will be visible! You won't see it on the Applications tab, but you will see it on the Processes tab.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
How can I add a tooltip text to a command button ???
Thanks in advance for your help.
Suman Singh
|
|
|
|
|
Hello,
In VB6 you can use the property "ToolTipText".
In VB.Net you can use the "ToolTip" control from the toolbox, and then a "ToolTip on ToolTipName" property will appear in the button's property page.
I hope this helps,
Programmer2k4
My sig:
"The so-called 'Bugs' do not exist, they are merely features hidden by developers with message boxes that say 'An unhandled exception has occurred'." - Programmer2k4
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
I now use my CodeProject Blog!
|
|
|
|
|
Hi all,
I have written this code........
On form1
button_click(........)handles......
dim f2 as form2
me.hide
f2.show
On form2
button_click(........)handles......
dim f3 as form3
me.hide
f3.show
Now on form3 I want to close form1.
How should I proceed ????
|
|
|
|
|
If Form1 is your startup object, you can't. If you close the startup object, you'll close your entire application.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Thanks for your reply.
I just wanted to know how can I close a form from any other form ?
Hope you will again help me.
Thanks !
Suman Singh
|
|
|
|
|
Well, any forms spawned by Form1 will not know Form1 even exists, so there is no easy direct way to close any other form. You get around this problem adding a public field to your child forms where, when created, you pass a reference from the parent form to the child:
Dim myForm2 As New Form2
myForm2.ParentForm = Me
myForm2.Show()
Form2...
Public Class Form2
Public ParentForm As Form
Now, a new problem exists. If your child form tries to close it's parent, it's essentially killing itself in the process. Since the childs parent hold the only existing reference to the child, killing the parent kills the reference, which in turn kills the child.
So, the best method of having a form kill off any other form is to let the parent form manage all other open forms. Say if Form2 need to open Form3, Form2 would call back to Form1 (remember the reference from above?) to tell it to create Form3. Now, Form3 can also call be to Form1 to have it kill off Form2.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am trying to perform a the find command in VB 6.0 where I can reference txtsearch.text value in the "Criteria" portion of the command. I want to type in the search criteria in a text box (txtTest) and then run the find command based on the value of this text box. See code below:
Dim mySearch as string
mySearch = txtTest.text 'where txtTest is an existing text box on my form.
On Error GoTo err_Report
With Adodc2.Recordset
Do Until .EOF
.Find ("Part_Number = '& mysearch &' ")
.MoveNext
Loop
End With
err_Report:
MsgBox Err.Description
-=BHBADZ=-
|
|
|
|
|
Hi There, code guru's =)
Can Anybody give me some hints on how to obtain a RAS (dail up internet connection) IP? Preferably without asking a DNS or WMI /Registry... Can Anybody point me in the right direction?;)
Thanx in advance!!
Dahool
If you make something idiotproof, someone else will make a better idiot.....
|
|
|
|
|
I have a data type is smalldatetime in the sql table, when I bind to my DataTable in VB.NET, when there is value in this column, the output is fine, but when it's NULL, then it gets error of the data type. In the sql, if it's string, I do ISULL(firstname, '') AS firstName inside sql query, then the output is fine, but I don't know how to convert the null smalldatetime. Is there any idea?
Lisa
|
|
|
|