|
Simple, Just use loop (i.e. For loop) to increase size
exa:
For i As Integer = 0 To 200
control.Size = New Size(i, i)
Next
|
|
|
|
|
Bad idea considering the form wil not redraw until the loop is finished.
|
|
|
|
|
thks for ur reply,i want to show the preview of an image on mouse hover and it must not come at a once but as slowly increasing its size ,can i get it ..pls help me
|
|
|
|
|
Put a Timer on your popup form, set it's Interval to whatever you want. Handle its Tick event and change the Size propetry of the form in smallish increments. When it reaches your desired size, Stop the Timer.
|
|
|
|
|
i used tried like tis
Private Sub PictureEdit1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) Handles PictureEdit1.MouseHover
Dim PicPath As System.Drawing.Image = PictureEdit1.Image
PictureEdit2.Image = PicPath
PopupContainerControl1.SetBounds(Control.MousePosition.X, Control.MousePosition.Y, 0, 0)
Timer1.Start()
Timer1.Interval = 3000
End Sub
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer
For i = 0 To 200
If Not i = 200 Then
PopupContainerControl1.Size = New Size(i, i)
PopupContainerControl1.Show()
Else
Timer1.Stop()
End If
Next
End Sub
But popup was shown at the end and not from the intial size so it didnt looked animated...i am not familiar with timers pls help me
|
|
|
|
|
i also tried tis
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer
If Not i = 200 Then
PopupContainerControl1.Size = New Size(i, i)
PopupContainerControl1.Show()
Else
Timer1.Stop()
End If
i += i
End Sub
|
|
|
|
|
Both code snippets are wrong. The first one you posted would take 3000 milliseconds (3 seconds) per iteration of that loop you put in, which you don't even need!. So, doing the math, that would be about 10 MINUTES to resize the window.
This second code snippet will never reach 200 because you keep re-declaring i , reverting back to 0 every time you enter this loop. It never really tracks what the current size of the window is and add to it.
First, change the Timer interval to something like 100 milliseconds, then, in your Timer tick, add about 40 to both the width and height of the control. That will resize the window in 5 steps in 500 milliseconds (half of a second).
Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
With PopupContainerControl1
Dim newSize As New Size(.Size.Width + 40, .Size.Height + 40)
.Size = newSize
If newSize.Width = 200 Then
Timer1.Stop()
End If
End Width
End Sub
|
|
|
|
|
for the understanding i developed a simple webservice with add function.when i get the result it should be a message of SOAP format but i get only the result.
the tags like soap-env, body are not there , is there any way to retrieve the complete message.
|
|
|
|
|
|
Hi,
anyone can help for text file spliting ? issue is the text file is big in size and we need to remove first few lines for before we start spliting the file since it contains some header information such as date , time , file name etc say about 6-7 lines. so its creating problem otherwise all data with header line is in tab delimated format or any way we can skip those file using any script or remove them from the text file and create new text without header info.
with regards
|
|
|
|
|
hi guy,
1.) create a new textfile with System.IO.TextWriter stream.
2.) read your textfile with a System.IO.TextReader -> ReadLine() till you skipped your headerfile at i.e. line 6-7 in a loop while ((line = textReader.ReadLine()) != null) (count up to the line you want or check till your expected line reached...
3.) after you skipped the lines you want to, write all the following read lines to the textwriter stream -> textWriter.WriteLine(line)
4.) done reading the needed information close the textreader and textwriter -> .Close()...
5.) Finished
sooo far good luck
|
|
|
|
|
Thanks , but the thing is file size is around 30 GB , so reading is slow and i want to split the file over a line no how can it be possible.
with regards
|
|
|
|
|
What are you doing with the file? If you're loading data into SQL Server with bcp, it can skip lines "[-F firstrow]"
|
|
|
|
|
could you please provide step on how to load in sql using -F first row , i tried but since the first few rows are not as header i mean they don't have tab seperated values they are just simple text where as the other lines in text file is tab seperated.
|
|
|
|
|
As I recall, it just tells bcp to skip some number of rows. Read the documentation and try it.
|
|
|
|
|
if you alternative please suggest , documentation is already through no solutions
|
|
|
|
|
Hi,
This Can Be done using String.Split('n')
i.e first read the content into a string say S then
String[] lines=S.Split('\n') will give you lines in the file.
|
|
|
|
|
Hi,
This Can Be done using String.Split('\n')
i.e first read the content into a string say S then
String[] lines=S.Split('\n') will give you lines in the file.
|
|
|
|
|
Hi,
I would write and read HttpWebRequestStream asynchronously, but looks like the stream does not have BeginRead method.
HttpWebRequest webRequest = (HttpWebRequest)System.Net.WebRequest.Create(url);<br />
<br />
webRequest.Method = "POST";<br />
webRequest.ContentType = "application/x-www-form-urlencoded";<br />
webRequest.SendChunked = true;<br />
webRequest.KeepAlive = false;<br />
<br />
MemoryStream ms = AddPostKeys(postKeys);<br />
totalSize = (int)ms.Length;<br />
webRequest.ContentLength = totalSize;<br />
Stream requestStream = webRequest.GetRequestStream();<br />
chunkSize = Math.Min(204800 , totalSize);<br />
if (ms != null) requestStream.BeginWrite(ms.ToArray(), 0, chunkSize, WriteCallback, requestStream);
I want to read this stream after each beginWrite. Basically I want to update UI as data is written to the request stream.
Thanks,
Veena
|
|
|
|
|
Hi there, I just need to edit the query below, i'm aware that the best place to edit the where clause is on the Select Expert, however that wont work for me.
I just need to remove the * on the where clause below
SELECT
InvoicesCreditsOrders.TypeOfReport, InvoicesCreditsOrders.Isbn, InvoicesCreditsOrders.CustNo, InvoicesCreditsOrders.CustRef, InvoicesCreditsOrders.OrderDate, InvoicesCreditsOrders.InvDate,
CustMaster.Custno, CustMaster.Custname, InvDelAddr.DelivCustname
FROM
CATAPULT.dbo.InvoicesCreditsOrders InvoicesCreditsOrders,
CATAPULT.dbo.ItemMaster ItemMaster,
CATAPULT.dbo.CustMaster CustMaster,
CATAPULT.dbo.InvDelAddr InvDelAddr
WHERE
InvoicesCreditsOrders.Isbn *= ItemMaster.Isbn AND
InvoicesCreditsOrders.CustNo *= CustMaster.Custno AND
InvoicesCreditsOrders.ProcessNo *= InvDelAddr.ProcessNo AND
InvoicesCreditsOrders.DeliveryNo *= InvDelAddr.DeliveryNo AND
ItemMaster.Filename = 'SA' AND
InvoicesCreditsOrders.TypeOfReport = 'INVORD' AND
(ItemMaster.StockReport = 'RSL' OR
ItemMaster.StockReport = 'PST' OR
ItemMaster.StockReport = 'O/P' OR
ItemMaster.StockReport = 'NRR') AND
CustMaster.Company = '03'
ORDER BY
CustMaster.Custno ASC,
InvoicesCreditsOrders.CustRef ASC,
InvoicesCreditsOrders.Isbn ASC
Please assist.
|
|
|
|
|
For some reason i am getting this exception in the event log. Please help me what could be the reason?
I tried to search for this issue on google but couldn't find related topic.
Exception:
----------
Index was outside the bounds of the array.
at System.Collections.Stack.Pop()
|
|
|
|
|
You might get very, very lucky and find somebody that knows what the hell you are talking about.
On the other hand you might try to reword your question so that it makes sense.
Event log - of/for what?
What is the code that causes this.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
|
You've successfully failed your own test.
|
|
|
|
|