|
I have created a mobile application and it is working fine, but I want to do one more task: I want to display a logo.
When the application is running - How can we display logo on the top of the screen with other icons such as time, network, roaming status, battery status etc.
Does anyone has a suggestion or answer....
Regards
|
|
|
|
|
Hello,
I am having the following problem when insetring in SQL 2005 from VB 2005
I have done a calculation wich result in a double variable with the name Total
In my SQL database the Total is defined as smallmoney
Need to Insert the Total into my SQL database so what i do :
SQL="Insert into Results (Total) Values ('"+ System.convert.tostring(Total)+"')"
The SQL insert is working but the Values are incorrect, something wrong with the Decimal point.
When i insert my double result that is the result of for ex. 3 * 2,5 --> 7,5 (Total) in the database there is 75,0000 in the SQL insert i insert 7,5
So i think that something is wrong with the decimal sign.
Maybe i need to insert 7.5 instead of 7,5 but how can i make that is will be correct converted so i can insert it right into SQL.
Any suggestions are very welcome.
I think that there is a simple solution but i dont see it anymore.
Thanks
DCAUB
|
|
|
|
|
Is your SQL Server set up to be localised to use a , as a decimal point ? Perhaps if you used a parameterised query, SQL Server and VB would work it out for you because instead of a string, you'd be passing a number with a specific value ? Or perhaps the smallmoney type has that many decimal places ? From MSDN: The money and smallmoney data types are accurate to a ten-thousandth of the monetary units that they represent.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I want a code of Insurence Banking management system
|
|
|
|
|
It is depressing that I can't tell if you're joking or not.
If you're trolling, get a life. If you're not, hell, get a life. I can only assume that no-one would hire someone like you to write such a system, so I assume this is homework. Do your own homework.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
...and people in Hell want ice water.
Did you have a specific question about writing this thing, or did you just want other people to do your work for you??
|
|
|
|
|
Hi, I want to be a rockstar. Plz send groupies, it urgentz!!
|
|
|
|
|
darkelv wrote: I want to be a rockstar. Plz send groupies, it urgentz!!
That is a good one
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
There are Vacancies in Mental Hospital
mybe you should stop telling any one that you can code
Give me your resume they are looking for insane people like you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Tharsan wrote: I want a code of Insurence Banking management system
Be one cold day in hell before someone gives you code outright to something like that. Do your own frigging work ( e.g. requirements gathering/design/code/etc).
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hi there
i got a problem to draw string Unicode on form .
but function drawstring can't support unicode , do u have anyway to drawstring text that support unocode ?
pls point me anyway what should i do next and give me some codes about that ?
Example:
Dim drawFormat As New StringFormat()
Using formGraphics As Graphics = Me.CreateGraphics(), _
drawFont As New System.Drawing.Font("Khmer Os system", 16), _
drawBrush As New SolidBrush(Color.Red)
formGraphics.DrawString("???????????", drawFont, drawBrush, _
150.0, 50.0, drawFormat)
End Using
that example above can't draw string correctly , Pls help me i need Urgent.
thank you in advance .
regard from
Spider Anatha
|
|
|
|
|
You don't need to create a red brush, you can use Brushes.Red.
In fact, all strings are unicode in .NET. What makes you think you can't use a unicode string ? How are you trying to ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i have 3 gridview
on selected index change of first gridview(company), I populate second gridview(users) on second gridview selected index change i display a list of jobs that are available (in a listview) and list of jobs assigned (in gridview) and roles associated with that job (checkbox in a 3rd gridview)
when i need to assign a job to the user i simply do followings
1. click company from 1st gridview
2. click user from 2nd gridivew
3.select a property from available property
and click a button that adds a new record in the assigned gridview but i want to display the newly added row as soon as they hit assign button. i need to reselect the user to see the updated change. is there anyway i could achieve this without using session?
please advise.
|
|
|
|
|
There's no reason in the world you need to use the session. Just use viewstate, or pass a value on the url, if they are different pages.
BTW, I answered tis even though you should not have posted it here, it's an ASP.NET question.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You are a kind-hearted and charitable individual Mr Graus...
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
I know - ask anyone.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hi all,
recently i have developed an application in vb6 (sp6).
when i run this application all is ok but when i want to take print out of given subject it gives me some problems
when i take printing on domatrix printer it gives me ok result, i mean to there is no problem with such like proble on any other pc.
but, when i same take on laserjet printer it gives varied result, mean on some pc it suppoted and on some pc i could not able take the print out.
find the coding which i used to take printout
Private Sub DataRptRecord()
'On Error Resume Next
Dim Var1, Var2 As String
If A_DataEnvironment.rsCmdPrnt.State Then A_DataEnvironment.rsCmdPrnt.Close
A_DataEnvironment.rsCmdPrnt.Open ("SELECT *From adrsmstr",conn)
DataRptAddress.Sections(2).Controls("lbl1").Caption = Trim(TxtCntact1.Text) ' AdrsBook_DataEnvironment.rsCmdAdrsPrnt.Fields(1)
DataRptAddress.Show
the following section of codes deals with only dos base printings.
Private Sub DosBasePrinting()
On Error Resume Next
Dim A1, A2, A3, A4, A5, A6, A7 As String
Dim z As Integer
Dim i As Integer
If MarkAtt = True Then
Call AskForSave
If a.State Then a.Close
a.Open ("SELECT * From adrsmstr"), Conn, adOpenStatic, adLockBatchOptimistic
If a.EOF = False Then
a.MoveFirst
z = PrntNos
Open App.Path & "\A.TXT" For Output As #1
A1 = a.Fields(1)
A2 = a.Fields(0)
A3 = a.Fields(2)
A4 = a.Fields(3)
A5 = a.Fields(4)
A6 = a.Fields(6)
A7 = a.Fields(5)
For i = 1 To z
Print #1, " " & Trim(TxtCntact.Caption)
Print #1, " " & A2
Print #1, " " & UCase(Trim(A3)) & "," & UCase(Trim(A4))
Print #1, " " & A5
Print #1, " " & A6
Print #1, " " & A7
Print #1, " "
Print #1, " "
Print #1, " "
Next
Close #1
End If
X = Shell(App.Path & "\print.bat", vbHide)
rmshah
Developer
|
|
|
|
|
r_mohd wrote: recently i have developed an application in vb6 (sp6).
Why on earth would someone start a new app with VB6 in 2008 ?
Unless VB6 is utterly rubbish ( and, I know, it is ), your printing should be handled the same for any printer, because it should rely on the driver for specifics of the printer. I suspect the problem is that you're not taking the time in your code to check the size of the page, and so it probably prints differently based on page settings.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanks,
u talking absolutely right, some time it's clients specific requirement.
but i have solved my problem, it was some dll i was missed.
thanks
rmshah
Developer
|
|
|
|
|
NO, there is no problem for dll, i also have the same problem with one of my application. this code will work only for the dot matrix printers.
Yogesh Agarwal
|
|
|
|
|
Christian Graus wrote: ...your printing should be handled the same for any printer, because it should rely on the driver for specifics of the printer.
There are times when it's best to handle printing in a device-independent way. There are times, however, when device-dependent code is the only practical way to do things.
A typical dot-matrix printer can quickly output monospaced text at 10, 12, or 17 characters/inch and 6 or 8 lines/inch; such text will be far more legible than any sort of graphics Windows could produce with it at anything resembling comparable speed. While such printers are regarded as obsolete in some contexts, there are other situations where they have considerable advantages. They can print multi-part forms, multi-page printouts are automatically fastened together without stapling, and they can run thousands of pages without reloading.
It looks like this application works by creating a text file and then using a DOS batch file to print it. Without seeing what the DOS program is doing, it's hard to say exactly what your problem is. My guess would be that the default character/line spacing and page margins on the laser printer are different from those used by the dot-matrix.
|
|
|
|
|
Hi, I am using dataset for playing with data and wanted to create an additional column that stores logarithm (log) of another column. I tried to use number of options including the one below but still have trouble making the program work.
dtRec.Columns.Add("sumXY", Type.GetType("System.Double"), Math.Log("recflow"))
recflow is an existing column of the dataset and I want log values of reflow to be stored in new sumXY column.
Any suggestions!!
Amanjot
|
|
|
|
|
Amanjot,
The way you've written the third parameter is, I think, incorrect. This might work instead:
tRec.Columns.Add("sumXY", Type.GetType("System.Double"), "Math.Log(recflow)")<br />
Steve Erbach
Neenah, WI
http://TheTownCrank.blogspot.com
|
|
|
|
|
Thanks Steve. I tried the option you suggested; however, it didn't work.
Thanks,
Amanjot
|
|
|
|
|
question
if i select 2 items then numbers in the first column is 1,2 when i close the open file dialog and want again add 4 files
I want the numbers3, 4 ,5,6 after 1,2
so that i hav 1,2,3,4,5,6 including the file name in the second column
so i must then look like this.
col1 col2 Col3
1 tina turner Pathname
2 10cc Pathname
3 Gwen steffani Pathname
4 Abba Pathname
And so on
with the folowing code it wont work
Me.OpenFileDialog1.Multiselect = True
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
End If
Dim x As Integer
Dim item As Integer
Dim file As String
For Each file In OpenFileDialog1.FileNames
x = item + 1
ListView1.Items.Add(x)
ListView1.Items(item).SubItems.Add(IO.Path.GetFileNameWithoutExtension _(file))
ListView1.Items(item).SubItems.Add(file)
item += 1
Next
End If</code>
please help
thanks
|
|
|
|
|