|
Either u change the select statement with the required fields to be displayed in the grid
-or-
after assigning the recordset to datagrid's datasource property, make the unrequired columns width to zero.
|
|
|
|
|
Hi gurus,
I have a problem in programming thru VB and Oracle.
I have created a class Module thru which I am retriving Database fields
While retriving a particular Date Field, I am getting an Error 'Errors Occured' (Not for all Date Fields). When try to look Quick Watch in the value box it shows empty, if I try isnull(rs.fields(1)) it returns false, if I try isempty(rs.fields(1)) it returns false, if I try isobject(rs.fields(1)) it returns true
Please go thru it and help me
|
|
|
|
|
Could you post the code please?
|
|
|
|
|
How do I resize the first column of datagrid control to be zero, so that it can work as ListViewItem.tag in listview control? Is there a way to hide the first column and set the with to 0?
Please help . Thanks.
|
|
|
|
|
you can resize the grid columns:
after filling the datagrid this line is to be added
datagrid1.columns(0).width = 0
|
|
|
|
|
Hello guys I am new comer in the exciting world of programming,but i learn very fast.i want to try my skill in writting a chart software,Please kindly outline the algrithm explain how to comfigure my winsocket so that at least two systems can exchange text data
thanks
chris
chris
|
|
|
|
|
Your question is vauge to say the least. Which is it? The chart program or winsock?
You chart question really depends on the graph your trying to make and what you want to support as far as options. Titles, axis labels, data ranges, auto scaling, log charts, line graphs, bar graphs, X/Y charts, Radar charts, ... There is no one algorithm that will encompass all of this. You really have to be more specific in what you want and do a bit of research and think about your design and what it will require before you start writing code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi greate guys, I want to use winslock to write a program that can transfer audio and visual data btween two systems
kindly direct me on the best approch
just chris
chris
|
|
|
|
|
That's a little vague. Where do you need direction? Are you already competent with Sockets, but need direction on audio and video streaming algorithms? Or do you already know about audio and video streaming algorithms, but need assistance with Sockets?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
My major stress is the algorithm to streming video and audio data but i need useful tips on how to configure the socket so that everything will be alright
i am but a baby programmer still in school ,so kindly do justice to my stress
chris
chris
|
|
|
|
|
|
Forum Visual Basic / VB.NET
Subject: Re: video confrence
Sender: sirChris
Date: 20:41 2 Jul '04
I greate guys, I want to use winslock to write a program that can transfer audio and visual data btween two systems
kindly direct me on the best approch
just chris
chris
|
|
|
|
|
Visit avphone home:
http://www.banasoft.net/AVPhone.htm
|
|
|
|
|
hi all :,)
Can i use a c# application as a part of vb.net application ??
Is the compilation of the c# part must be done with the vb part ??
How ??
Thnx alot
|
|
|
|
|
AbuFahed wrote:
Can i use a c# application as a part of vb.net application ??
Yes.
AbuFahed wrote:
Is the compilation of the c# part must be done with the vb part ??
No, the C# part and the VB.NET part are compiled into different assemblies.
AbuFahed wrote:
How ??
Add the C# part to a solution. Add the VB.NET part to the same solution. If the C# part uses code in the VB.NET part then add a reference to the C# part referencing the VB.NET Project, and vice versa.
Does this help?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
My Blog
|
|
|
|
|
Hi i am new to vb .net and i don't know why when i load a transparent 32 bit png in a picturebox the transparent part of the pic remains visible like th e background color of the picturebox
I want to see only the pic and then i set at the form proprieties the transparent color white and the picturebox back color to white too. But i still see the background white but the form dissapears
Is tha transparency color stuff only for the form ? Not for the controls too?
Thanks for the replys!
|
|
|
|
|
Instead of using Form's Transparency key, use the MakeTransparent method of Bitmap class like this. It works fine.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
Dim img As Bitmap = CType(Me.PictureBox1.Image, Bitmap)<br />
img.MakeTransparent(img.GetPixel(0, 0))<br />
End Sub
|
|
|
|
|
In VB.net could someone tell me how, if it is possible,to add icons next to a Menu item.
|
|
|
|
|
The MenuItem Class does not automatically support icons You have to set .OwnerDraw() property to true, and handle the MeasureItem (setting the size of the item) and DrawItem (drawing the item) events.
Instead of doing that for every MenuItem on your form, you can make a class inheriting from MenuItem, that automatically sets OwnerDraw to true, and draws the item with it's icon. Here is an example someone has posted to this site. Working with OwnerDraw Menus in VB.NET
|
|
|
|
|
i have created a vb .exe file which creates a mschart using mschart control utility .... i need to copy the output of mschart to .bmp without using clipboard... becoz it displays error "Can't open clipboard" ... also cleared clipboard before using it... but still no use... so i want to directly store the mschart into .bmp without using clipboard.... please help.....
|
|
|
|
|
Dear guys,
Good afternoon! We are currently using VB.NET as our programming language and MS SQL Server as our database. I just want to ask how can I save a database file using a VB.NET code and not the interface or functionalities of MS SQL Server?
Thanks... More power....
len_ems
|
|
|
|
|
len_ems wrote:
I just want to ask how can I save a database file using a VB.NET code and not the interface or functionalities of MS SQL Server?
This doesn't make any sense. Save what database file? SQL Server maintains it's own files completely isolated from your VB code.
Are you asking how you can create your own database file to maintain data in your app? Have you looked at XML?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you mean saving the *.mdf file of the database to another location, try this:
<br />
dim source as string = path_to_mdf_file\*.mdf<br />
dim dest as string =path_to_copy_to\*.mdf<br />
'last parameter determines whether to overwrite an<br />
'existing file or not<br />
system.io.file.copy(source,dest,true)<br />
|
|
|
|
|
Good afternoon...
I'm sorry if my query is vague. I just want to save or backup my database or database file by using a VB.Net code. It's just like backuping a file to a destination. But I already found a code for that and it has a lot of features like : login to MS SQL Server; backup, restore and repair databases; upload and delete databases; checks connection; controls server; etc...
Thank you for your advices...
|
|
|
|
|
Ok, I am about at the end of my rope here. Been looking at this code for hours and can not see what is wrong with it.
I have an object saved to a file using Binary Serialization. The file has also been DES encrypted (it is a license file).
The problem get sall the way down to where I am deserializing the MemoryStream to my variable:
Private m_designtimeLicense As New DesigntimeLicenseToken
. . .
DataFile = New FileStream(filename.ToString, FileMode.Open, FileAccess.Read, FileShare.Read)
desCrypt.Key = arrKey
desCrypt.IV = arrVector
desDecrypt = desCrypt.CreateDecryptor
cryptoStream = New CryptoStream(DataFile, desDecrypt, CryptoStreamMode.Read)
arrHoldtxt = New BinaryReader(cryptoStream).ReadBytes(DataFile.Length)
MemoryStream = New MemoryStream(arrHoldtxt)
BinaryFormatter = New BinaryFormatter
MemoryStream.Position = 0
Select Case mode
Case ValidationType.Designtime
m_designtimeLicense = BinaryFormatter.Deserialize(MemoryStream)
Case ValidationType.Runtime
m_runtimeLicense = BinaryFormatter.Deserialize(MemoryStream)
End Select
BANG! The code dies right at the first case with InvalidCastException.
I KNOW this code works because I can use the EXACT SAME CODE to open the EXACT SAME FILE and display it in the application that I wrote to create the license files.
The DesigntimeLicenseToken object is a class that I have in a completely separate assembly (so the serialization works) and it has a static version (again to the serialization has no version related issues). It’s interface has not changed at all since I started the project so it can’t be related to that.
The other kicker here is that I use the EXACT SAME CODE to deserialize another object that I use for runtime license and it works NO PROBLEM!
This code only has a problem when it is part of the constructor of a Usercontrol and gets run when I drag a copy of the Usercontrol onto a form, so it is running with the IDE in design time mode making it a PITA to debug.
Does anyone have any ideas?
I checked the types of both the variable (m_designtimeLicense) and the memory stream being deserialized and they are the same. At least they have the same full name so I have to assume that they are the same.
If I deserialize to a generic object:
Dim obj As Object
obj = BinaryFormatter.Deserialize(MemoryStream)
It does not complain. That seems really odd to me. If I then try to convert obj to DesigntimeLicenseToken the cast fails again.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|