Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
N

Nader Elshehabi

@Nader Elshehabi
About
Posts
1.0k
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Coffee and Programming?
    N Nader Elshehabi

    Coffee is as important to me as water and air. Sometimes I shift my workload and priorities based on the availability of coffee. Now I'm in a long session so I'm moving to tasks with lower brain processing until a get a chance to grab a cup of coffee in the break to refuel. Most -but not all- of the recharge is actually psychic not due to caffeine. You immediately start to feel fresh again at the smell of your favorite coffee and even before you take your first sip. I know this may sound bad but considering that the human brain was not designed to handle this amount of processing and load it's quite natural to use chemicals that would increase the speed of signals in the brain -that's what caffeine actually does-. Another thing is that to the surprise of many people, coffee and chocolate are very healthy and beneficial to both the heart and brain. It's been proven in recent studies that caffeine aids in the prevention of heart disease and type II diabetes. The main downside of drinking coffee is that you should not drink it on an empty stomach to avoid the risk of having gastric ulcer. Also for patients with established hypertension; they may also have increase blood pressure due to coffee consumption. Last thing is that unlike many energy drinks; coffee and chocolate both are rich in antioxidants which are very critical for tissue regeneration and fighting aging -I'm not talking about wrinkles here people :)-.

    Regards:rose: --- How to edit any .NET program without having the source code Visit my blog Follow me on twitter

    The Lounge c++ question

  • SharePoint Deployment
    N Nader Elshehabi

    Hello Vishal, You can almost do anything you want in the FeatureActivated event, same as you would using PowerShell or Central Admin. First you have to determine your feature's scope. This will determine your Feature's parent in the event handle whether it would be of type SPWeb[^] or SPSite[^]. Then you'll use the methods in these classes to do whatever you want to. Now for your list: 1) Create sub site => Here is a nice article[^] 2) Create Web part pages => Perhaps you mean this?[^] 3) Deploy the web parts => You can add this directly to your feature, which by the way can be visual and non-visual 4) Add web part pages in the corresponding pages => Here is a sample article[^] 5) Create list. => You can add this directly to your feature

    Regards:rose: --- How to edit any .NET program without having the source code Visit my blog Follow me on twitter

    SharePoint sharepoint sysadmin tutorial question

  • what error ? no page suport the web site
    N Nader Elshehabi

    The error sayd Microsoft.ReportViewer.WebForms.dll is missing.. Notice WebForms. You've used WinForms instead. Judging from the error syntax your project is a WebForms ASP.Net prject. You should use the right DLL.

    Regards:rose: --- How to edit any .NET program without having the source code Visit my blog Follow me on twitter

    .NET (Core and Framework) json help question announcement learning

  • How to stream
    N Nader Elshehabi

    First of all, your best bet is Silverlight video streaming -even though you can host Flash videos in SharePoint-. If you have SharePoint Server -not foundation- then there should be a web part for hosting Silverlight objects, which you can use to play the videos. Moreover the video itself shouldn't necessarily be hosted in a SharePoint list- though it can-. If you have access to the underlying IIS you can use the new IIS smooth streaming feature[^], or even host your video anywhere and on any service -including YouTube-. If you have a large number of videos or concerned about performance issues you can even host your file on another server and play it through your SharePoint site. Check this article[^] out.

    Regards:rose: --- How to edit any .NET program without having the source code Visit my blog Follow me on twitter

    SharePoint sharepoint help tutorial

  • Porting C# WPF to Mono
    N Nader Elshehabi

    Hello SilverLight 4 is a good choice for you. The Out Of Browser -aka OOB- has major improvements. I did an application for Mac this way in SilverLight 3 but the experience were't rich. Two major improvements that could have saved me a lot of trouble are the elevated permissions and the printing support. Also porting your WPF to Silverlight is a bit easy as both rely on Xaml and Silverlight is just a subset of WPF. As for the database; the typical solution is to put your database on a windows server and communicate using services. If your program is a stand alone and this is not an option you can use some of the embedded DB engine. I don't remember any now but I remember I saw a few names to use back when I made my app. If you use LINQ and your data access isn't huge or demanding your can switch your (LINQ to SQL) to (LINQ to Xml) and store your data as an Xml file. P.S. Make good analysis on the OOB in SilverLight 4. There could be some features in your program not covered.

    Regards:rose:

    .NET (Core and Framework) csharp database php css mysql

  • Silverlight 3 OOB on Mac!
    N Nader Elshehabi

    Now that's why I always come to CodeProject. I posted the same question in Silverlight.net official forums I got nothing. I'll go with your order: #3- My application is out of browser, and on Mac. How can I launch the browser to open the exported html that I want to print? using Process class like windows? I never programed no worked on mac environment by the way. #2- I'm looking into the Database engines you provided. Thanks! If they don't support Access though I don't think they'd save much. Actually if I designed the original program I wouldn't have gone to DB. The data is so simple a well structured XML file is more than enough. #3- If I could have gone online my life would have been much easier. Unfortunately I'm porting this application for a client. I don't think I can move freely in his server environment!! Yet I absolutely agree with you. However this brings an interesting point. If we made the activation process online what if the user can't get a consistent internet access? and what if the servers are down (or out-of-business :laugh: ) If the user gets the activation code and the key without online verification that these key-code combination have been used already he can share them as much as he wants, and that's how cracks site work! I appreciate your reply -despite the part when we go out of business ;P -. Thanks man.

    Regards:rose:

    WPF csharp database question lounge learning

  • How awesome would it be if...
    N Nader Elshehabi

    Couldn't agree more.:cool:

    Regards:rose:

    WPF c++ adobe performance help question

  • How awesome would it be if...
    N Nader Elshehabi

    Mike Marynowski wrote:

    I wouldn't go back to WinForms if my life depended on it

    Wow! Why is the feud?

    Regards:rose:

    WPF c++ adobe performance help question

  • How awesome would it be if...
    N Nader Elshehabi

    Well, It's not exactly what you're looking for but some people did think like you and made this.[^] Is it close enough? ;)

    Regards:rose:

    WPF c++ adobe performance help question

  • Silverlight 3 OOB on Mac!
    N Nader Elshehabi

    Hello all, I did a quick search and found my case as unique. I hope I didn't miss something. I have a .net windows desktop program just like any other. The task is to port it to Mac so intuitively I chose Silverlight 3 utilizing the new Out-of-Browser feature to bring the software offline. I knew I'd face some issues but here are three issues that I need advice about and would greatly appreciate your responses. 1- The software must uniquely generate a code to identify the machine -the license is per machine-. On windows we got the HDD serial number using windows management objects. What's the alternative on Mac? random Guid is obviously not an option. 2- The program uses MS Access file for Data storage. The driver are installed by default on windows. Can we port this Access database and the data access drivers to Mac in the Isolated storage somehow? Of course the alternative is to use Isolated Storage and serialize the data.. I just wanted to maintain consistency between windows and Mac versions. 3- Printing is not available in Silverlight 3. I know SL 3 doesn't support printing yet, but if you have a workaround I'd appreciate it. Thanks!

    Regards:rose:

    WPF csharp database question lounge learning

  • how to change DataGridView Event calling sequence
    N Nader Elshehabi

    What works for one row works for a collection. you just have to go through them one by one.

    Regards:rose:

    C# json tutorial question

  • How to lock record when inserting
    N Nader Elshehabi

    Nader Elshehabi wrote:

    3- The server locks the table for update

    It's the server's problem, not the disconnected client to generate & implement the key. That's what is making you problems. You should re-layer you design. If your DB is on a local network, I suggest upgrading it to another level. You're talking about 10 persons currently, but I believe you should think of the right way to do it. You already go 50K records we don't want to lose that if things got nasty!! My suggestions:- 1- Take another look at your software design -Client/Server layers- 2- At least upgrade your table be calling an ALTER TABLE ADD COLUMN NewIndex IDENTITY(1,1), & shut down the work for upgrading at least an hour. You can do it like this: 1- Make a test local database 2- Fill it with sample data 3- Upgrade the code of the client & the database to handle the new key 4- Try the upgrade 5- Shut down the original DB for 10 mins for maintenance, and Upgrade both DB & all clients. 6- Everyone ishappy = true; & no more bugs :)

    Regards:rose:

    C# help database tutorial

  • how to change DataGridView Event calling sequence
    N Nader Elshehabi

    Search Google[^] & read the first two articles!

    Regards:rose:

    C# json tutorial question

  • Editing DataGridViewImageCell?
    N Nader Elshehabi

    You are in the right direction. You should derive from DataGridViewImageCell class, and set your DataGridViewImageColumn.Template property to that class. For the editing support, there is a control associated with each DataGridViewCell. I believe you should set MyNewImageCellType.EditType = typeof(TextBox); or something!

    Regards:rose:

    C# tutorial question

  • Question about running threads in C#
    N Nader Elshehabi

    Yanshof wrote:

    Do i need to lock the boolean in the reading also ?

    No you don't. You even need the lock if more than one thread writes to the boolean.

    Regards:rose:

    C# question csharp

  • How to lock record when inserting
    N Nader Elshehabi

    Generating the Key while inserting should be the responsibility of the server at the insertion time. I mean what you do is: 1- Ask the server for a key -In a very poor performance way by the way!- 2- Attach that key to my Record 3- Send record to server So between step 2 & 3 another clients gets the same record. The right thing to do is 1- Send data to server without a key 2- The server generates a key for the new record 3- The server locks the table for update 4- The server inserts the record in the table 5- The server unlocks the table If you're using ADO/SQL, Then define your key comlumn type as IDENTITY. It will auto increment by itself upon insertion of new records. Otherwise you'd have to do it manually.

    Regards:rose:

    C# help database tutorial

  • VS2005 whether there are similar delphi in the control Notebook
    N Nader Elshehabi

    You question is totally unclear. If you're asking about visual studio itself, then this is the wrong forum. There is another forum for Visual Studio language-independent questions. Here is for questions about C# -C Sharp- language only!

    Regards:rose:

    C# delphi docker data-structures tutorial

  • how to change DataGridView Event calling sequence
    N Nader Elshehabi

    Xmen wrote:

    is there anyway to change this

    Nope! Post your real problem. The one you want to change the sequence of events to solve. Maybe we can figure that out.

    Regards:rose:

    C# json tutorial question

  • NumericUpDown in hexadecimal mode bug
    N Nader Elshehabi

    Try to handle Validating or KeyDown events

    Regards:rose:

    C# help question

  • Sound Recorder in Visual Studio
    N Nader Elshehabi

    You may want to look in Microsoft.DirectX.DirectSound namespace

    Regards:rose:

    C# csharp visual-studio question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups