|
It is possible that you will need to learn all of them but you can focus on two or three and it all depends on what you are comfortable with. I suggest start to learn HTML then ASP.net and since you already know VB.net use this as your code behind language or more popular c# if you want to learn. Not really much to it since you already know how to code. You should also learn javascript for cleint side coding. Pick up an html and asp.net book and navigate the pages of CP.
|
|
|
|
|
Has anyone ever tried to code a piece of software to browse his bank(hsbc for instance) accounts, buy sell stock shares thru this software. This software is not meant to be only with ASP.NET, it can also be built using MFC or any other related libraries of .NET framework or previous Microsoft related libraries. I have got a similar piece of code in Java, however I would like to study its .NET version, what would it be like and what libraries of framework would be used, what methods be called to make a connection to the bank's server, browse accounts and buy and sell stock shares. I am trying to code a non-asp version of it for http://www.hsbc.com.tr/. Does anyone have any idea. I would later automatize my buying and selling thru some technical indicators..
Thank you for any opinions..
born to ask
|
|
|
|
|
You say you have "a similar piece of code in Java." Does that mean that you have a working program that actually accesses your bank accounts and does what you want?
|
|
|
|
|
Well, yes. it is working piece of code(a bunch of classes) but going obsolete and needs to be updated. one of my friends coded it, did not continue to complete the backend decision making mechanism to decide when to buy/sell, what to buy/sell.
basically, it submits login, pass, pin number and makes a connection.
I dont know if the bank would provide me with an API to simplify my task, but i would like to know if anyone with background both in finance and programming ever tried to program such a code, any comment would be appreciated.
born to ask
|
|
|
|
|
hi,
i am able to capture image of a visible form,when i click on a button
the image of the form is saved.the problem is i have to do the same for a
hidden form,but i am not able to do it.what happens is this,when i click on
the button the form which is on the top its image is saved.i am using bitblt
for copying from hdc of form to hdc of bitmap.pls help me
thanks in advance (parag)
parag
|
|
|
|
|
This seems to be a popular question lately.
If it is hidden, it is not drawn at all. There is no "hidden grphics buffer" to BitBlt from. Therefore, there is nothing to capture.
Charlie
if(!curlies){ return; }
|
|
|
|
|
hi,
i am able to capture image of a visible form,when i click on a button
the image of the form is saved.the problem is i have to do the same for a
hidden form,but i am not able to do it.what happens is this,when i click on
the button the form which is on the top its image is saved.i am using bitblt
for copying from hdc of form to hdc of bitmap.pls help me
thanks in advance (parag)
parag
|
|
|
|
|
hi,
I want to store database info in backend. For that, I want to accept any proj name and then read all the form names in the proj. and again read all the control names from the form. we can read all the control names from the form but how to read form names from the proj.
can u pls help me.
|
|
|
|
|
I expect the project file ( which is XML ) will help you here.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
i have a png file which includes 20 different icon. i load it into a image variable but i have no idea how i can cut icons from there.
Example Code
Dim img As Image
img = img.FromFile("Icons.png")
'i need an method like Getimage (x, y, Width, Height) as image
dim newImg as Image
newImg =img.GetImage(x, y, Width, Height)
Any Idea? thanks.
|
|
|
|
|
Your GetImage function could look like the following:
Public Function Getimage(ByVal sourceImage As Image, ByVal x As Integer, ByVal y As Integer, ByVal width As Integer, ByVal height As Integer) As Image
Dim result As Bitmap = New Bitmap(width, height)
Dim g As Graphics
Try
g = Graphics.FromImage(result)
g.DrawImageUnscaled(sourceImage, -x, -y)
Finally
If Not g Is Nothing Then
g.Dispose()
End If
End Try
Return result
End Function
Havent tested the code but I think it should work. In general it just generates an empty Bitmap, creates a Graphics object and draws the original image at a location so that only the needed part is drawn.
There are probably more efficient ways out there, but it should do fine this way for smaller images.
|
|
|
|
|
I want to get hDC of a picturebox for stretchblt function.
API function --CreateCompatibleDC-- could not get the value.
Could you tell me how to do ?
Thanks!
|
|
|
|
|
is there a way to have atleast 2 deferent colors of text in one textbox?
this is for a chat server/client project and I want deferent colors for messages coming from the server ect...
thanks for the help
|
|
|
|
|
use RichTextBox and its SelectionColor property.
|
|
|
|
|
The TextBox doesn't support this. You'd have to come up with your own version of a Textbox control to do this. Or, like the other poster said, use RichTextBox instead. It supports the functionality you're looking for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
this is what i came up with but it doesent work
<br />
Friend Sub DisplayText(ByVal text As String)<br />
Try<br />
<br />
frmB.txtpbchat.SelectionColor = System.Drawing.Color.Navy<br />
frmB.txtpbchat.Text = text & Environment.NewLine & frmB.txtpbchat.Text<br />
<br />
Catch ex As Exception<br />
MessageBox.Show(ex.ToString)<br />
<br />
End Try<br />
End Sub<br />
|
|
|
|
|
fo0lish wrote:
frmB.txtpbchat.Text = text & Environment.NewLine & frmB.txtpbchat.Text
First, don't use string concatentation. Use the .AppendText() method of the RichTextBox. Second, position the insertion point to the end of the text before you call .AppendText() . If the insertion point is anywhere else in the text, the color won't be applied correctly.
This is an example:
RichTextBox1.SelectionStart = RichTextBox1.TextLength
RichTextBox1.SelectionColor = System.Drawing.Color.Blue
RichTextBox1.AppendText(text & Environment.NewLine & frmB.txtpbchat.Text)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I use API funcion -- StretchBlt -- to capture screen in VB 6.0 and succeed.
When I copy the code into VB.net, capture failed, nothing happened.
Here is some of the code:
Picture1.Scale(1.5F)
w = Picture1.Width
h = Picture1.Height
hdcScreen = GetDC(0)
r = StretchBlt(Picture1.Handle, 0, 0, w, h, hdcScreen, xSrc, ySrc, wSrc, hSrc, SRCCOPY)
Please give me some samples?
Thanks!
|
|
|
|
|
First, why are you using StretchBlt instead of BitBlt? Are you recaling the image for magnification purposes?
What does your code look like in VB.NET? We need to see the Declaration you used to import the StretchBlt function. Also, what are the variables you used in this code snippet defined as? 99.999% of problems calling API functions are caused by having an incorrect Declare statement and passing parameters incorrectly.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I do not know how to use BitBlt, only know StretchBlt function.
Here is the declaration:
Private Declare Ansi Function StretchBlt Lib "gdi32" (ByVal hDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
|
|
|
|
|
I am afraid the code is too long.
Sub CaptureScreen(ByVal Picture1 As PictureBox, ByVal xSrc As Integer, ByVal ySrc As Integer, ByVal wSrc As Integer, ByVal hSrc As Integer)
Dim w As Long
Dim h As Long
Dim hdcScreen As Long
Dim r As Long
Dim hMemDC As Long
'Dim bmp As Bitmap
Try
'bmp = New Bitmap(wSrc, hSrc)
'Picture1.Scale(1.5F)
w = Picture1.Width
h = Picture1.Height
hdcScreen = GetDC(0)
'hMemDC = CreateCompatibleDC(bmp.GetHbitmap)
hMemDC = GetDC(Picture1.Handle)
r = StretchBlt(hMemDC, 0, 0, w, h, hdcScreen, xSrc, ySrc, wSrc, hSrc, SRCCOPY)
Trace.WriteLine("Picture1.Handle=" + Picture1.Handle.ToString + " hMemDC=" + hMemDC.ToString + ",w=" + w.ToString + ",h=" + h.ToString)
Trace.WriteLine("hdcScreen=" + hdcScreen.ToString)
Trace.WriteLine("xSrc=" + xSrc.ToString + ",ySrc=" + ySrc.ToString + ",wSrc=" + wSrc.ToString + ",hSrc=" + hSrc.ToString)
Trace.WriteLine("r=" + r.ToString + vbCrLf)
Catch ex As Exception
MsgBox(ex.ToString, vbQuestion, "CaptureScreen")
End Try
End Sub
|
|
|
|
|
First, I didn't appreciate the "1" vote. All I asked you was why you were using StretchBlt and to see the RELEVANT parts of your code and I told you which parts those were.
Second, BitBlt is no different than StrechBlt. Actually, it's a bit simpler to use since there aren't as many parameters.
Third, the SDK documenation on both StretchBlt and BitBlt describe their parameters as HDC, which is just a 32-bit value that should be passed as an IntPtr, and int's, which in VB.NET are Integer types, not Long types.
The corrected Declare statement should look like this:
Private Declare Auto Function StretchBlt Lib "gdi32" ( _
hDC As IntPtr, x As Integer, y As Integer, _
nWidth As Integer, nHeight As Integer, _
hSrcDC As IntPtr, xSrc As Integer, ySrc As Integer, _
nSrcWidth As Integer, nSrcHeight As Integer, dwRop As Integer) _
As Integer
BTW: Parameters are passed ByVal by default. You don't need to specify it on every parameter.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want to synchronize two databases having the same schema at different locations. any body help me.
thanks
|
|
|
|
|
Access, mySQL, SQL Server, Oracle, ... ? Which database type?
Oracle and SQL Server has their own replication services that can do this for you. The others, you'll have to write the replicator yourself.
If your going to write it yourself, are your records timestamped? If not, you'll find it VERY difficult to know which records are more recent that the ones in the other database. You'll actually have to create another table in the database to hold the replication tracking information for each record.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want to synchronize two databases having the same schema at different locations. any body help me.
Aman
|
|
|
|
|