|
It is quite simple to convert C# code to VB.NET code. And the theory is the same, so what is the probblem?
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
I am making a chat application in VB.NET. I want to implement the smiley communication. Can anybody suggest the approach? If with code, then it is the best.
Regards,
Sandip Kansara
Software Engineer
India.
|
|
|
|
|
Make a list of charachters or group of charachters that represent smileys. And then when you recive them on the client you simply convert that to a image.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
i have put my code below.
the problem im facing is that i want to store my query results in variables. however the method i used below deosnt seem to work. how can i get my query results returned stored in variables so i can use them as appropriate.
While (_startMonitoring = True)
Dim conn As System.Data.OracleClient.OracleConnection = connection()
Dim cmdORA As New System.Data.OracleClient.OracleCommand
_ds = New DataSet
cmdORA.Connection = conn
conn.Open()
cmdORA.CommandType = CommandType.Text
cmdORA.CommandText = "SELECT * FROM (SELECT datetime,threadid,log_level,logger,message,remoteuser,remoteip," _
& "sessionid,machine,os,url,host FROM log where ROWNUM <= :RN ORDER BY datetime DESC)"
Dim oraParam As New OracleClient.OracleParameter("RN", System.Data.OracleClient.OracleType.Int32)
oraParam.Value = CType(Me.txtNumber.Text, Integer)
cmdORA.Parameters.Add(oraParam)
'Dim oraParamDatetime As New OracleClient.OracleParameter("DTIME", System.Data.OracleClient.OracleType.DateTime)
'oraParamDatetime.Value = _lastDatetime
'cmdORA.Parameters.Add(oraParamDatetime)
Dim ThreadId As New OracleClient.OracleParameter("threadid", System.Data.OracleClient.OracleType.VarChar)
ThreadId.Value = CType(_ThreadId, String)
cmdORA.Parameters.Add(ThreadId)
Dim loglevel As New OracleClient.OracleParameter("log_level", System.Data.OracleClient.OracleType.VarChar)
loglevel.Value = _loglevel
cmdORA.Parameters.Add(loglevel)
System.Windows.Forms.MessageBox.Show(loglevel.Value)
Dim da As Data.OracleClient.OracleDataAdapter = New Data.OracleClient.OracleDataAdapter(cmdORA)
da.Fill(_ds, "Log")
If _ds.Tables(0).Rows.Count > 0 Then
Me.Invoke(New RefreshGridHandler(AddressOf RefreshGridMethod), New Object() {"test1"})
_lastDatetime = _ds.Tables(0).Rows(0).Item(0)
End If
MessageBox.Show(ThreadId.Value)
MessageBox.Show(oraParam.Value)
MessageBox.Show(loglevel.Value)
conn.Close()
System.Threading.Thread.Sleep(5000)
End While
|
|
|
|
|
U can use oledbdatareader object
code would be
dim dr as new OleDbDataReader
conn.open
dr.read()
dr=cmdORA.ExecuteReader
<var_name>=dr(0)<this will="" give="" u="" result="" of="" the="" 1="" st="" cell="">
<var_name>=dr(1)<this will="" give="" u="" result="" of="" the="" 2="" nd="" cell="">
conn.close
|
|
|
|
|
I would like to copy data from my datagrid and paste into excel.
A select all function button or drag over selection to highlight would be fine.
I can select info but right click will not product a context menue..
Help Please
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
how do i incorporate a barcode printing module in a vb6 or vb.net program
tunde aransiola
|
|
|
|
|
How can I convert the image or my picture in ole object data type in access database using the vb6 codes? can you give me a sample code? thank you.....
regards
|
|
|
|
|
when i try to upload the file it gives me
error.
"Access Denied."
what should be the solution.
|
|
|
|
|
Allow write access for the user that the website is running as to the directory you are trying to write to.
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
I think that you have to provide more information.
Where are you trying to upload the file? To your own application?
Is the error message generated by the application, or are there any more information in the error message?
Is this a VB application, or would this question be better off in some web development related forum, like ASP.NET or Web Development?
---
b { font-weight: normal; }
|
|
|
|
|
Please give file creation permission to the relevant client.
raj
|
|
|
|
|
Hi
How do you write the content of a text box to a file, appending new content and reading back that file into the text box showing the last written content at the top of the file?
Many thanks for any assistence.
newtWales
|
|
|
|
|
Dim reader As New IO.StreamReader(Server.MapPath("MyTextfile.txt"))
Textbox.text = reader.ReadToEnd()
same like write also
raj
|
|
|
|
|
Hi Raj
Many thanks for this it works well...Jim
|
|
|
|
|
hai
you can try this out.........
dim a as string
a=textbox1.text
File.AppendAllText("g:\text.text", a)
File.AppendAllText("g:\text.text", Now.Date)
File.AppendAllText("g:\text.text", " )
File.AppendAllText("g:\text.text", Now.DayOfWeek.ToString)
plz reply if this solve your problem
|
|
|
|
|
Sorry but I could not get this to work, but thank anyway. I got an error mesg saying " .AppendAllText" is not a member of Text. And I could not find a workaround. Jim
|
|
|
|
|
Hey All!,
Ia have a project iam currently working on in VB.Net. Its about a travel company that provides world wide flight routes for travellers. It as proposed that each traveller will be represanted by a linked list.
Now my aim is to produce a prototype of a software to demostrate to the travell company by designing, implementing and testing a linked list class and this class must include the properties and methods : Forward link, Node text add/insert node and remove node. Then implement a procedure that will traverse a linked list generating a graphical represantation of a linked list using label controls.
How can i solve this problem, PLEASE HELP!
Mwale
|
|
|
|
|
What is it that you have a problem with, then?
---
b { font-weight: normal; }
|
|
|
|
|
If you search the articles here you wil find 10's of results showing linked list implementations.
If you expanded the same search to Google that number would probably be 1000's
Current blacklist
svmilky - Extremely rude | FeRtoll - Rude personal emails | ironstrike1 - Rude & Obnoxious behaviour
|
|
|
|
|
Hi I need help on how to embed or save an image and not the path of the image in a SQL2000 at 600dpi and retrieve it at the same 600dpi to display.
|
|
|
|
|
Dim Adapter As New OleDb.OleDbDataAdapter(lSql, ConnectionString)
Dim CommandBuilder As New OleDb.OleDbCommandBuilder(Adapter)
Dim memstImg As New MemoryStream
picturebox.Image.Save(memstImg, picturebox.Image.RawFormat)
Adapter.Fill(dataset, "image_bank")
Datarow = dsImg.Tables("image_bank").NewRow()
Datarow.Item("image_file") = memstImg.GetBuffer()
dataset.Tables("image_bank").Rows.Add(lRow)
Adapter.Update(dataset, "image_bank")
raj
|
|
|
|
|
how to fit the window size to the fit size an din teh middle of the screen, and i would like the window be in the middle whenever it appears on the screen.also, whenever user click on the maximize the size,the size of teh form will be full scree,i dont know how to set it.sir, plz help me.tq
|
|
|
|
|
Simple,
set form’s StartPosition property to CenterScreen
For your second question
Set form’s FormBoderStyle property to None and WindowState property to Maximized
Regards,
Chatura Dilan
|
|
|
|
|
Hi all !
I am new in program for Crystalreport. In my Report, I have two Group By : School ID, and then Class ID. I want use GroupNUmber in order to Order NUmber the Group School ID ( 1,2,3, ...) But I allway recieve the Order Number of Group Class ID.
pls help me How to resolve the problem !
Thank alot !
Example : I want the result the fowllow
1 School1 1 Class1
2 Class2
3 Class3
2 School2 1 Class1
2 Class2
3 School3 1 Class1
But Reruslt :
1 School1 1 Class1
2 Class2
3 Class3
4 School2 4 Class1
5 Class2
6 School3 6 Class1
|
|
|
|