|
recall the function after the data add.
Lisa
-- modified at 8:51 Monday 8th May, 2006
|
|
|
|
|
I was wondering if anyone out there knows of an algorithm to generate unique alpha-numeric keys for database use.
|
|
|
|
|
you can use Guid
see on the net
|
|
|
|
|
Hi all,
I'm posting on behalf of a colleague who's a bit stuck at the moment.
Working in VBA/VB.Net, he's saving an image with alpha info to a PNG via the Export function.
Problem is that the resulting PNG is still a bit big, and the Adobe SVG Viewer does not display it properly.
The solution is to have the PNG indexed with the transparency kept (it works from Photoshop). But he can't find a way of doing it in VB! And the frustrating part is that PowerPoint does it well with the 'save image as...' function.
Would anybody know how to do that, or where to look?
Thanks!
... Alex ...
|
|
|
|
|
The last I heard, Indexed images were not support in the .NET Framework 1.0 and 1.1. This could be different in 2.0 though...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Bummer!
Would you know of a workaround / third party app that would handle it?
Thanks for replying!
... Alex ...
|
|
|
|
|
Never had to use one so I never had to look...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How do I remove a hyphen from a text?
I'm retrieving the value from a textbox. The value, for example is 567-343, how do I get rid of the hyphen? The trim("-") function doesn't work on this value.
Thanks!
|
|
|
|
|
Trim only removs the specific char from start and end of the string.In order to remove the char inbetween the string you can use split method or regular expression.I think in your case split method should be good enough.you can refer this code segment
Dim FinalString as String
Dim ActualString as String ="567-343"
Dim splitString() as String=ActualString.split
'this returns an array of String
Dim i as integer
For i=0 to SplitString.length-1
if not(SplitString(i)="-") then
FinalString=FinalString & SplitArray(i)
end if
next
Hope this Helps
Mandar Patankar
Microsoft Certified professional
Today Was not that Good..But I got tommorow..
|
|
|
|
|
Dim yourString as String = "567-343"
yourString = Replace( yourString, "-", "" )
Have a wonderful evening
Doug Wright
Developer, TDCI
|
|
|
|
|
who know how to plot graph in vb.give me sourcecode or example to plot graph and sourcecode for serial port in vb
|
|
|
|
|
Hi all!
I´m newbie using Vbasic. I need to make a macro for Excel, which
shows a form asking for a numeric value in a Textbox.
I convert the Textbox content to long with CLng() function.
<br />
Dim longval As Long<br />
longval=CLng(TheTextBox.Text)<br />
But this function crashes if the content of the textbox is alphanumeric.
How can I check that the value entered is only numeric?
Is there any function like "IsDigit" or something?
or
Is there any Textbox property to force only numeric content?
Thanks a lot.
|
|
|
|
|
If IsNumeric( TheTextBox.Text ) Then
longval = CLng( TheTextBox.Text )
Else
longval = SOME_DEFAULT_VALUE
End If
- dougw48
dwright@tdci.com
|
|
|
|
|
Thanks for your help!!
|
|
|
|
|
How can we go about creating a sleek GUI like those of Apple iTune player, QuickTIme Player, Media Player, RealPlayer etc with custom buttons, background shade etc ?
I certainly hope thats possible in VB6.
|
|
|
|
|
mecracked wrote:
I certainly hope thats possible in VB6.
Possible, but not easy. You essentially have to create all the forms and custom controls from scratch, ownerdrawing nearly everything. Something VB6 doesn't lend itself to easily and you'll find less and less help for this project on the web.
It would be much easier to do in C++, C#, VB.NET, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i'm a beginner user of vb.net.. i doing an application recently but i facing some of the problems. The problem is i don't know how to display the data from database and display it on the data grid so can anyone expert teach me how to do it?
|
|
|
|
|
see first thing you have to connect with the database and get the data from data u can get through dataAdapter.Then if u desugned dataset in ur app fill the dataset table with dataadapter then give the datasource for datagrid as dataset table
see the code as foows
Dataadapter.Fill(dataset.datatable)
Datagrid.DataSource=Dataset.datatable
U can directly also fill table
|
|
|
|
|
Hello everybody. I am having a problem with the picturebox control. I need to be able to print the containts of the picture box to a printer. I can't find the way to do it. I have a printPreview control which i can make to show the paper but i can't put the image in it and thus i can't make it to print.
I use e.Graphics.DrawImage(PictureBox1.Image, 0, 0) which puts the image in the paper, but not where i want it. I need the width of the image to fit to the width of the page between the margins, and the height of the image to be proposinal enlarged, or reduces so it follows the original aspect ratio of the picture. The origin of the picture to be in the corner of the top and left paper margin.
Arggg!! Any help! Pleeeeazeee!!
Trying to find the way
|
|
|
|
|
|
I created project using Remoting.
I created a Remoting Object have 2 function: one return a String and one return a Bitmap. The first function is Ok, but the second is not Ok. The Error occur that " Remoting cannot find field nativeImage on type System.Drawing.Image"
How can I do?
Can you help me! Thanks.
quangthien
|
|
|
|
|
Hi,
I am looking for a way to change a file's permission so that users does not have any access to the file. I would do this through code.
Any suggestions?
Thanks,
|
|
|
|
|
File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden)
You can set whatever attributes you like, but you can't cause users who go looking to be unable to access the file, unless your program is logged in as admin, and they are not.
BTW, that C# code above, you'll have to convert it ( change | to OR, etc )
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
Thanks for the reply Christian. I came accros FileIOPermission in VS.NET help. Could this be use to accomplish what I want to do? I tried the following but it had no impact as far as I can tell.
Dim fileIOPerm1 As FileIOPermission
fileIOPerm1 = New FileIOPermission (FileIOPermissionAccess.NoAccess, "D:\test.txt")
fileIOPerm1.AllFiles = FileIOPermissionAccess.NoAccess
Thanks,
|
|
|
|
|
The MSDN on this is here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritypermissionsfileiopermissionclasstopic.asp[^]
Personally, I'm not sure how it could work globally - on what basis are you providing this permission ? Surely if you removed access to all files across all of Windows, the OS would crash and you'd never be able to log in again ?
Reading it, I think it allows you to specify what files the currently logged in user can access via operations of the File class, i.e. within your code only. That makes sense to me.
Making the files hidden is the best you're going to do IMO. If you deny them access, how is your code ( which runs under their security ) going to read or use it ? If the file is hidden and they find/mess with it, it's their problem. Hell, even if it wasn't hidden, it's their problem.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|