|
Hi,
I have a very "simple" problem, but i dont know how to sove it. I want to show a contextmenu, where one menu item is a textbox (ex. Right click on a cell of a open access table in access).
Can anyone help me?
almigrp (Misel)
|
|
|
|
|
Hello,
how can I create a VB.NET project who add features (as add-in for example) to Excel ?
Best Regards
Alfredo DS
Alfredo DS
|
|
|
|
|
For Office 10 use the Office Primary Interop Assemblies provided by Microsoft.
|
|
|
|
|
I am trying to call a VB dll from ASP.net code behind. This is fine.
Then, this DLL calls a function of VB ActiveX exe. This is where application breaks. It says some "Security Exception" issue.
Have any one faced this issue? Please suggest what should be done to resolve this. Thanks
~~~~Pankaj~~~~
Follow your goals, Means will follow you ---Gandhi---
|
|
|
|
|
dear all,
seems i'm stuck.......i want to sort a string array of file names (full paths with extension) based on file extension
any ideas what i gotta do?
thanx and regards
rIsHaBH
|
|
|
|
|
Just an idea, but not necesserily the solution: what about sorting based on
Right(strString(i), 3)
Paul
Live in such a way that you would not be ashamed to sell your parrot to the town gossip. - Will Rogers
modified 18-Jul-18 11:59am.
|
|
|
|
|
Hello!
I'm trying to find a way to create several instances of a module class that represents for example a shape, then setting a variable to that module class i could change its properties and so on..
Is this possible in Vb6?
Thank you in advance
|
|
|
|
|
I could be wrong but I thought that a module was like a class where all the members and properties were shared. If this is correct then any instances would have the same properties, change the value of one and the property changes in them all.
I think you should just use a normal Class and create multiple instances. This way the properties and members are not shared by instances.
Hope this helps.
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
LearnVisualStudio.Net
|
|
|
|
|
how to get sounds effects to my programin VB6
example : when i press a button a song plays and so on
BUT without running its program(winamp,windows media player,...etc)
please reply to me
ahmed
|
|
|
|
|
Try the sndPlaySound()[^] API.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
i can't seem to find this on the web. How do you not only connect to a sql database with vb.net but i need to know how to execute sql statements. Some return values other do not(like a select and a delete for instance)
|
|
|
|
|
|
I am trying to build a web service that downloads a file to my local directory.
I have the basics here but I just cannot get it to work, anybody know of any examples on this. Here is my code so far.
<br />
Dim l_oWR As WebRequest<br />
Dim l_oWebResp As WebResponse<br />
Dim l_oBR As BinaryReader<br />
Dim l_oBW As BinaryWriter<br />
Dim l_oStream As Stream<br />
Dim bFile() As Byte<br />
Dim l_iCnt As Long<br />
Dim l_dtNow As DateTime = DateTime.Now<br />
Dim l_sDir As String = l_dtNow.ToString("MMddyyyy")<br />
Dim l_oDir As Directory<br />
Dim l_sFile As String<br />
Dim l_sCnnStr As String<br />
<br />
Try<br />
<br />
'download file<br />
l_oWR = HttpWebRequest.Create("http://www.abc.com/abc.exe")<br />
l_oWebResp = l_oWR.GetResponse()<br />
l_oBR = New BinaryReader(l_oWebResp.GetResponseStream(), Encoding.ASCII)<br />
l_iCnt = l_oWebResp.ContentLength<br />
bFile = l_oBR.ReadBytes(CType(l_iCnt, Integer))<br />
If Not System.IO.Directory.Exists("C:\ofac") Then<br />
System.IO.Directory.CreateDirectory("C:\ofac")<br />
End If<br />
l_oStream = New FileStream("C:\ofac\t11sdall.exe", FileMode.Create, FileAccess.Write)<br />
l_oBW = New BinaryWriter(l_oStream)<br />
l_oBW.Write(bFile)<br />
Thanks for any help here!
Jordan
|
|
|
|
|
i have a problem in the moment execut my program after installing my setup, say Registered JIT Debugger is not Available,Cordbg,exe, i use crystal report in my porgram, when I don't use, works well, any personsa that I can help.
Tanks
|
|
|
|
|
Hi
Anyone used the DataGridEx control (Article here)? I've formatted a column with a style, and the print facility ignores the style.
Any advice? Thanks
Bernhard
Don't worry, nobody lives forever.
|
|
|
|
|
In my program I want the user to write in a TextBox. Then I want to check if the input contains only a numerical value. How can I do this?
//OT
|
|
|
|
|
If you want to convert a string to an int use Int32.Parse(mystring). If you want to validate input (requiring numeric values only, for instance) use regular expressions.
|
|
|
|
|
Just something like this will work:
If IsNumeric(Textbox1.Text) Then<br />
' Value entered is a number<br />
End If
|
|
|
|
|
hey i have a project where i need to read from a text file but i will never know how long it is. It is basically a list of numbers. I read them in and store them in a collection but how do i know when the end of file is? this is in VB.Net
|
|
|
|
|
this should help , make sure to put your text file's location where it currently says C:\mytest.txt .
VbCode:
<font color="blue">Imports</font> System.IO <br> <font color="DarkGreen">'/// at the top of your form's code window ^^^^. <br></font> <font color="DarkGreen">'///////////////////////////////////////////// <br></font> <font color="blue">Private</font> <font color="blue">Sub</font> Button3_Click(<font color="blue">ByVal</font> sender <font color="blue">As</font> System.Object, <font color="blue">ByVal</font> e <font color="blue">As</font> System.EventArgs) <font color="blue">Handles</font> Button3.Click <br> <font color="blue">Dim</font> sReader <font color="blue">As</font> StreamReader = <font color="blue">New</font> StreamReader(<font color="blue">New</font> FileStream("C:\mytest.txt", FileMode.Open, FileAccess.Read)) <br> <font color="blue">Dim</font> x <font color="blue">As</font> <font color="blue">Integer</font> = sReader.BaseStream.Length <br> MessageBox.Show("The Length of the text file is: " & x & " Characters") <br> While Not sReader.Peek <br> Console.WriteLine(sReader.ReadLine) <br> <font color="blue">End</font> While <br> sReader.Close() <br> <font color="blue">End</font> <font color="blue">Sub</font> <br>
hope that helps
Vb:
<font color="blue">Public Function</font> TwinsOnWay(<font color="blue">ByVal</font> twins <font color="blue">As String</font>) <font color="blue">As String <br> Select Case</font> twins<br> <font color="blue">Case</font> "Gender" <br> <font color="blue">Return</font> "Two Girls" <br> <font color="blue">End Select <br> End Function</font> <br>
|
|
|
|
|
How do you "auto-scale" data points on a graph?
the data will be received at a constant frequency.
I will be receiving data from a CAN/bluetooth gateway on a vehicle.
How do I go about graphing and receiving those data points and putting them on both a line and bar graph?
Thanks.
|
|
|
|
|
Hi,
I hope someone out there may be able to help. I have a WebBrowser control written in VB 6.0 that acts a Internet viewer but with most of the normal Internet functionality removed so people can not play around with the system. This is opened by clicking on an icon that appears on a Windows shell. This has been written again to stop people moving around the Windows NT 4.0 system. when the user clicks on the viewer it opens up and displays the home page, which then asks for a login (through IIS). Once logged in an ASP page starts up and tries to get the focus, but unfortunately it is still with the underlying viewer. Is there any way to set the focus to the ASP page. The two applications are separate.
Also in VB 6.0 is there a way to get the username that is entered when IIS displays the login box. In ASP you can use ServerVariables("LOGIN_NAME"), but I don't seem to get anything back when I set this up in my code.
|
|
|
|
|
Hi,
try this with Windows XP or Window 2000:
1) create new windows application project.
2) Start debug.
3) press ctrl + Alt + Delete
4) Task manager
5) view the memory used by you application, it is 11 Mb.
And if you add a simple dbconnection with dataadatper the memory used is ~24Mb.
Is there a way to reduce the memory used by the application?
In my application with simple 5 form it use 75 Mb of memory.
It is too much. confused:
Max
|
|
|
|
|
The task manager shows your working set, which isn't the same as the memory load of your process. The .NET Framework is included in that lot, as well as anything else which happens to be shared. Try pview for more accurate stats.
--
Ian Darling
|
|
|
|
|
Contrary to popular belief, automaticall memory management in .Net is not equivalent to 100% total resource clean up. Coders still have the responsability of freeing some resources through the Dispose() method.
Use dispose whenever available if you want to reduce memory footprint and avoid thoses cases where Net programs' memory usage continuously grows over time. (A five form program should never reach 75 Mb (unless it deals with very large quantities of data like uncompressed 20MB+ images) if coding practices are good.
Also, try minimizing the form in your example and see how much memory it is using (much less). This happens because at startup your program is assigned a large working set to account for any initialization the CLR and associated dlls might need.
|
|
|
|