|
I am writing a DB program which have to be deployed on a network> I am using VB. I heard from someone that i can use a INI files, which will make it possible to move the DB without having to rewrite the program. Can anyone tell me how to do that.
THANX.
|
|
|
|
|
Hi
if you want to use ini-files, try seek for GetPrivateProfileString and WritePrivateProfileString in help-index.
Kind Regards
Thomas Vanting
|
|
|
|
|
Vanting,
I tried but i dont understand how it works. Because i put the declaration in my form_load and get an error, then i declare it in the general section same problem. What next.
Please advice details.
|
|
|
|
|
Hi,
I am new in VB.net. I have a problem while debugging a windows application, which will read a bmp image and save it after processing. I used the following code
//Opening an image
private sub button1_click (Byval sender as object,Byval e as system.eventergs)
dim odlg as new openfiledialog()
odlg.filter = "Bitmap(*.bmp)|*.bmp"
if (odlg.showdialog=dialogresult.ok) then
picturebox1.image = image.fromfile(odlg.filename)
picturebox1.invalidate()
end if
end sub
//Saving an Image
private sub button2_click (Byval sender as object,Byval e as system.eventergs)
dim sdlg as new savefiledialog()
sdlg.filter = "Bitmap(*.bmp)|*.bmp"
if (odlg.showdialog=dialogresult.ok) then
picturebox1.image.save(sdlg.filename)
picturebox1.invalidate()
end if
end sub
While I open an image "b.bmp" and after processing it want to overwrite the same an error occurs, saying:
"An unhandled exception of type
System.Runtime.InteropServices.ExternalException occurred in System.Drawing.dll
Additional information: A generic error occurred in GDI+."
What should I do now, how can i overcome this problem?
Please help me. Thanks in advance.
Anindya Chatterjee
|
|
|
|
|
This code works fine for me. I was able to open a bitmap using button 1 and
when i click on Button 2 i was able to save the image with the new filename.
The only change i did was in Button 2 code, you have the 3rd line
****if (odlg.showdialog=dialogresult.ok) then****
i made it to ***if (sdlg.showdialog=dialogresult.ok) then***. Jope it was a typo error.
|
|
|
|
|
Hi
I am trying to print to a dot matrix printer from VB.Net windows application. I haven't found one example on how can I do this. I know that with VB 6.0 you can set the X and Y co-ordinates and then send a string to printer. I need some sample code. I do know that I should be using the PrintDocument object in combination with the Graphics object. An example would help a lot. I tried but I am not sure how to specify the X,Y co-ordination for each type set.
|
|
|
|
|
|
I know that artical because i wrote that
i know raw data printing but i heard i can achive this, using printDocument object
|
|
|
|
|
How can I change the column names in DataGrid to be different from the names of table columns?
|
|
|
|
|
The property you're looking for is HeaderText
You can also point your help to:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VSADD.v10.en/dv_vstechart/html/vbtchFormattingWindowsFormsDataGridVisualBasicPrimer.htm
to have a complete overview of columns formatting.
|
|
|
|
|
I've developed small applications for my friends to help them in some of their tasks. However, when I gave them the exe file, there seems to be an error that pops up. One said that there was a problem in executing the code, and another doesn't have the permission to execute a web request. Most of the code samples I've found has to do with ASP. I hope someone can help or point out to me with how to code permissions or exceptions into VB .Net code. Thanks in advance.
|
|
|
|
|
How about posting the exception data here so we can see it?
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.
My Blog[^]
|
|
|
|
|
Sorry for the late update. This is the message box that gets displayed:
"The application attempted to perform an operation not allowed by the security policy. The operation required the SecurityException. To grant this application the required..."
I want to allow normal users to use this program. Not sure how to go about this. I want it to be done via the code and not through giving permissions from manage users.
|
|
|
|
|
could anyone can guide me if i want to display a bar chart by using the VB ?
|
|
|
|
|
Normally, I use third party controls which are available from Infragistics www.infragistics.com. You could use ultrawinchart for windows and ultrawebcharts for the web development.
|
|
|
|
|
hi,
1st of all, i like to say thx to you. but i have search on that web-site, i can't find the ultrawinchart ?which software i have to download? howabout i tell you what i want ? 8tually i'm writing a program (using the VB6) which is a SMS voting system. the system will collect the sms vote and then display out a bar chart. So, could i draw out a bar chart using by the VB6? is it necessary need others drawing software?
|
|
|
|
|
The following code works in VS 2005 / VB .Net, however it says myengine declaration ..... is obsolete in VS 2005. Could any one let me know the better approach to evaluate the expression in VS 2005.
Thanks
Prem
Dim sExpression As String = "1 + 1 "
Dim myengine As Microsoft.JScript.Vsa.VsaEngine =
Microsoft.JScript.Vsa.VsaEngine.CreateEngine()
Dim oResult As Object
oResult = Microsoft.JScript.Eval.JScriptEvaluate(sExpression, myengine)
MsgBox(oResult)
|
|
|
|
|
Hi,
I am a newbie to VB.NET and I'd like to create a project containing a web browser window. I used to play a little with vb 6 in the past, but it's quite long time. I remember there was some object like webbrowser window... is this possible also in vb.net? I couln't find it
|
|
|
|
|
Hi there,
To see this control, you have to add the Microsoft web control into the toolbox dialog.
Just simply open the Customize dialog toolbox and select the control in COM Components tab (Actually it is the shdocvw.dll)
<< >>
|
|
|
|
|
I want to write a small vb program that processes image files marked with one of the flags provided by Microsoft Digital Image. These flags (6 are provided) are stored with the jpg but apparently not as part of the PropertyList list. Does anybody know how to access these flags?
A R
|
|
|
|
|
Hi there,
Basically,if you know how many bytes used to store these flags and which one is the begin byte???
if so, just simply read the image as a stream of bytes into memory...
<< >>
|
|
|
|
|
Would like sample of codes to connect a form created in visual studio with a table in microsoft access.
So that when i add data using the form , data is entered to the access table .
Regards
Joseph
ffffffffffffffffffff
|
|
|
|
|
Hi there,
Usually in .NET env, the ADO.NET technology is used to access to database. So u might take a look at what the ADO.NET is first, then try to pratice with some samples there ADO.NET
<< >>
|
|
|
|
|
Hi! There,
Thanks for your assistance.
I've been looking for Visual Studio 6.0 from the internet to download but in vain do you have a idea where?
Secondly,am new in VB.Net, and would like to learn from those experienced persons. Would you list fo me the courses which you went through before you became a programmer upto what you're doing now? I would really appreciate.
Thanks in advance.
Regards
Joaseph.
ffffffffffffffffffff
|
|
|
|
|
Hi there,
Jkkenzie wrote: I've been looking for Visual Studio 6.0 from the internet to download but in vain do you have a idea where?
Why don't you move to the next generation VB.NET??? You might ask the Uncle Google to get the cracked one or contact with Microsoft to purchase...
Jkkenzie wrote: Would you list fo me the courses which you went through before you became a programmer
Actually, I just took part unit studies in my university and they didnt teach me about VB (just learn it myself... They just taught about basic concept: focus on C++, OOP, algorithm)
You will get a ton of this stuff from uncle Google VB.NET books
or this site might be good Programmer World
And post questions here if getting stuck, CPians are happy to help others
Now, I focus on ASP.NET with C# as code-behind....
Happy coding....
<< >>
|
|
|
|