|
hi
i'm storing these images in database actually these images are temlates so they have there own discription & price etc.
when i store the file name into the databse how ould i cal them.
please explain litte more
|
|
|
|
|
Is this VB6 or VB.NET?
"If i was king cigarettes would be free."
|
|
|
|
|
Hi All,
the tool i am using is mycos web chart and i have no idea how this chart renders the data.
here are my codes.
------
Try
'select the table with only distinct ID based
cmd = New SqlCommand("select distinct measure_id from measuredata m, textdata t where t.ScoreCardId = m.ScoreCardId", objConn)
Dim da As SqlDataAdapter = New SqlDataAdapter(cmd)
Dim dtId As New DataTable("MeasureId")
da.Fill(dtId)
'select all columns with ID
Dim cmd1 As SqlCommand = New SqlCommand("select * from measureData", objConn)
Dim da1 As SqlDataAdapter = New SqlDataAdapter(cmd1)
Dim dt As New DataTable("MeasureSource")
da1.Fill(dt)
Dim datarow As DataRow
For Each datarow In dtId.Rows
Dim myView As New DataView(dt)
Dim chart As New Mycos.MycosChartWeb
chart.ID = "chart" + dtId.ToString
myView.RowFilter = String.Format("Measure_Id='{0}'", datarow.Item("measure_Id"))
chart.DataSource = myView
chart.DataBind()
PlaceHolder1.Controls.Add(chart)
Next datarow
Catch ex As Exception
Response.Write("OOPs what went wrong:" + ex.ToString)
Finally
End Try
------
Now my problem is how to add data to those dynamically generated charts. i also need to assign the ID for each chart. how do i do that. and also i want those charts to displayed in specific area but not one by one in for loop. i dont know if anyone of you have done this. well if you have please help me
thanks
|
|
|
|
|
Is it possible to set the computer to hibernate rather than just turn off using VB?
many thanks
|
|
|
|
|
|
what details are avaliable about a web page when loaded up by VB? can you find the number of images on the page? I am new to non - excel/project VB code & would like to learn about some of the functionalities.
Many Thanks Guys
|
|
|
|
|
Hi
Its a bit a wide question. I hope I am give answer in the right direction, but you can way search through the HMTL
of the page and find all the tags "
|
|
|
|
|
Sorry...should have been
of the page and find all the tags "<IMG" on the pages...
Cheers
|
|
|
|
|
hello, i made a messenger which is for chatting. Now i want to send a file! how can i send a file (textfile) from the server to the client via IP?? can someone help me pls!
Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.
|
|
|
|
|
Hi
Have a look at .Net Remoting.
http://samples.gotdotnet.com/quickstart/howto/doc/Remoting/nutshell.aspx.
There are also tuns of examples on the net.
You can binary stream the file to the client using Remoting
On the client you can save the binary stream on the Client machine.
Hope it helps
|
|
|
|
|
Hi guys,
i try to make a new shortcut with this code, but i take an Exception in line with #:
Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
What's the problem??
Please help me..
Code:
'com reference : Windows Script Host Object Model
Imports IWshRuntimeLibrary
Dim LinkPathName As String
Dim TargetPathName As String
TargetPathName = TextBox1.Text '& " +set dedicated 2 +exec kostas.cfg"
LinkPathName = "C:\Documents and Settings\All Users\Desktop"
Dim shell As New WshShell()
Dim link As IWshShortcut = CType(shell.CreateShortcut(LinkPathName), IWshShortcut) #in this line
link.TargetPath = TargetPathName
link.Save()
|
|
|
|
|
kostasdiktia2 wrote: LinkPathName = "C:\Documents and Settings\All Users\Desktop"
You need to have a name for your shortcut:
LinkPathName = "C:\Documents and Settings\All Users\Desktop\My Shortcut.lnk"
----------
There go my people. I must find out where they are going so I can lead them.
- Alexander Ledru-Rollin
|
|
|
|
|
oh Thanx..
Now, i have one more question..about the target of the shortcut..
i want the target has this look:
"C:/Program.../game.exe" +set dedicated 2 +exec kostas.cfg
no this: "C:/Program.../game.exe +set dedicated 2 +exec kostas.cfg"
to unlock some features of the game..
Please help me again in this theme now..
Thanx in advance..
-- modified at 18:14 Thursday 6th April, 2006
|
|
|
|
|
Dim target As String = """C:\Program Files\...\game.exe"" +set dedicated 2 + exec kostas.cfg"
The double quotes will let you put a quote inside the string.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thanx but, I solve my problem with arguments!
|
|
|
|
|
Hello,
Can anyone help me to update the database using the values in textboxes. I have successfully written code to add new rows and to delete rows in the database by checking the values in the textboxes on the form. But my problem is that I am unable to update the database similarly.
I have created a table in MS-Access named "emp" containing two fields named "name" and "phone" with phone as primary key.
On the form I have made two textboxes with their DataBinding text property set for name and phone fields respectively of the dataset.
Also I have made a button to load the dataset. And yet another button on which I want to code for updating the database.
I have tried many codes but none of them works, when I load the dataset and then make some changes in the text of the textboxes and then click on the update button the respctive database is not updated.
If anyone has answer to this problem please inform me with code, this is very urgent and I m facing this problem for many days .
|
|
|
|
|
here is simple update command
Update emp set name = '" & Textbox1.Text & "' and phone='" & TextBox2.Text & "'"
|
|
|
|
|
Hi!Mohit Namdeo.
All steps right but not enough. When you input on textboxs then datas only update on dataset no update on database. so you must do that.
here code on button update
be sure the connection,dataset,oledb...are created.
private sub update_click(...)
{
oledb.update(dataset)
}
end sub
good luck
|
|
|
|
|
I use vb.net for in-house development of apps. Many of these apps are small in size, with few if any referenced dlls. I'd like my apps to be *totally* self-contained--that is, I want to be able to drag and drop the contents of the app's directory onto a new machine and have it run *with no installation procedures*.
In the past (vb.net 2003) this seemed relatively reliable, assuming that the dotnet framework was in place and that any referenced dlls or third-party components had their CopyLocal property set to TRUE. Since switching to vb.net 2006, this does not always seem to be the case. Apps that I have ported from 2003 to 2006, fail to run with errors like "The app encountered a problem....blah blah send a report to microsoft".
This does *not* mean that I require an app to be a single exe file--only that *everything* required for the app is contained within a single folder that can be moved from machine to machine.
Is there a 100% accurate manner of making an app totally self-contained in that it will run on a machine with the (proper) dotnet framework installed? If not, is there a manner in which a more accurate error report can be generated on a (non-developer) machine with a bit more useful information--such as exactly what is missing?
|
|
|
|
|
First, an app compiled on .NET Framework 2.0 CAN work on an older version of the Framework. BUT!!! Only if the app doesn't use functionality specific to the 2.0 version.
So, if your client machines have the 1.1 version of the .NET Framework, they can still run the 2.0 compiled code, ... to a point. This is probably where your problem is comming in.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Dave,
I'm not sure what you're saying here....is what you are describing that my new vb.net 2005 application (which uses framework 2.0) is trying to run using framework 1.0 and failing? Even though both frameworks 1.0 and 2.0 are *both* installed on the machine?
Is it possible that I've compiled (in vb.net 2006) an app that is forcing itself to use the 1.0 framework by mistake? How would this be "deterred" if so?
|
|
|
|
|
Any app compiled under .NET 2.0 (VB.NET 2005) will run under 2.0 first, if it's available. If not, it'll use the highest version .NET Framework installed, if possible.
Using VB.NET 2005, there's no way you could possibly have compiled it under a 1.x .NET Framework by mistake. The compilers used by Visual Studio are not in Visual Studio, but are an integral part of the .NET Framework.
If your app crashed, does anything show up in the machines event logs (Application, Security, or System)??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ah. That makes sense...Since both frameworks are installed, it should be safe to assume that the correct version is being used.
No, nothing in the event logs (any of them). Just the before-mentioned error message/dialog.
Ideally, I'd like to be able to "self enclose" my in-house apps in a folder, then to installations by copying this folder to machines on our network. I've done this in the past with 2003, and even place folders of apps on a linux server that users on windows boxes can run from their desktops.
However, since switching to 2005 this seems a bit more unpredictable. There has to be a reliable method of guaranteeing that all references for an app are in a folder to be copied to to local machine *without* having to perform a full install. Someone on a newsgroup suggested ClickOnce, but this seems just as skittish, and only installs for the current user.
|
|
|
|
|
smarr wrote: There has to be a reliable method of guaranteeing that all references for an app are in a folder
No, there isn't. Not all dependencies can be reliably traced by code and some dependencies are just assumed to be available on target machines. There are just too many different ways you can call code, both managed and unmanaged, that reside outside of the assemblies of your app.
You have to test your distributions before you roll them out to the masses. I like to distribute Debug code to a couple of test machines (VMWare or Virtual PC comes in real handy for this!) to make sure it works before I retest it again using Release versions. This does a pretty good job of catching those natsty little errors your seeing on your client machines.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Correct me if I'm wrong here, but wasn't one of the tenets of DotNet that--because dlls and "called components" could all be contained within an app's installation folder--that it cured DLL hell-type issues like this?
If the installer gets the information on what to install from the app itself, and the installer works but copying all the listed references does not, then by association the installer is doing something *extra* that it is not being told by the app (or at least, the info isn't visible to the user). There has to be a manner of seeing this info so that I can manually copy those file independently and make sure they are there. Perhaps an app that can detect what refs are being called during an app's execution.....
|
|
|
|